我正在使用 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 中,以下设置阻止设置“AzureWebJobsDashboard”...
资源“azurerm_linux_function_app”“fapp”{ ... 内置日志记录启用 = false }