Skip to content
AISpendbook

Cloud and GPU · Read with a key

Azure OpenAI token metrics (Azure Monitor)

Daily prompt and completion tokens per Azure OpenAI model deployment from Azure Monitor (ProcessedPromptTokens and GeneratedTokens). Usage only: tokens are priced by us as an estimate; the bill comes from Cost Management.

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
provider-reported usage
Money
Usage quantities, priced by AI Spendbook as an estimate
Runs
each scheduler run (daily on the hosted deployment)
Freshness
Platform metrics arrive within minutes; the trailing 2 days are re-read.
History on first sync
Up to 93 days
Not included
customer, feature, end user, cached tokens, billed cost
Status
Built from the vendor's public documentation and tested with recorded responses. Not yet run against a live account.

Set it up

  1. Register an application in Microsoft Entra ID with a client secret.
  2. Give it Monitoring Reader on each Azure OpenAI (Cognitive Services) account.
  3. Paste the tenant ID, client ID and secret, and the resource IDs (from the resource's JSON view).
  4. Deployment names are recorded as the model; name deployments after their model, or map them under Models, for estimates to price them.

What it needs

An Entra ID app registration with the Monitoring Reader role on each Azure OpenAI resource.

Every connector, by family

Start with your own numbers.

Every plan is free during launch. No credit card.