# Azure OpenAI 429: tokens-per-minute quota and how to fix it

URL: https://infro.io/blog/azure-openai-429-tokens-per-minute-quota-and-how-to-fix-it
Author: INFRO Editorial (https://infro.io/blog/editorial)
Publisher: INFRO
Published: 2026-11-25
Last modified: 2026-11-25
Last reviewed: 2026-11-25 (next review due 2026-12-25)
Topic: Routing and reliability
Format: Guide

> An Azure OpenAI 429 ("rate limit exceeded") means the deployment reached its tokens-per-minute or requests-per-minute limit, both set by the TPM you assigned it from your subscription's quota [^azure-quota-howto]. Back off, raise or request quota, add capacity in another deployment, region or subscription, or fail over to the same model on the OpenAI API after a data-handling review.

Key takeaways:
- A 429 from Azure OpenAI is a per-deployment limit: the TPM you assigned sets the token limit, and a model-specific ratio sets the RPM limit.
- RPM is enforced over 1- or 10-second windows, so a bursty client can get 429s while its per-minute average is under the limit.
- Where quota is pooled depends on the model: Microsoft describes subscription-level pools for onboarded models and per-region, per-model pools for the rest, so check the Scope column before adding deployments.
- Extra deployments only add capacity if they draw on separate quota; the same pool split two ways adds nothing.
- Failing over to the same model on the OpenAI API adds an independent limit, but it sends prompts to a different operator, so review data handling first.

## What an Azure OpenAI 429 means

A 429 from Azure OpenAI means one deployment has used up its rate limit. Microsoft's quota documentation says that when a deployment reaches its tokens-per-minute (TPM) limit, further requests get an HTTP 429 until token capacity becomes available[1]. The "rate limit exceeded" message in your logs is the same event. It is not an outage, and it is not an account-wide block: the limit belongs to a single deployment.

Two limits can trigger it. The TPM limit counts tokens, and the RPM (requests-per-minute) limit counts calls. Each response carries headers that show where you stand: `x-ratelimit-limit-requests`, `x-ratelimit-limit-tokens`, `x-ratelimit-remaining-requests`, `x-ratelimit-remaining-tokens`, and reset times for each. A 429 response also includes `retry-after-ms`, the wait Azure recommends before retrying[1].

Read those headers before you change anything. If `remaining-tokens` is near zero when the 429 lands, you are token-bound: prompts or completions are too large for the TPM assigned. If `remaining-requests` is the one that collapses, you are request-bound, often from many small calls or a burst. The fix differs, and so does the arithmetic in the next section.

## How TPM and RPM relate

You do not set TPM and RPM independently. When you assign TPM to a deployment, that value maps directly to the token limit enforced on its requests, and an RPM limit is set proportionally by a ratio that varies by model[1]. Quota is allocated in units of capacity, and each unit carries a fixed amount of both.

| Model family | 1 capacity unit gives | RPM per 1,000 TPM |
| --- | --- | --- |
| Older chat models | 6 RPM, 1,000 TPM | 6 |
| o3, o4-mini | 1 RPM, 1,000 TPM | 1 |
| o1 and o1-preview | 1 RPM, 6,000 TPM | 0.17 |
| o3-mini, o1-mini, o3-pro | 1 RPM, 10,000 TPM | 0.1 |

Table: Capacity units from Microsoft's quota page; the ratio varies by model.

The tier tables show the same thing from the other side. At Tier 1, gpt-5.4 on Global Standard is listed at 2,500 RPM and 250,000 TPM, while the Data Zone Standard row is 100 RPM and 100,000 TPM[2]. The page also notes that for gpt-chat-latest some versions use 10 RPM per 1,000 TPM and newer ones use 1 RPM per 1,000 TPM[2]. So never assume a ratio: read it for your model, version and deployment type, and be careful when deploying programmatically, because a different ratio can silently misallocate quota[1].

Two details change how 429s look in practice. First, the token count uses actual input and generated tokens, not the `max_tokens` you configured, so a high output cap does not reserve anything[1]. Second, RPM is not a per-minute bucket. Azure evaluates the request rate over a short window, typically 1 or 10 seconds, and returns 429 if the count in that window exceeds what the RPM limit implies. A 600-RPM deployment can throttle if more than 10 requests arrive within a one-second window[1].

> **Example: Illustrative arithmetic**
> These numbers are made up to show the mechanism; they are not any model's real limits. A deployment holds 300,000 TPM at 6 RPM per 1,000 TPM, so 1,800 RPM, or 30 requests per second. Your average call uses 3,000 tokens (input plus output). At 100 calls a minute you have spent the whole 300,000 TPM, far below the RPM ceiling, so the 429s are token-driven. Now suppose a job fires 50 short calls in one second: the TPM budget is fine, but 50 exceeds 30 per second, and the burst is throttled even though the minute average is low.

## Where quota lives: deployment, region, subscription

Quota is held by the subscription, then divided among deployments. Microsoft describes it as assigned to your subscription per region, per model and per deployment type, in units of TPM. You assign TPM to each deployment as you create it, and the available quota for that model drops by that amount[1]. The doc's own example: with 240,000 TPM of GPT-4o in East US, you can make one 240K deployment, or two of 120K, as long as the total stays within that region's quota[1].

That is the per-deployment, per-region model, and it is why splitting one pool into more deployments does not add a token. It only divides what you have.

There is a newer wrinkle. Microsoft says subscription-level quota management started after May 7, 2026, and is rolling out model by model. For onboarded models, Global Standard deployments of the same model and version share one pool across all regions in the subscription, and Data Zone Standard deployments share one pool per data zone, such as US or EU[2]. Models not yet onboarded keep per-region limits[3]. The Scope column on the Foundry portal's Quota page tells you which applies to a model: "Global" or "Data Zone" means subscription-level management, and a region name means per-region management[3].

This matters for the fixes below. If your model uses a Global pool, a second Global deployment in another region in the same subscription draws on the same quota. Check the scope before you build a topology around regions.

Limits also move with your subscription's tier. Microsoft documents seven tiers (Free, then Tier 1 to 6) that rise automatically with usage, influenced by payment history and enterprise agreements, and you can opt out of automatic upgrades with a `NoAutoUpgrade` flag[2]. Microsoft also says quota is not the recommended tool for managing spend[3].

## Fix one: retry properly, then trim the load

Before adding capacity, make sure your client is not creating the problem. Microsoft's guidance is retry with exponential backoff and random jitter, honour `retry-after-ms` when present, and cap the retries at something like 5 to 10[1]. The Python SDK retries 429s by default, twice, and you can raise `max_retries`[1]. If you use your own retry library, set the SDK's `max_retries` to 0 so the two do not multiply.

```python
from openai import OpenAI

client = OpenAI(
    base_url="https://YOUR-RESOURCE.openai.azure.com/openai/v1/",
    api_key="...",
    max_retries=5,  # SDK backs off with jitter and respects retry headers
)

resp = client.chat.completions.create(
    model="my-gpt-deployment",  # your deployment name
    messages=[{"role": "user", "content": "Summarise this ticket."}],
)
```

Retries fix bursts, not sustained overload. If the deployment is saturated for minutes, retries only add load: failed requests still count against the per-minute limit[1]. Then cut tokens. Shorten prompts, limit generated output to what the feature needs, and smooth your traffic so requests are spread across the minute rather than released in a wave. Watch `x-ratelimit-remaining-tokens` and throttle on the client before the 429 arrives.

## Fix two: more quota

If the deployment is genuinely too small, there are two routes. The first is internal: free TPM from a deployment that is oversized and reassign it. In the Foundry portal, open the deployment's Quota pane, find "Affiliated deployments using shared quota" and edit the allocation[1]. Allow up to 15 minutes for the change to propagate.

The second is a quota increase request. In the Foundry portal, go to your project, select Manage, then Quota, choose Token per minute or Provisioned throughput unit, and select Request quota. If the portal will not let you submit, Microsoft points to the legacy request form[1]. Know the constraints before you rely on it:

- Submitting a request does not guarantee approval. Requests are processed in order, with priority for customers who actively use their existing quota, and a request can be denied if you are not using what you have[1].
- Free tier (Tier 0) subscriptions are not eligible[2].
- An approved increase adds quota but does not change your tier or bypass model-access requirements[2].
- Quota increases are generally not available for partner and community models[1].

Treat an increase as a planned change, not an incident response. If the 429s are costing you right now, you need one of the capacity fixes below in the meantime. For steady, high-volume workloads, provisioned throughput is the other option, and [provisioned throughput vs pay-as-you-go](https://infro.io/blog/provisioned-throughput-vs-pay-as-you-go-when-reserved-capacity-pays) covers when it pays.

## Fix three: another deployment, region or subscription

More deployments add capacity only when they draw on separate quota. The honest test is to look at the Quota page: do two deployments appear under the same shared pool, or under different ones?

Options that typically give you a separate limit, subject to the scope rules above:

1. **A different region, for models with per-region quota.** Each region has its own TPM allowance, so a second deployment in another region has its own headroom[3].
2. **A different deployment type.** Global Standard and Data Zone Standard are described as separate pools[2]. Note that they differ in where prompts may be processed, which is a data-handling question rather than a capacity one[4].
3. **A different subscription.** Quota is scoped at the subscription level, not the tenant[2]. A second subscription brings its own quota, though its tier and eligibility are evaluated separately.

Each extra deployment is its own endpoint with its own key and deployment name, so your application needs a way to choose among them. Doing that in application code means a list of clients, a counter, and your own handling for which one just returned 429. It works, but it is the part teams most often get subtly wrong: round-robin that ignores a throttled deployment keeps sending it traffic.

## Fix four: the same model on the OpenAI API

The last option is a different operator altogether. The OpenAI API serves the same model family under its own organization and project limits, independent of any Azure quota. When Azure is saturated, a request for the same model can go there instead. The two products have different identifiers (a model id on OpenAI, your deployment name on Azure) and different error vocabularies, so your calling layer must map between them. [Azure OpenAI vs the OpenAI API](https://infro.io/blog/azure-openai-vs-openai-api) compares what differs.

Do not fail over blindly, because the two hosts can differ on data handling. This is a point for your own review, not a claim either way. Microsoft's page says Azure keeps prompts and completions in the customer-specified geography unless you use a Global or Data Zone deployment type, in which case processing can happen in other geographies, and that its models do not interact with OpenAI's own services such as the OpenAI API[4]. A fallback to the OpenAI API therefore sends the same prompt to a separate service, with its own retention, abuse-monitoring and location terms. Read OpenAI's current terms against your data classification, and decide which workloads may fail over and which must not. Also confirm the fallback model really is the same model and version, not a near neighbour; [is your fallback model good enough](https://infro.io/blog/is-your-fallback-model-good-enough-test-fallback-equivalence) covers the check.

## Letting a gateway do the spreading

Everything above can live in application code, but it is routing logic, and a gateway is a natural home for it. In INFRO you connect your own accounts, so each Azure deployment (a resource, a deployment name and its key) is its own connection, and the OpenAI account is another[5]. Your provider bills you directly; INFRO adds no markup to model spend.

What happens on a 429 is documented. When a request names a model directly, INFRO tries every enabled, healthy connection that serves that vendor's model, spreading requests across a provider's active keys and trying standby keys and keys that just answered 429 last. When it names a route, it tries the route's targets in priority or weighted order. Every upstream failure before the first token moves on to the next connection, including a 429, and a provider 429 does not count against the connection's health[6]. A `weighted` route picks the first target in proportion to its weight and still falls through the rest if it fails; a `priority` route is a primary with fallbacks[7].

```python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.infro.io/v1",
    api_key="INFRO_GATEWAY_KEY",
)

# "support-agent" is a route: Azure deployments first, OpenAI last
resp = client.chat.completions.create(
    model="support-agent",
    messages=[{"role": "user", "content": "Where is my order?"}],
)
```

Three limits to keep in view. Failover moves the request to a different connection; it cannot create quota inside Azure, so it helps only if your targets are backed by separate limits. A connection's alternate hosts are extra API hosts for the same key, tried when the first cannot be reached, which is for reachability, not for adding TPM. And failover happens before the response starts, so a stream that has begun is not moved.

For the data-handling decision, use the controls to enforce it. Put the OpenAI connection only on routes whose traffic you have approved for it, and limit a gateway key to the providers its application should use, so a workload you have kept on Azure is not eligible for the fallback. Gateway keys can also be rotated with an overlap window while you redeploy. [Provider quota is short: which requests should survive](https://infro.io/blog/provider-quota-is-short-which-ai-requests-should-survive) covers deciding what gets the scarce capacity first.

## A short triage list

When the 429s start, work through this in order:

- [ ] Read `x-ratelimit-remaining-tokens` and `-requests` on a failing call: token-bound or request-bound?
- [ ] Check the deployment's assigned TPM, and the RPM ratio for that model and version.
- [ ] Confirm retries use backoff, honour `retry-after-ms`, and are not doubled by two retry layers.
- [ ] Look at the Quota page's Scope for the model: regional or subscription pool?
- [ ] Reassign unused TPM from other deployments, then file a quota request if still short.
- [ ] Add capacity only where it has separate quota: another region, deployment type or subscription.
- [ ] Decide, with your data owner, which traffic may fail over to the OpenAI API.

## Questions

### Does a higher max_tokens make Azure OpenAI return 429 sooner?

According to Microsoft's quota page, token rate-limit calculations use actual input and generated tokens, not the configured maximum output-token value, so a higher max_tokens does not reserve TPM [1]. Oversized prompts and long answers are what consume the budget.

### How long does a quota change take to apply?

Microsoft says to allow up to 15 minutes after you edit an allocation or submit a request, then refresh the Quota page to confirm [1]. Approval of a request is separate and is not guaranteed.

### Will retrying immediately fix a 429?

No. Microsoft notes that unsuccessful requests still count toward your per-minute limit, so resending without backing off makes throttling worse [1]. Wait for the retry-after-ms value when the response includes it.

### Can I get Azure OpenAI quota increased on a free-tier subscription?

Not through the request flow. Microsoft states that Free tier (Tier 0) subscriptions are not eligible for quota increases; they use the quota available at their tier until the subscription moves to a higher one [2].

## Sources

1. Manage Azure OpenAI in Microsoft Foundry Models quota — Microsoft Learn. https://learn.microsoft.com/en-us/azure/foundry/openai/how-to/quota (accessed 2026-11-25)
2. Azure OpenAI in Microsoft Foundry Models quotas and limits — Microsoft Learn. https://learn.microsoft.com/en-us/azure/foundry/openai/quotas-limits (accessed 2026-11-25)
3. Microsoft Foundry Models quotas and limits — Microsoft Learn. https://learn.microsoft.com/en-us/azure/foundry/foundry-models/quotas-limits (accessed 2026-11-25)
4. Data, privacy, and security for Models sold by Azure in Microsoft Foundry — Microsoft Learn. https://learn.microsoft.com/en-us/azure/foundry/responsible-ai/openai/data-privacy (accessed 2026-11-25)
5. Connect a provider — INFRO Docs. https://infro.io/docs/providers (accessed 2026-11-25)
6. Failover & fallbacks — INFRO Docs. https://infro.io/docs/features/fallbacks (accessed 2026-11-25)
7. Routes — INFRO Docs. https://infro.io/docs/routes (accessed 2026-11-25)
