The Azure total for the last 30 days is up. The useful question is not "by how much" but where: which subscription, which resource group inside it, and which service inside that group. Azure records cost against exactly those three scopes, so you can follow a surprising number down them by hand.

Here is the method, and the three traps that make a by-hand comparison lie.

1. Fix the period, and the period before it

Pick a range, for example the last 30 days, and its comparison period: the same number of days, ending the day before the range starts. Not "last calendar month": months differ in length, and a 31-day period compared with a 28-day one shows growth that is only calendar.

Azure reports cost a day or two late, so the last day or two of a range that ends today are not final yet. Either end the range two days ago or remember that the newest days will still move.

2. Level one: subscriptions

In the Azure portal, open Cost Management > Cost analysis at a scope that covers all your subscriptions (a management group or the billing scope you have access to), group by Subscription, and note each subscription's cost for the range. Change the dates to the period before and note them again (or download both views as CSV).

For each subscription, write down two numbers:

  • its share of the total for the range;
  • its change: cost now minus cost in the period before, in money and in percent.

The share tells you where the cost sits. The change tells you what moved. A large, stable subscription and a small one that doubled are different stories.

3. Level two and three: resource groups, then services

Take the subscription that moved the most. Scope Cost analysis to it, group by Resource group name, and repeat the share and change for both periods. Then take the resource group that moved the most, filter on it, group by Service name, and do it once more.

Each share is now a share of the level above: a resource group's part of its subscription, a service's part of its resource group. That keeps the numbers readable when one subscription dwarfs the rest.

Three levels is usually enough to turn "the bill went up 18%" into "the SQL Database service in rg-prod-data grew".

The three traps

1. Cost with no resource group. Some cost is recorded against the subscription itself rather than a resource group, for example a reservation purchase. In a group-by-resource-group view it shows up without a resource group name. It is real spend: keep it as a branch of its own, and never merge it with a resource group that happens to have a similar name. Otherwise the resource groups no longer add up to the subscription.

2. Missing history read as growth. If your own copy of cost data (a spreadsheet, a database, an export) starts after the comparison period begins, the empty days are not zero cost, they are unknown cost. Comparing with them makes everything look like growth. Leave such a subscription out of the change, say so next to the figure, and still count its cost in the total, because that cost was recorded.

3. Rows that disappeared. A resource group that cost something before and nothing now does not appear in a group-by view of the new period at all. Keep a short "no cost this period" list with what each cost before; a drop is as much a part of the change as a rise.

Two smaller rules: compare one currency at a time (never add two currencies without an exchange rate you chose on purpose), and treat a rise as a place to look first, not a verdict. Open the branch and review it in Azure before changing anything.

The automated way

(I build CostGuard, an Azure cost tool for small SaaS teams, so take this part with that in mind.)

CostGuard's Cost map page does this nesting for you: subscription, then resource group, then service, each level largest first, with every row's share of the level above and its change against the same number of days just before the range. It handles the three traps the same way as above: "No resource group" stays its own branch, a subscription whose recorded history starts too late is marked "Recorded from ..." and left out of the change while its cost still counts in the total, and branches with no cost this period are listed apart with what they cost before. A "Largest changes" panel ranks up to five resource groups that rose and five that fell.

A CostGuard cost map in US dollars for a sample workspace: one subscription open with its resource groups, one resource group open with its services, each row with its cost, its share bar and its change against the previous 30 days.

CostGuard connects through an Entra ID consent and the built-in Reader role on the subscriptions you choose, with no secret shared, and it only reads: it never creates, changes, stops or deletes anything in your Azure. The cost map is part of cost analytics on the Starter plan and up; the Free plan on Azure Marketplace shows a labelled sample.

Honest limits

  • It is a map of cost, not of infrastructure: a resource that cost nothing in the range does not appear.
  • Every figure is in one currency; another currency is shown separately and never converted.
  • A change wears no colour. A rise is not a risk and a fall is not money saved until you have looked at the branch in Azure.
  • For one or two subscriptions, the manual check above may be all you need.

The full walkthrough of the page: Cost map in the CostGuard help center.