-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[azurerm_service_plan] Support for the new Automatic Scaling (currently in preview) #22313
Comments
This is GA now, in the interim it can be enabled using azapi resource "azapi_update_resource" "elastic_scale" {
type = "Microsoft.Web/serverfarms@2022-09-01"
name = {service plan name}
parent_id = {resource group id}
body = jsonencode({
properties = {
elasticScaleEnabled = true
}
})
} |
I have also solved this using azapi this includes the per app settings:
|
This works perfectly, thank you. This currently does not work for functions and function service plans, im guessing the siteConfig properties are a bit different, I will try to research it and set it up. Will update |
Thanks all, working on it now. |
Is there an existing issue for this?
Community Note
Description
There is a feature in preview for P2v2 and Pv3 instances since 8/May/23 to use the automatic scaling, that is similar to what exist for the Elastic instances (to be used for Functions), but it seems that currently there is no support for it.
Even considering that this is a preview feature it will be better to use the current provider instead of the AzPI
New or Affected Resource(s)/Data Source(s)
azurerm_service_plan
Potential Terraform Configuration
References
https://azure.microsoft.com/en-us/updates/preview-automatic-scaling-for-app-service-web-apps/
https://learn.microsoft.com/en-us/azure/app-service/manage-automatic-scaling?tabs=azure-portal
https://learn.microsoft.com/en-us/azure/templates/microsoft.web/2022-03-01/serverfarms?pivots=deployment-language-bicep
The text was updated successfully, but these errors were encountered: