Community Center | Not monitored
Tag not monitored by Microsoft.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Bicep template failing with following error when tried to deploy web app
error:
New-AzResourceGroupDeployment : 7:00:42 AM - Error: Code=SubscriptionIsOverQuotaForSku; Message=Operation cannot be completed without
additional quota.
Additional details - Location:
Current Limit (Total VMs): 0
Current Usage: 0
Amount required for this deployment (Total VMs): 1
(Minimum) New Limit that you should request to enable this deployment: 1.
Note that if you experience multiple scaling operations failing (in addition to this one) and need to accommodate the aggregate quota
requirements of these operations, you will need to request a higher quota limit than the one currently displayed.
Any way to fix this?
Tag not monitored by Microsoft.
AI answer
The deployment is failing because the subscription has a quota of 0 for the required compute SKU in that region, and the deployment needs quota for at least 1 VM. This is a subscription quota issue, not a Bicep/zone issue.
To fix it, either:
SubscriptionIsOverQuotaForSku is a quota error similar to ResourceQuotaExceeded, which occurs when the deployment tries to create resources that exceed the subscription’s quota for that region. az vm list-usage --location "<region>" --output table
Get-AzVMUsage -Location "<region>"
Microsoft.Quota/quotas resource, a Bicep template can request quota changes at subscription or other scopes. The generic resource format is:
resource quotaRequest 'Microsoft.Quota/quotas@2025-09-01' = {
scope: subscription()
name: 'string' // quota name for the specific resource type/SKU
properties: {
limit: {
limitObjectType: 'LimitValue'
limitType: 'string' // per-API docs for the quota type
value: 1 // new desired limit, e.g., 1 or higher
}
name: {
value: 'string' // same quota name
}
resourceType: 'string' // resource type for the quota (per quota API)
}
}
The exact name, limitType, and resourceType values depend on the specific quota being changed and must follow the Microsoft.Quota API documentation for that quota.After the quota is increased and the change is effective, rerun the Bicep deployment targeting that region.
References: