Your Azure AI budget can now stop a runaway agent. It still isn’t an invoice cap.

Two things landed in Microsoft Foundry in mid-November, and both change how you watch an Azure AI bill.

One is a budget that can act while requests are still running, not after the invoice lands. The other is a pricing rule on the new GPT-6.2 models: once a single request’s input crosses 272,000 tokens, the higher long-context rate applies to the whole call, not just the extra tokens.

A budget that can act in real time

On November 18, 2026, Microsoft put FinOps tools in Foundry into public preview. The November 24 Ignite recap is the cleanest summary of what shipped.

The useful lever for a token bill is cost controls. Microsoft Learn describes a cost control as a budget, in US dollars or in tokens, on a Foundry resource, project, model deployment, agent, or hosted-agent session. You pick how often it resets (daily, weekly, or monthly) and what happens at each threshold. Microsoft’s own example is an alert through Azure Event Grid at 80% and a block on new requests at 100%.

Usage is counted as requests run, so a control can act hours before the same spend shows up in Azure Cost Management. You can also create a control with no threshold actions and just watch the total first.

In the new Foundry portal, resource-wide controls live under Manage > Cost > Cost Control. Project-level ones live under the project’s Monitor > Cost Control. The how-to is here: Create and manage cost controls (preview).

What they don’t do

Read this part before you treat a cost control like a hard invoice cap.

It is a public preview. Microsoft says it has no SLA and does not recommend it for production workloads.

A spending budget is an estimate. During preview it is not reconciled with your bill. Microsoft says the running total tends to sit slightly above billed cost, so a control can hit its thresholds a little early. Use Azure Cost Management to reconcile.

Coverage is narrower than the word “budget” suggests. In this preview, cost controls count GPT and OpenAI o-series model tokens. Models from other providers, such as Claude and DeepSeek, are not supported. Agent tool charges (for example web search), hosted-agent compute, and provisioned throughput (PTU) are not counted, and model router is not fully covered.

A newly released GPT model is added to spending budgets only after its price is available to cost controls, usually about a week after release. Until then, spending budgets skip that usage and do not add it later. Token budgets still count it.

Enforcement has soft edges. The request that crosses a threshold can still complete, so usage can end slightly above the limit. If Foundry can’t check a request in time, the request runs. Changes can take up to 15 minutes to take effect. And in this preview, a project’s cost controls count chat completions requests to the project but do not block them. To block those calls, use a cost control on the Foundry resource.

The Ignite recap is explicit: cost controls “aren’t a guaranteed invoice cap.”

Don’t retry a budget block

When a non-streaming request is blocked, Foundry returns HTTP 429 with the header x-ms-budget-cause: budget_exceeded. Treat that as a budget issue, not a busy service. If your client retries every 429, it will keep hammering a limit that will not lift until the next reset, you raise the budget, or you remove the control.

Azure Cost Management budgets still matter here. Those budgets can alert, but they do not block requests. Foundry cost controls can block, but only for the usage they actually count. You need both.

The line that reprices the whole request

A lot of teams watch which model they call and never look at how long the prompt is. On the new GPT-6.2 models, that can matter as much as the model name.

GPT-6.2 Astra and GPT-6.2 Sol became generally available in Microsoft Foundry on November 17, 2026. Standard deployments use separate short-context and long-context list prices. “Context” here means the number of input tokens in one request, not the model’s maximum context window. Microsoft Learn says Azure OpenAI uses the same input-token threshold as OpenAI. Generated output does not decide the category.

OpenAI’s GPT-6.2 Astra model page says that for requests with more than 272,000 input tokens, input and cache rates double and output costs 1.5 times the short-context rate for the full request. Once you cross the line, you don’t just pay more for the extra tokens. You pay the higher rate on everything in that call.

That is the trap. A retrieval job that stuffs too much source text, or an agent that keeps appending the whole transcript, can flip the price of the entire prompt the moment it crosses the line.

The model will accept a prompt that is already deep into long-context pricing. According to Microsoft’s model list, GPT-6.2 Astra and Sol can take up to 922,000 input tokens, with a 1,050,000 context window.

List prices differ by deployment type and agreement, and they change, so I am not quoting them here. Check the announcement and the Azure OpenAI pricing page before you brief finance. Compare cost per task, not just the rate per token. A slightly smaller context that stays under the line can beat a “smarter” prompt that doubles the rate.

What to do first

  1. Put one expensive agent or model deployment in watch mode. Create a Foundry cost control with no block, and see how close it gets to a number you trust. Add an alert once the shape of the spend looks right. Leave a hard block off in production until you have confirmed the control covers the models and deployment type you actually use.
  2. Keep Cost Management budgets and tags. Tag subscriptions and resource groups, then turn on tag inheritance so those tags apply to child resource usage records (typically within 8 to 24 hours for the current month). Those views still cover the parts of the bill Foundry cost controls do not see.
  3. Log input token counts per request, not just monthly totals. Alert when a call approaches 272,000 input tokens. Before you paste a whole knowledge base or a long thread into one request, chunk it or retrieve less.
  4. Cap generated tokens. On the Responses API, use max_output_tokens. On Chat Completions, use max_completion_tokens for reasoning models. Older max_tokens still works on some earlier models, but do not rely on it for newer reasoning models. OpenAI documents the parameter names; Azure OpenAI uses the same request shapes, with model set to your deployment name.
  5. Make prompt caching actually hit. For supported Azure OpenAI models, a reusable prefix needs to be at least 1,024 tokens, and the first 1,024 tokens must be identical. A single character change in that prefix is a miss. Put stable system text, tools, and policy at the front, and do not inject a changing timestamp there. Watch cached_tokens. On GPT-5.6 and later families, cache writes can be billed, and 12-hour writes apply to usage starting November 1, 2026. That option is opt-in and costs more to write than the 30-minute default. Use it when the same prefix would otherwise expire and be stored again.
  6. Size rate limits, and cap retries. Assigning tokens-per-minute (TPM) to an Azure OpenAI deployment also sets its requests-per-minute (RPM) limit, in a ratio that varies by model. Size TPM per app and environment so one looping client cannot burn the whole quota. Cap automatic retries, use backoff, and treat a budget-exceeded 429 differently from a capacity 429. A failed call that already generated output, plus a full retry, is paid twice.
  7. For work that can wait, check Global Batch. Microsoft documents a 50% discount off Global Standard for supported models, with a 24-hour target turnaround that is not a guarantee. Confirm the current availability table before you assume a new model is included. The table I re-opened on November 29, 2026 listed models through gpt-5.4 and gpt-5.4-mini and did not list GPT-6.2.

Those are the first two places I would look on a Foundry bill this month: a preview budget that can stop some requests but not the whole invoice, and a prompt long enough to reprice itself.

Sources

All of the following were opened or re-opened on November 29, 2026, America/Chicago.

  1. FinOps in Microsoft Foundry (announced November 18, 2026)
  2. What’s new in Microsoft Foundry | Ignite 2026 (November 24, 2026; source of the “aren’t a guaranteed invoice cap” wording)
  3. Cost controls overview (preview)
  4. Create and manage cost controls (preview)
  5. Cost and FinOps overview
  6. GPT-6.2 Astra and GPT-6.2 Sol generally available in Microsoft Foundry (November 17, 2026)
  7. Foundry Models sold by Azure
  8. OpenAI: GPT-6.2 Astra
  9. Azure OpenAI pricing
  10. Global batch processing
  11. Prompt caching
  12. Tag inheritance
  13. Manage Azure OpenAI quota
  14. OpenAI: controlling the length of model responses
ZacheryKuykendall
ZacheryKuykendall
Articles: 1