Setting the file. One moment.
Subchapter 24.39
prepare/references/subagent-quota.mdMarkdown3 KBView on GitHub
Validate SKU quota and offer restrictions across candidate regions before presenting region choices.
Also bundled
PHASEdeploy{"skill": "azure-validate"}, {"skill": "azure-prepare"}, or any other skill call. You are a quota-check subagent only.sku-quota-validation.md before executing ANY quota or offer restriction check. It contains the per-provider API patterns, anti-patterns to avoid, offer restriction checks for database services, region selection logic, and output schema. All procedures live there — follow them exactly.| Field | Required |
|---|---|
subscriptionId | YES |
| SKU list from Step 4 (service type + SKU per service) | YES |
| Restricted-offer services (PostgreSQL, MySQL) | If present in plan |
Detected DB version per DB service (from context.json.detectedServices[], e.g. MySQL 5.7) | ⛔ REQUIRED if a DB is in the plan — the version-selection algorithm in sku-quota-validation.md needs it. |
Return JSON (≤500 tokens):
{
"quotaResults": [
{
"region": "{checked region}",
"services": [
{ "service": "{provider}", "sku": "{sku}", "limit": "{from API}", "used": "{from API}", "available": "{limit - used > 0}" },
// if DB service: add "offerRestricted": "{from capabilities API}", "version": "{selected per sku-quota-validation.md — exact patch, never major-only '8.0'}"
],
"allAvailable": "{true only if ALL services in this region have available=true}"
}
// one entry per checked region
],
"recommendedRegion": "{first region where allAvailable=true}",
"checkedRegions": ["{all regions checked}"],
"offerRestrictions": [
// one entry per DB service+region checked — derive from capabilities API response
{ "provider": "{namespace}", "region": "{region}", "restricted": "{true if blocked}", "reason": "{from API or null}" }
],
"offerRestrictionsVerified": "{true only if every DB service from input has ≥1 entry in offerRestrictions[]}"
}⛔ Caller: copy each DB service’s returned version into prepare-plan.json.services[].version at plan-write — scaffold needs the exact patch (ARM rejects major-only '8.0').
sku-quota-validation.mdsku-quota-validation.md § Offer Restriction Checkaz vm list-usage — wrong provider, misleading dataaz appservice list-locations — lists locations, NOT quotaaz appservice list-usages — wrong scopemcp_azure_mcp_quota — unreliable for App Serviceaz quota list — extension loading fails on Windowsaz rest for ALL quota checkslimit=1, usage=1 means FULLsku-quota-validation.md § Offer Restriction Check≤500 tokens for quota results report.