An Azure service that provides an event-driven serverless compute platform.
Hello @Peters, A.A. (Alwin) ,
Thank you for reaching out to Microsoft Q & A !
There are two separate aspects here: Azure Functions platform support and Terraform AzureRM provider support.
I don’t have a verified release date for PowerShell 7.6 support in azurerm_linux_function_app.
Microsoft Azure Functions supports PowerShell 7.6 for applicable hosting plans, but whether you can configure 7.6 through azurerm_linux_function_app also depends on the version of the AzureRM Terraform provider you are using.
If your installed provider rejects:
powershell_core_version = "7.6"
during Terraform validation, that indicates the provider version you are using does not currently accept that value.
One important consideration is the hosting plan. If your Function App uses Linux Consumption, Microsoft’s guidance is to migrate to Flex Consumption before upgrading from PowerShell 7.4 to 7.6, rather than only changing the runtime version.
Microsoft documentation: Azure Functions supported languages
For the Terraform-specific part, could you provide:
AzureRM provider version.
The exact Terraform error and relevant application_stack configuration, with sensitive values removed.
The Function App hosting plan (Linux Consumption, Flex Consumption, Premium, App Service, etc.).
With those details, we can determine whether the limitation is coming from the hosting plan/runtime support or from the AzureRM provider schema.
I would also recommend checking the AzureRM provider changelog for your specific provider version before upgrading or making an out-of-band portal change. If the runtime is changed outside Terraform, review the subsequent terraform plan carefully to see whether Terraform attempts to revert the change.
Please "Upvote the Answer" if this information helped you. This will help us and others in the community as well.