Share via

Way to deploy web app in respective zone with out quota error using bicep

Varma 1,620 Reputation points
2026-05-21T01:34:05.8666667+00:00

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

An Azure service that is used to automate, configure, and install updates across hybrid environments.

0 comments No comments

1 answer

Sort by: Most helpful
  1. 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:

    1. 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.
    2. 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 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.
      • Mitigation is to either revise the deployment to stay within quotas or request a quota increase.
      To inspect current VM quotas:
      • Azure CLI:
             az vm list-usage --location "<region>" --output table
        
      • PowerShell:
             Get-AzVMUsage -Location "<region>"
        
    3. Programmatically manage quotas with Bicep (where supported)
      For subscriptions that support the 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:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.