Terraform Azure Function App not deploying due to missing application settings
I'm working on a personal project and I'm trying to deploy an Azure Function App using Terraform, but I'm running into issues where the deployment fails because it want to find the specified application settings. I've defined a resource block for the Function App and included the app settings, but it seems they are not being applied correctly. Here's the code I am using: ```hcl resource "azurerm_function_app" "example" { name = "example-function-app" location = azurerm_resource_group.example.location resource_group_name = azurerm_resource_group.example.name app_service_plan_id = azurerm_app_service_plan.example.id storage_account_name = azurerm_storage_account.example.name storage_account_access_key = azurerm_storage_account.example.primary_access_key version = "~2" os_type = "linux" app_settings = { "FUNCTIONS_WORKER_RUNTIME" = "dotnet" "WEBSITE_RUN_FROM_PACKAGE" = "1" "MyCustomSetting" = "MyValue" } } ``` I also have a storage account and an app service plan defined in Terraform, and they seem to deploy without any issues. However, when I run `terraform apply`, I get the following behavior message: ``` behavior: creating Function App "example-function-app": <behavior details go here> (possibly due to missing app settings) ``` I've tried checking the Azure portal after deployment, and the Function App is created, but it doesn't have any of the app settings that I specified in the Terraform configuration. I've ensured that the storage account is correctly associated and that I have the necessary permissions. I also verified that I am using Terraform version 1.1.0 and the Azure provider version 2.65.0. Is there something specific I might be missing in my configuration? Any insights on how to troubleshoot this scenario would be greatly appreciated. What's the best practice here?