Open oWretch opened 1 month ago
Thanks @oWretch for raising this issue, just curious about whether you are able to create the function app via Azure portal? Seems I'm having issue creating the flex consumption function app via any methods.
Hi @xiaxyi. Yes, I have been able to create Flex Consumption Function Apps both via the portal and code. I've written a blog post on how to do it with the AzAPI provider: https://solideogloria.tech/azure/deploy-a-flex-consumption-function-app-with-terraform/
Also worth noting that this sample code from the Azure-Samples works with the AzAPI provider as well. I have tested this code and confirm it works. https://github.com/Azure-Samples/azure-functions-flex-consumption-samples/blob/main/IaC/terraform/main.tf
Now we just need the AzureRM provider to be current with this feature.
Hi guys! I also need to deploy a function app in consumption plan, are there plans for these adjustments to be included in AzureRM provider in a near future ?
Is there an existing issue for this?
Community Note
Terraform Version
1.9.1
AzureRM Provider Version
3.112.0
Affected Resource(s)/Data Source(s)
azurerm_linux_function_app
Terraform Configuration Files
Debug Output/Panic Output
After adding support for the
FC1
SKU to theazurerm_service_plan
in #26351 as part of #26043 I attempted to also create a flex consumption function app. This failed with the above error.Resolution of this is dependant upon hashicorp/go-azure-sdk#1017 ,which may be dependant upon an upstream fix - I haven't investigated that far.
I'm mostly raising this issue as a placeholder for a known issue.
As an aside, it seems that Microsoft are making some significant changes to the way the Function App is provisioned - many of the old settings are deprecated and replaced with new settings inside the
functionAppConfig
structure. Reference: https://learn.microsoft.com/en-us/azure/azure-functions/flex-consumption-plan.Also, from further testing, the
functionAppConfig
structure is only supported on the flex consumption function apps.