Is there an existing issue for this?
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 "+1" or "me too" comments, 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
Flex Consumption plans are now in public preview, would like support for these resources without using the azapi provider.
I believe the service_plan validation must allow the "FC1" sku_name, apart from that we need new optional attributes om the azurerm_linux_function_app and azurerm_windows_function_app
Attributes should be available in the following ARM template versions
Microsoft.Web/serverfarms@2023-12-01
Microsoft.Web/sites@2023-12-01
New or Affected Resource(s)/Data Source(s)
azurerm_service_plan azurerm_linux_function_app azurerm_windows_function_app
Potential Terraform Configuration
resource "azurerm_service_plan" "example" {
name = "example"
(...)
sku_name = "FC1"
}
resource "azurerm_x_function_app" "example" {
name = "example-windows-function-app"
(..)
scale_and_concurrency = { # optional
maximum_instance_count = #1 to 1000? # "Scale out further – The default scale limit set by client tools is 100, but this can be changed up to 1000 instances per app"
instance_memory_mb = # 2048 or 4096 supported
},
}
References
https://techcommunity.microsoft.com/t5/apps-on-azure-blog/announcing-public-preview-of-azure-functions-flex-consumption/ba-p/4139028
https://github.com/Azure-Samples/azure-functions-flex-consumption-samples/blob/main/IaC/terraform/main.tf
Is there an existing issue for this?
Community Note
Description
Flex Consumption plans are now in public preview, would like support for these resources without using the azapi provider.
I believe the service_plan validation must allow the "FC1" sku_name, apart from that we need new optional attributes om the
azurerm_linux_function_appandazurerm_windows_function_appAttributes should be available in the following ARM template versions
Microsoft.Web/serverfarms@2023-12-01
Microsoft.Web/sites@2023-12-01
New or Affected Resource(s)/Data Source(s)
azurerm_service_plan azurerm_linux_function_app azurerm_windows_function_app
Potential Terraform Configuration
References
https://techcommunity.microsoft.com/t5/apps-on-azure-blog/announcing-public-preview-of-azure-functions-flex-consumption/ba-p/4139028
https://github.com/Azure-Samples/azure-functions-flex-consumption-samples/blob/main/IaC/terraform/main.tf