16 Nov 2026

Azure cost · Anomalies · teardown

Cost anomalies.

Every runaway Azure bill was visible on day 2. Nobody was looking until day 30.

The forensics afterwards always go the same way. Someone opens Cost analysis, sets the granularity to daily, and there it is: a step in the bars three weeks before the invoice, as plain as a staircase. The data was there all along. The alarms that were supposed to catch it measure something else.

A budget answers "how much have we spent this month". It doesn't answer "is today normal". Microsoft's own cost baseline guide puts it exactly: a 3× daily run rate can still be under the monthly cap because the month just started. That gap is what anomaly detection is for, and it has a clock and blind spots of its own.

8–24 h
Until cost data lands (EA, MCA)
36 h
After the day ends, detection runs
60 days
Of history the model learns from
1 email
Per anomaly, at detection

01The clock: who hears about it when

Take a worked example. A subscription normally spends €100 a day and has a €3,000 monthly budget. On the afternoon of day 1, someone scales something up and the subscription starts spending €150 a day. A change in the middle of a day only shows its full effect on the following full day, so day 2 is the first clean data point.

CUMULATIVE SPEND, ONE MONTH: WHEN EACH ALARM FIRES 80% of a €3,000 budget 100% Anomaly email · day 4 €150 extra so far 80% · day 17 100% · day 21 a normal month hits 80% on day 24 €4,450 invoice 1 17 21 30 Day 2: first full day at €150 Day 3: day 2 is in Cost analysis (8–24 h later) normal month, €100/day €50/day more from day 2 anomaly detection

For EA and MCA subscriptions, cost data is typically available within 8–24 hours (pay-as-you-go can take up to 72), so day 2 shows up on day 3. Anomaly detection runs 36 hours after the end of the day (UTC), so day 2 is judged around midday on day 4. If someone reads that email, the mistake cost €150.

The budget is slower. Budgets are evaluated against that data every 24 hours, and the cumulative line only crosses 80% on day 17 (€800 extra) and 100% on day 21 (€1,000 extra). Worse, the 80% alert also fires on day 24 of a perfectly normal month, so by day 17 the team has learned to ignore it. The invoice says €4,450. We covered why that 80% email gets skimmed in Azure budgets and alerts.

02What the model actually compares

Microsoft documents the detector plainly. It's a univariate time-series model (WaveNet, not the Cost Management forecast) trained on 60 days of a subscription's usage. Each day it forecasts the expected total and flags the day when the subscription's total normalized usage falls outside a predetermined confidence interval. Because it learns from recent history, a pattern like a spike every Monday is expected, not flagged. A dip counts too: an anomaly can be a drop as well as a jump.

Read that description again and the blind spots follow from it:

  • One number per subscription. The model looks at the total. An extra €50 a day stands out in a subscription that spends €100. In one that spends €5,000, it's 1% and may sit inside the expected range.
  • The step becomes the baseline. The email goes out only once, at detection. Leave the new cost running and it becomes part of the 60 days the model trains on. From then on it's normal.
  • Someone has to switch it on. A subscription is onboarded when someone opens a Cost analysis smart view on it, and alert rules are created per subscription, by someone with Cost Management Contributor or more, five per subscription at most.
  • The alert lives with its creator. Emails are sent based on the rule creator's access at the time of sending. When that person leaves or loses the role, the alerts go quiet. Microsoft suggests creating them with a service principal through the Scheduled Actions API instead. Azure Government and the sovereign clouds don't have them at all.

03Signal or noise: five shapes in the daily bars

Microsoft sorts unexpected changes into three kinds: new costs that start from zero, removed costs that end at zero, and changed costs. Add the two you'll see most often and you get five shapes, each with its own next step.

FIVE SHAPES IN 12 DAYS OF DAILY SPEND New cost new resource find who made it Step up SKU or scale find the change Spike short-lived confirm it ended Weekly peak a pattern not an anomaly Drop to zero gone, or broken meant to stop? baseline the change

The step is the expensive one, because it doesn't come back down. Microsoft's own walkthrough shows it: a resource group spending about $4.56 a day went to $20.68, then to $30.22 from the next day on. Grouped by meter, the cause was a VPN gateway that stopped using the VpnGw1 meter and started using VpnGw3. A resize often looks like that, one meter ending and a new one starting under the same resource.

The spike is usually a test or a load run, and the question is only whether it really ended. The drop deserves a look too: a cost that goes to zero is a deleted resource or a broken one, and only one of those is good news.

04From a bar to a name

Finding the cause is the same descent every time: daily costs, then group by resource group, then by resource, then by meter. That gives you what changed. Why needs a person, and Microsoft points to the resource's Activity log, Resource Graph resource changes, who has write access to the scope, and its tags. The drill-down itself we walked through in Azure cost drill-down.

The implication
Anomaly detection answers "is today unusual for this subscription". It doesn't answer "should this cost exist". A new resource billing a steady amount every day is a perfectly normal-looking line after a few weeks. The cheap moment to ask the second question is the week it starts.

That's the question GraphPaaS asks for you. It reads daily Azure cost per resource for every tenant you manage, shows when each resource was created next to what it costs. Where the weekly digest is on, Monday's email lists the resources that started billing in the last seven days of data, with any new subscription flagged. Not a model, not a threshold: a list of what's new.

Sources
GraphPaaS

See it in week 1.

Daily Azure spend per resource, next to when each one was created, for every tenant you manage.

Read your daily spend

Or ask Claude: "Which Azure resources started billing this week?"

Newsletter

Get the next article by email

Practical M365 & Azure cost pieces like this one. No spam, unsubscribe anytime.