New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azurerm_function_app version 3 adds an unsupported app config #8432
Comments
Hello, I encounter the same issue. I must deploy an Azure Function with the runtime version 3 and I encounter the below error : resource "azurerm_function_app" "AF-Core-steps" {
name = "AF-${var.client}-${var.environment}-${var.project_Flux}-IT-CORE-steps"
location = module.resource_group_CORE.out_rg_location
resource_group_name = module.resource_group_CORE.out_rg_name
app_service_plan_id = azurerm_app_service_plan.ASP-Core.id
https_only = "true"
version = "~3"
storage_account_name = module.storage_account_CORE.out_storage_account_name
storage_account_access_key = module.storage_account_CORE.out_storage_primary_connection_string
tags = merge(var.default_tags, var.default_Core_tags, var.AF-Core-steps_tags)
lifecycle {
ignore_changes = all
}
} Is anyone find a solution to deploy Function App with the runtime version 3 with Terraform ? regards, |
Hi, I am specifying the version in app_settings and its working for me My code resource "azurerm_function_app" "this" { |
this should apply to any version that is not ~1, so should omit for ~4 as well. It logs a warning if it's set per Azure/Azure-Functions#1923 |
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_function_app
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
When we specify version = "~3" the app should not have a app config value set for AzureWebJobsDashboard.
According to Microsoft documentation (https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings#azurewebjobsdashboard) this is a valid setting only for version 1.
Actual Behavior
The deployment is adding the config value for AzureWebJobsDashboard setting under configuration which is leaving the function app in a runtime error state.
![Annotation 2020-09-10 102556](https://user-images.githubusercontent.com/7800452/92834835-d7cd3400-f41d-11ea-9386-8e79449c0f8b.png)Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: