Cloud and GPU · Read with a key
Azure Cost Management (Azure OpenAI)
Billed Azure OpenAI and Foundry Models cost by day, meter and charge type from the Cost Management Query API, for a subscription or one resource group. Provisioned throughput (PTU) reservation purchases are kept on their purchase day and marked as commitments.
- How data moves
- AI Spendbook reads it on a schedule with a key, token or read-only role you give it.
- Credential
- OAuth app credentials
- What it covers
- billed cost
- Money
- The vendor's billed amount
- Runs
- each scheduler run (daily on the hosted deployment)
- Freshness
- Azure shows cost 8 to 24 hours after usage; the current month can still change.
- History on first sync
- Up to 365 days
- Not included
- customer, feature, end user, tokens, model
- Status
- Built from the vendor's public documentation and tested with recorded responses. Not yet run against a live account.
Set it up
- In Microsoft Entra ID, register an application and create a client secret.
- On the subscription (or resource group), add a role assignment: Cost Management Reader for that app.
- Paste the tenant ID, client ID and client secret, and enter the subscription ID. Secrets are encrypted at rest and never shown again.
- We call the Cost Management Query API only, grouped by meter and charge type.
What it needs
An Entra ID app registration with the Cost Management Reader role on the subscription or resource group.