Hi,
Terraform Version: 1.1.8
Azure RM Version Used: 3.7.0
Code which used is pasted below:
provider "azurerm" {
features {}
}
resource "azurerm_storage_account" "storage" {
name = "storageaccount"
resource_group_name = "rgp01"
location = eastasia
account_tier = "Standard"
account_replication_type = "LRS"
account_kind = "StorageV2"
access_tier = "Hot"
is_hns_enabled = "true"
min_tls_version = "TLS1_2"
}
}
resource "azurerm_windows_function_app" "functionapp" {
name = "functionapp01"
location = eastasia
resource_group_name = "rgp01"
service_plan_id = "planid"
storage_account_name = azurerm_storage_account.storage.name
storage_account_access_key = azurerm_storage_account.storage.primary_access_key
https_only = "true"
functions_extension_version ="~4"
site_config {
always_on = "false"
ftps_state = "Disabled"
http2_enabled = "true"
minimum_tls_version = "1.2"
vnet_route_all_enabled = "true"
application_stack {
dotnet_version = "6"
}
}
}
But when the function_app deployed we can see that .net version is not getting updated and we are getting below warning:
Your app is pinned to an unsupported runtime version for 'dotnet'. For better performance, we recommend using one of our supported versions instead: ~3. + terraform
on checking “az functionapp config show -g rgname -n functionapp” We can see that the netframeworkversion is not getting updated. Please verify the same from below-pasted screenshot:
Please help to resolve the issue.