You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
provider"azurerm" {
features {}
}
resource"azurerm_linux_function_app""linux-example" {
name="xxxx"resource_group_name="xxxx"location="xxxx"storage_account_name="xxxx"storage_account_access_key="xxxx"service_plan_id=azurerm_service_plan.linux-examplesite_config {
application_stack {
dotnet_version="8.0"# currently only allows 3.1, 6.0, 7.0
}
}
}
resource"azurerm_windows_function_app""windows-example" {
name="dotnet8-example-windows-function-app"resource_group_name="example-resources"location="Australia East"storage_account_name="xxxx"storage_account_access_key="xxxx"service_plan_id=azurerm_service_plan.windows-examplesite_config {
application_stack {
dotnet_version="v8.0"# currently only allows v3.0, v4.0, v6.0 and v7.0use_dotnet_isolated_runtime=true
}
}
}
resource"azurerm_service_plan""windows-example" {
name="example-windows-app-service-plan"resource_group_name="xxxx"location="xxxx"os_type="Windows"sku_name="Y1"
}
resource"azurerm_service_plan""linux-example" {
name="example-linux-app-service-plan"resource_group_name="xxxx"location="xxxx"os_type="Linux"sku_name="Y1"
}
Debug Output/Panic Output
N/A
Expected Behaviour
Deploy with (Windows|Linux)FxVersion = "dotnet|8.0"
Actual Behaviour
Error, as 8.0 (Linux) or v8.0 (Windows) is not an allowed value currently.
Steps to Reproduce
terraform plan
Error: expected site_config.0.application_stack.0.dotnet_version to be one of ["3.1""6.0""7.0"], got 8.0
Error: expected site_config.0.application_stack.0.dotnet_version to be one of ["v3.0""v4.0""v6.0""v7.0"], got 8.0
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is there an existing issue for this?
Community Note
Terraform Version
1.6.2
AzureRM Provider Version
3.77.0
Affected Resource(s)/Data Source(s)
azurerm_linux_function_app, azurerm_windows_function_app
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Deploy with (Windows|Linux)FxVersion = "dotnet|8.0"
Actual Behaviour
Error, as
8.0
(Linux) orv8.0
(Windows) is not an allowed value currently.Steps to Reproduce
Important Factoids
No response
References
https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=isolated-process%2Cv4&pivots=programming-language-csharp#tabpanel_2_v4_isolated-process
The text was updated successfully, but these errors were encountered: