Open khaliddermoumi opened 3 years ago
We need support for the rest siteConfig arguments: https://github.com/Azure/azure-sdk-for-go/blob/v52.5.0/services/web/mgmt/2020-09-01/web/models.go#L21405
Supporting only 'LinuxFxVersion' is not helping.
This is needed for .NET 5 functions. I don't think an isolated .NET 5 app can be created without it.
Yes @Elip-tdlr .NET 5 functions cannot be built.
hi team, we meet same issue that for function app deploy from Terraform, but got this error. Terraform version : Terraform v1.0.3 on linux_amd64
terraform { required_providers { azure = { source = "hashicorp/azurerm" version = "= 2.73.0" } } Error: Unsupported argument │ │ on main.tf line 25, in resource "azurerm_function_app" "example": │ 25: php_version = "7.4" │ │ An argument named "php_version" is not expected here.
Could I confirm whether terraform support for PHP version now
Community Note
Description
An Azure function app is created for a specific language runtime, f. e. dotnet or python. Those runtime languages are typically supported in several versions each, f. e. python: 3.8, 3.7, & 3.6. This is documented here. The ARM REST API supports this by several attributes, in the "siteConfig" data structure. From the azure-sdk-for-go docs:
Of all these attributes, only LinuxFxVersion is currently supported. Support for the other attributes is needed, especially to create valid configurations for Windows function apps. The attributes "PhpVersion" and "WindowsFxVersion" don't need to be implemented, as they aren't supported for function apps. The "JavaContainerVersion" may also needed to be implemented, if it is supported by function apps.
The support is also needed for azurerm_function_app_slot. Some, but not all of these attributes are already implemented in azurerm_app_service.
New or Affected Resource(s)
Potential Terraform Configuration
References
0000