An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
Likely cause: this behavior is usually capacity/rate-admission pressure on Global Standard rather than a single app-side misconfiguration. In Azure OpenAI, request admission is based on estimated processed tokens and short-interval traffic shape, so similar requests can sometimes pass and sometimes be throttled when load changes.
- Validate with metrics first (confirm vs assume)
- In Azure Monitor for your Azure OpenAI resource, chart during the incident window:
- AzureOpenAIRequests (look for 429 spikes)
- ProcessedPromptTokens and GeneratedTokens
- AzureOpenAITimeToResponse and/or AzureOpenAITTLTInMS
- Capture response headers from both success/failure calls:
x-ratelimit-remaining-tokens,x-ratelimit-remaining-requests,retry-after-ms.
- In Azure Monitor for your Azure OpenAI resource, chart during the incident window:
- Reduce admission pressure per request
- Keep
max_tokensas low as practical for your scenario. - Keep
best_of=1unless you explicitly need multiple candidates. - Smooth burst traffic (queue + controlled concurrency) instead of sending spikes.
- Keep
- Implement resilient retries for
no_capacity/429- Use exponential backoff + jitter.
- Respect
retry-after-mswhen present. - Cap retries and route exhausted requests to fallback handling.
- Re-check quota and deployment fit
- Verify effective TPM/RPM and model quota for your subscription.
- For customer-facing reliability, evaluate whether Provisioned Throughput (PTU) is a better fit than Global Standard.
- Note: PTU changes cost model (capacity-based hourly/reservation billing), so review cost impact first.
- Run a controlled reliability comparison
- Compare current deployment vs alternate region and/or PTU under equivalent load.
- Track failure rate, p95 latency, and throughput.
Confirmed facts from docs:
- Azure OpenAI throttling/admission uses estimated token processing and short-interval request rate checks (so throttling can occur before exact token-count expectations).
Possible cause in your case (needs your telemetry/support confirmation):
- Transient capacity contention for your workload pattern in that period.
Official references:
- Azure OpenAI quotas and limits: https://learn.microsoft.com/en-us/azure/foundry/openai/quotas-limits
- Quota/rate-limit behavior and headers: https://learn.microsoft.com/en-us/azure/foundry-classic/openai/how-to/quota
- Performance and latency guidance: https://learn.microsoft.com/en-us/azure/foundry/openai/how-to/latency
- PTU billing/cost implications: https://learn.microsoft.com/en-us/azure/foundry/openai/concepts/provisioned-throughput-billing
If you find this answer helpful, please upvote it. If this resolves your issue, please mark it as the accepted answer so that it can help others in the community.