Cloud and GPU · Read with a key
Azure Cost Management export (Azure OpenAI)
Billed Azure OpenAI and Foundry Models cost from the CSV files of a scheduled Cost Management export (actual cost) in your Azure Storage account, summed by day, subscription, meter and charge type. The newest run of each export period replaces earlier figures.
- 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
- As fresh as the export schedule (daily at best).
- 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 Cost Management → Exports, create a daily export of Cost and usage details (actual cost) in CSV to a storage account container. Note the container and directory.
- Register an application in Microsoft Entra ID with a client secret, and give it Storage Blob Data Reader on the container.
- Enter the storage account, container and export path, then the tenant ID, client ID and secret.
- We list the export's files and read the newest run of each period. Nothing is written to the account.
What it needs
An Entra ID app registration with the Storage Blob Data Reader role on the container.