Hi Mohamed,
Great question — quota and throughput validation is an important pre-production step, and the documentation covers it well. Here is a practical walkthrough based on the official guidance, which you referenced in your question.
1. Understanding TPM and RPM
When you deploy a model in Azure AI Foundry, quota is assigned in units of Tokens Per Minute (TPM). The platform automatically derives a corresponding Requests Per Minute (RPM) limit from that TPM value — you don't set them independently.
2. View Your Current Quota Allocation
In the Azure AI Foundry portal (ai.azure.com):
- Navigate to Management → Quota.
- You'll see quota allocated per model, per region, and how much is consumed across deployments.
- On the Deployments page, you can also view and adjust the TPM assigned to each individual deployment.
This is the right starting point — before running any tests, confirm that the TPM you've assigned aligns with your expected production load.
3. Monitor Token Usage and Rate Limits (Azure Monitor)
Azure Monitor automatically collects metrics for your Azure OpenAI resource. Key metrics to watch:
| Metric |
What it tells you |
AzureOpenAITokenTransaction |
Total prompt + completion tokens consumed |
|
|
AzureOpenAITokenTransaction |
Total prompt + completion tokens consumed |
AzureOpenAITimeToResponse |
Latency from request to first byte (streaming) |
AzureOpenAITTLTInMS |
Time to last byte |
AzureOpenAITokenPerSecond |
Token generation speed |
AzureOpenAIProvisionedManagedUtilizationV2 |
PTU utilization % (for provisioned deployments) |
HTTP 429 response codes |
Indicates rate limit was hit |
To access these:
- Sign in to the Azure portal.
- Open your Azure OpenAI resource → Metrics.
- Select the metrics above and apply splitting by
ModelDeploymentName to isolate your deployment.
4. Monitor Your Agent Specifically (Agent Monitoring Dashboard)
If you're using an AI Foundry agent (as you mentioned), there is a built-in monitoring dashboard:
- In Foundry portal, go to Build → select your agent.
- Select the Monitor tab.
This dashboard shows:
- Token usage over time
- Latency per run
- Run success rate (a rate below 95% warrants investigation)
- Evaluation metrics
High token usage may indicate verbose prompts that could be optimized.
5. Load Testing (Simulating Concurrent Users)
For simulating real-world traffic before production, the recommended approach is Azure Load Testing:
It generates high-scale load against your endpoint.
It integrates with Azure Monitor so you can observe token consumption and latency under stress.
You can detect the point at which 429 throttling begins.
Reference: Azure Load Testing overview
A practical pattern from the quota docs is:
Ramp up traffic gradually when onboarding new workloads. Avoid sharp spikes — RPM rate limits expect requests to be evenly distributed over each minute, and a burst within a 1–10 second window can trigger a 429 even if total requests are below the per-minute limit.
6. Knowing When to Request a Quota Increase
You likely need a quota increase when:
- You are consistently hitting 429 responses near the end of a minute window.
- Azure Monitor shows TPM/RPM utilization close to 100%.
- Your projected production throughput (from load testing) exceeds the currently assigned TPM.
To request an increase:
Note from the docs: priority is given to customers who are generating traffic that already consumes their existing quota, so running real load tests before requesting helps.
Summary of Recommended Steps
- Check current quota: Management → Quota in Foundry portal.
- Assign appropriate TPM: Adjust on the Deployments page.
- Run a load test: Use Azure Load Testing to simulate production traffic.
- Watch Azure Monitor: Look for 429s, high latency, TPM consumption.
- Review agent metrics: Use the Agent Monitoring Dashboard (Monitor tab).
- Request a quota increase if 429s appear at expected production load.
Please 'Upvote' (Thumbs-up) and 'Accept' as answer if the response was helpful. This will benefit other community members who face the same issue.
Best regards,
Andrew S Taylor