通过 Terraform 部署 Azure LINUX 函数应用程序 - 在环境中创建 AzureWebJobsDashboard 配置错误。变量

问题描述 投票:0回答:1

我正在使用 Terraform 创建一个 Linux 函数应用程序 - azurerm_linux_function_app。

函数应用程序创建成功。

我已注释掉设置“AzureWebJobsDashboard”,但这仍然出现在环境中。函数应用程序的变量 - 请参阅下面的屏幕截图。我做错了什么?

app_settings = {
    APPINSIGHTS_INSTRUMENTATIONKEY                   = data.azurerm_application_insights.appinsights.instrumentation_key


    # We detected both app settings AzureWebJobsDashboard and APPINSIGHTS_INSTRUMENTATIONKEY are being used with your app.
    # For performance and experience, it is recommended to use APPINSIGHTS_INSTRUMENTATIONKEY 
    # and App Insights for monitoring instead of AzureWebJobsDashboard.
    # AzureWebJobsDashboard                            = "DefaultEndpointsProtocol=https;AccountName=${data.azurerm_storage_account.fapp_sa.name};AccountKey=${data.azurerm_storage_account.fapp_sa.primary_access_key};EndpointSuffix=core.windows.net"
}

terraform azure-functions terraform-provider-azure
1个回答
0
投票

在 Terraform 中,以下设置阻止设置“AzureWebJobsDashboard”...

资源“azurerm_linux_function_app”“fapp”{ ... 内置日志记录启用 = false }

© www.soinside.com 2019 - 2024. All rights reserved.