1

I need to set the autoscaling for a resource to automatic (the option which is currently in preview). I can do it through the portal but couldn't find any documentation to do it in a bicep file. Is it even possible, any ideas?

Thomas
  • 24,234
  • 6
  • 81
  • 125
Luca Prodan
  • 75
  • 1
  • 5

1 Answers1

1

According to the documentation, you have these two properties to configure automatic autoscaling:

resource appServicePlan 'Microsoft.Web/serverfarms@2022-03-01' = {
  name: appServicePlanName
  location: location
  sku: {
    // Need to be Premium V2 or V3
  }
  properties: {
    elasticScaleEnabled: true
    maximumElasticWorkerCount: 30
  }
}
Thomas
  • 24,234
  • 6
  • 81
  • 125