Error while creating Bicep WebApp through Visual Code, PLEASE SUGGEST

Copper Contributor

My code:

 

resource azbicepasp1 'Microsoft.Web/serverfarms@2020-12-01' = {
  name: 'azbicep-dev-esu-asp1'
  location: resourceGroup().location
  sku: {
    name: 'S1'
    capacity: 1
  }
}

resource azbicepwebapp 'Microsoft.Web/sites@2021-01-15' = {
  name: 'azbicep-dev-esu-webapp1'
  location: resourceGroup().location
  properties: {
    serverFarmId: resourceId('Microsoft.web/serverfarms', 'azbicepasp1')
  }
}
 
 
OUTPUT:

 

{"code": "InvalidTemplateDeployment", "message": "The template deployment '2.azbicep-dev-eus-appserviceplan' is not valid according to the validation procedure. The tracking id is 'f7c44838-892d-4ae8-b127-684f1b681c79'. See inner errors for details."}

Inner Errors:
{"code": "ValidationForResourceFailed", "message": "Validation failed for a resource. Check 'Error.Details[0]' for more information."}

Inner Errors:
{"code": "SubscriptionIsOverQuotaForSku", "message": "This region has quota of 1 instances for your subscription. Try selecting different region or SKU."}

1 Reply

@vihaan0022 The error message you are encountering indicates that you have exceeded the quota limit for the specified SKU in the region you are trying to deploy to. The error message says "This region has quota of 1 instances for your subscription. Try selecting different region or SKU." This means that you have already used one instance of the SKU "S1" in your subscription and you need to either choose a different SKU or a different region.

 

To resolve this issue, you can either:

  1. Change the SKU to a different one that has a higher quota in the region. You can check the available SKUs and their quotas in the Azure portal.
  2. Deploy to a different region that has a higher quota for the SKU you are trying to use. You can check the available quotas for different regions in the Azure portal.

Alternatively, you can also raise a support request with Azure support to increase the quota for the region and SKU you are trying to use.