Detailed Workflows: Quota Management
Table of Contents: Workflow 1: View Current Quota Usage · Workflow 2: Find Best Region for Model Deployment · Workflow 3: Check Quota Before Deployment · Workflow 4: Monitor Quota Across Deployments · Quick Command Reference · MCP Tools Reference
Workflow 1: View Current Quota Usage - Detailed Steps
Step 1: Show Regional Quota Summary (REQUIRED APPROACH)
CRITICAL AGENT INSTRUCTION:
- When showing quota: Query REGIONAL quota summary, NOT individual resources
- DO NOT run
az cognitiveservices account listfor quota queries- DO NOT filter resources by username or name patterns
- ONLY check specific resource deployments if user provides resource name
- Quotas are managed at SUBSCRIPTION + REGION level, NOT per-resource
Show Regional Quota Summary:
bash
# Get subscription ID
subId=$(az account show --query id -o tsv)
# Check quota for key regions
regions=("eastus" "eastus2" "westus" "westus2")
for region in "${regions[@]}"; do
echo "=== Region: $region ==="
az rest --method get \
--url "https://management.azure.com/subscriptions/$subId/providers/Microsoft.CognitiveServices/locations/$region/usages?api-version=2023-05-01" \
--query "value[?contains(name.value,'OpenAI.Standard')].{Model:name.value, Used:currentValue, Limit:limit, Available:(limit-currentValue)}" \
--output table
echo ""
doneStep 2: If User Asks for Specific Resource (ONLY IF EXPLICITLY REQUESTED)
bash
# User must provide resource name
az cognitiveservices account deployment list \