azureazure-resource-managerazure-bicepazure-app-service-plans

Can the zoneRedundant property be used with app service plan using bicep?


I am trying to specify the property for zone redundancy with an app service plan definition using Bicep. I am using Visual Studio Code. Intellisense says this property is not supported. Has anyone encountered this issue, and if so, how did you get around it?


Solution

  • From the documentation, I can see it is available since version 2021-02-01. So using one of the latest versions should work:

    resource appServicePlan 'Microsoft.Web/serverfarms@2021-03-01' = {
      ...
      properties: {
        ...
        zoneRedundant: true
      }
    }