An Azure service that is used to automate, configure, and install updates across hybrid environments.
Way to deploy web app in respective zone with out quota error using bicep
Varma
1,620
Reputation points
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?
Azure Automation
Azure Automation
1 answer
Sort by: Most helpful
-
AI answer
2026-05-21T01:34:18.6733333+00:00 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:
- Deploy to a region where quota is available
Change the location in the Bicep template (and/or the deployment command) to a region where the subscription has sufficient quota for the required compute resources. - Request a quota increase for the current region
Increase the quota for the relevant compute SKU in the target region, then redeploy. From the context:- The error
SubscriptionIsOverQuotaForSkuis a quota error similar toResourceQuotaExceeded, which occurs when the deployment tries to create resources that exceed the subscription’s quota for that region. - Mitigation is to either revise the deployment to stay within quotas or request a quota increase.
- Azure CLI:
az vm list-usage --location "<region>" --output table - PowerShell:
Get-AzVMUsage -Location "<region>"
- The error
- Programmatically manage quotas with Bicep (where supported)
For subscriptions that support theMicrosoft.Quota/quotasresource, a Bicep template can request quota changes at subscription or other scopes. The generic resource format is:
The exactresource 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) } }name,limitType, andresourceTypevalues depend on the specific quota being changed and must follow theMicrosoft.QuotaAPI documentation for that quota.
After the quota is increased and the change is effective, rerun the Bicep deployment targeting that region.
References:
- Resolve errors for resource quotas
- Troubleshoot common Azure deployment errors
- Microsoft.Quota quotas 2025-09-01 (deployment-language-bicep)
- Microsoft.Quota quotas 2025-07-15 (deployment-language-bicep)
- Microsoft.Quota quotas 2025-03-01 (deployment-language-bicep)
- Microsoft.Quota quotas 2023-02-01 (deployment-language-bicep)
- Unable to deploy resources, can't view Quotas or request increases - Microsoft Q&A
- Azure Deployment Takes 70 Minutes to Fail with Obscure Error - Microsoft Q&A
AI-generated content may be incorrect. Read our transparency notes for more information. - Deploy to a region where quota is available