AggregateDocs
Guides

Microsoft Azure costs and Aggregate

Last updated

Short answer: your card or bank already shows the Azure charge. Aggregate reads each subscription's monthly cost by Azure service and shows what the charge was for, so you can ask any AI assistant or agent where your cloud spend goes. It can't move money. You sign in to Microsoft as a user whose only role is "Aggregate Cost Reader", and Aggregate checks that user's permissions with Azure before connecting and before every sync.

Status: Beta. It's built to Microsoft's API documentation and hasn't been tried with a real Azure tenant yet. If a number looks off, tell us at support@aggregate.finance.

What it reads

Each month's services must add up to Azure Cost Management's own total for that month, to the cent, on every sync. If they don't, the sync stops, says which month, and changes nothing. It's a report: nothing is posted to Aggregate's ledger, because the money already shows as card or bank spend.

Make the role

Azure's built-in Cost Management Reader and Billing Reader roles can also open support tickets, so Aggregate refuses them. Make this role instead, in Azure Cloud Shell (Bash), as an Owner or User Access Administrator of the subscription. Put your subscription ID on the first line:

SUB=<subscription-id>
az role definition create --role-definition '{
  "Name": "Aggregate Cost Reader",
  "Description": "Reads costs and its own role assignments. Nothing else.",
  "Actions": [
    "Microsoft.Consumption/*/read",
    "Microsoft.CostManagement/*/read",
    "Microsoft.Billing/billingPeriods/read",
    "Microsoft.Billing/billingProperty/read",
    "Microsoft.Resources/subscriptions/read",
    "Microsoft.Resources/subscriptions/resourceGroups/read",
    "Microsoft.Management/managementGroups/read",
    "Microsoft.Authorization/*/read"
  ],
  "NotActions": [],
  "DataActions": [],
  "NotDataActions": [],
  "AssignableScopes": ["/subscriptions/'"$SUB"'"]
}'
az role assignment create --assignee <user> --role "Aggregate Cost Reader" --scope /subscriptions/$SUB

<user> is the sign-in name of a user made for Aggregate (for example aggregate-costs@yourcompany.com). Give that user no other Azure role, no billing-account role and no administrator role. For more subscriptions, add each one to AssignableScopes (az role definition update) and run the assignment line for each.

Connect

  1. In Aggregate, open Connections, choose Add, then Microsoft Azure costs.
  2. Sign in to Microsoft as the user above and accept. Each subscription that user can see becomes its own connection.

If Aggregate finds any permission beyond reading, or can't tell, it doesn't connect and says what to change. Each subscription needs at least one resource group, because Azure reports a user's permissions per resource group.

How often it updates

Every few hours. Each sync begins by checking the user's permissions again; if the user can now change anything, Aggregate stops, disconnects and deletes its sign-in.

Disconnect and delete

Disconnect in Aggregate at any time: open Connections, choose the connection, then Disconnect. To end the sign-in at Microsoft too, delete Aggregate under Enterprise applications in Microsoft Entra (myapps.microsoft.com for your own consent), or remove the user's role. Disconnecting deletes what it brought in after 30 days, unless you connect it again before then, or right away if you choose Disconnect and delete its data. Deleting your workspace deletes everything.

© 2026 Aggregate Finance LLC