Skip to main content

22 posts tagged with "azure"

View All Tags

Controlling Databricks Costs on Azure, Part 2: Building the Cost Dashboard

· 11 min read
Shpend Kelmendi
Software Engineer & Architect

In Part 1, I compared unexpected cloud costs to a surprise restaurant bill. An itemized bill helps you understand what you ordered and spot a bottle of wine that might belong to another table. A cost dashboard does something similar: it breaks down spending so you can investigate unexpected charges.

That visibility is the starting point for meaningful alerts and budgets. In this post, we'll build a dashboard and explore:

  • Which dashboarding options exist on Azure and inside Databricks, and where each one fits
  • How to move the built-in usage dashboard from ClickOps to Terraform
  • How we bring Azure infrastructure costs into the same dashboard
  • Which Azure cost export type to choose: actual, amortized or FOCUS
  • Who should get CAN_RUN on the dashboard, and when that is risky

Controlling Databricks Costs on Azure

· 9 min read
Shpend Kelmendi
Software Engineer & Architect

No one likes surprises on the bill. Whether it is at a restaurant with your date or in a company setting, an unexpectedly high invoice can quickly put us in unnecessary trouble. Explaining to leadership why costs suddenly went up can be okay when it was a conscious decision, but not when something was simply overlooked. That is exactly one of the biggest challenges for our Data Platform Engineering team: cloud and Databricks offer huge opportunities, but costs can rise sharply if you do not pay close attention. What is often missing is the clarity and early steering mechanisms needed to identify the main cost drivers and react in time. Our goal is to enable data teams to unlock the full potential of the platform without unpleasant end-of-month surprises. For us, success means no unexpected costs and cost awareness across all users. After evaluating multiple options, we chose a solution that gives us this freedom without giving up control.

TL;DR

There’s no silver bullet. We combined following components to achieve transparency, responsiveness, and control:

  • Databricks dashboards for visibility into cost drivers → what costs
  • Databricks SQL alerts for proactive notifications when spend deviates → when to act
  • Budget Control for per-user and per-user-group governance → enforce limits

Quick Azure Cost Management - Budget and Notifications with Bicep and alternatives

· 3 min read
Shpend Kelmendi
Software Engineer & Architect

Managing costs in the cloud is crucial to avoid unexpected expenses.
How many times have I read "Azure just charged me 1k dollars because of a misconfiguration".
Did it happen to you as well? Me too. And I know how stupid you feel after that. Sometimes it is not even our fault. (cough* strange defaults from Azure *cough)

So to avoid that, we can setup budgets and get notified when we reach certain thresholds.
It's important to know which scope you want to set the budget on. It can be at management group level, subscription level or resource group level. Choose the scope you are responsible for and want to monitor costs for.

What are the options? Let's explore them.

Practical guide to organizing Azure resources

· 5 min read
Shpend Kelmendi
Software Engineer & Architect

Organizing Azure resources is one of those rare tasks that sounds straightforward until you actually start doing it.
Suddenly you’re trying to balance cost allocation, security boundaries, governance rules, domain ownership, deployment pipelines, and team autonomy. All while the number of services grows faster than your architecture diagram can keep up.

If designing cloud boundaries feels like organizing a city while it’s still being built, that’s because it is.
And like any good city, Azure needs structure: districts, buildings, addresses, zoning rules, and a way to understand who owns what. Why? Because moving buildings (or Azure resources) is not always easy.

This guide takes a practical look at how to design resource boundaries in Azure—using concepts from Domain-Driven Design (DDD), Team Topologies, CAF, Well-Architected Framework.

Fix expired secrets in Azure DevOps Service Connections

· 2 min read
Shpend Kelmendi
Software Engineer & Architect

Workload Identity Federation is the recommended approach for Service Connection. So why would I use the old approach with an app registration where I need to rotate the secret by myself? Well, there are some pipeline tasks which doesn't support Workload Identity Federation.
And in this case, you have to use the old approach.
And today was the day of rotation.
And a team member tried to renew the secret but didn't know how to do it, because the problem is still not fixed correctly in the UI.

Let's check the steps to fix it.

When the cloud has a cold: Lessons in resilience

· 6 min read
Shpend Kelmendi
Software Engineer & Architect

October 9th - Azure Front Door takes a nap. Traffic reroutes, dashboards go red, and half the internet suddenly learns what "global edge dependency" really means.

October 20th - an AWS region (US-EAST-1) goes down. Not the apocalypse, just enough to make dashboards bleed red, engineers reach for coffee, and LinkedIn light up with "That's why we use multi-cloud" posts.

October 29th - Azure Front Door stumbles again. Same story, different day. And somewhere in between, a few other providers quietly joined the chaos with their own "we're experiencing elevated error rates" moments.

It's been one of those months when you realize: even the clouds catch colds. The uptime gods don't play favorites - not AWS, not Azure, not anyone.

And that's when Barry O'Reilly's Residuality Theory came to mind again - the idea that what really matters isn't the outage itself, but what's left behind.
The tangled complexity.
The assumptions that didn't hold.
The edge cases you dismissed with a confident, "That'll never happen."

Spoiler: it just did and will again.

Infastructure as Code (IaC) - Your First Steps with IaC in Azure

· 5 min read
Shpend Kelmendi
Software Engineer & Architect

In the cloud world, it’s all about speed, repeatability, and stability. That’s where Infrastructure as Code (IaC) comes in. Many imagine YAML files or PowerShell scripts, but the truth is: Anyone can start with IaC today.

In this post, you’ll learn:

  • What IaC is and why it matters
  • How to get started in Azure – even without deep experience

How to clean up Azure resources after you finished your labs

· 2 min read
Shpend Kelmendi
Software Engineer & Architect

You just finished your Azure lab. You spun up VMs, storage accounts, databases, maybe even a Kubernetes cluster. You learned a lot. But now… your subscription is cluttered, ticking costs, and slowly turning into a monster.

Cleaning up isn’t fun—I know this from household chores, where you need to do the same :D—but neither is an unexpected bill. Let’s fix that.

Microsoft Just Put a Price Tag on Your M2M Tokens for Entra External ID

· 2 min read
Shpend Kelmendi
Software Engineer & Architect

Microsoft just announced pricing for Microsoft Entra External ID M2M Authentication.
Starting November 1, 2025, every access token issued via the Client Credentials Flow will cost $0.001.

The feature isn’t going away — it’s simply entering its “production maturity” phase.
It’s time to pay more or less.