Skip to content
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

Support for Elastic Scale on Premium SKUs for the azure_service_plan resource #28358

Open
1 task done
AaronCoad opened this issue Dec 20, 2024 · 0 comments · May be fixed by #28524
Open
1 task done

Support for Elastic Scale on Premium SKUs for the azure_service_plan resource #28358

AaronCoad opened this issue Dec 20, 2024 · 0 comments · May be fixed by #28524

Comments

@AaronCoad
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Description

The Azure REST API for app service plans, provides support for setting "properties.elasticScaleEnabled" which, when true, enables the platform managed scaling for the app service plan when used for Web Apps. This is effective under the following conditions:

  • Per Site Scaling is disabled
  • A Premium V2 or Premium V3 SKU is in use

The maximum_elastic_worker_count should also be made available to be used for the Premium V2 and Premium V3 tiers.

New or Affected Resource(s)/Data Source(s)

azurerm_service_plan

Potential Terraform Configuration

provider "azurerm" {
  features {}
}

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "West Europe"
}

resource "azurerm_service_plan" "example" {
  name                         = "example"
  resource_group_name          = azurerm_resource_group.example.name
  location                     = azurerm_resource_group.example.location
  os_type                      = "Linux"
  sku_name                     = "P1v2"
  maximum_elastic_worker_count = 3
  elastic_scale_enabled        = true
}

References

App Service Plans - Create Or Update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants