gpt4 book ai didi

terraform - 不再支持 AzureWebJobsDashboard,但会自动添加到 Azure Function App

转载 作者:行者123 更新时间:2023-12-02 15:47:13 25 4
gpt4 key购买 nike

在我们针对 Azure Functions 的 Application Insights 日志中,有很多警告消息:

The Dashboard setting is no longer supported. See https://aka.ms/functions-dashboard for details.

我们使用 Terraform 构建我们的 Azure 资源,并且由于我们的 Function Apps 以“~4”运行时版本为目标,我们没有将 AzureWebJobsDashboard 设置添加到我们的 Function 的应用程序设置中。 (根据 docs:AzureWebJobsDashboard 设置仅对面向 Azure Functions 运行时版本 1.x 的应用程序有效。)

因此,当我在 Azure 门户中发现具有值的 AzureWebJobsDashboard 设置时,我感到很惊讶。知道它是如何到达那里的吗?

我在门户中手动删除了我们正在运行的四个应用程序的设置,记录的警告消失了 - 然而,设置在一段时间后重新出现在其中一个中 🤯 有什么方法可以确保删除是永久的吗?

编辑:我尝试手动删除四个新应用的设置 - 确保保存更改,几个小时后设置在其中两个应用中重新出现。

Edit2:1-2 天后,所有八个应用程序的设置都恢复了。

最佳答案

在 Azure 函数的 terraform 资源中有一个特殊设置 builtin_logging_enabled: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/function_app#enable_builtin_logging

将其设置为 false 将禁用 AzureWebJobsDashboard

只需将它添加到您的 azurerm_windows_function_app 资源中,如下所示:

resource "azurerm_windows_function_app" "func" {
name = "sample-function-app"
builtin_logging_enabled = false
...
}

关于terraform - 不再支持 AzureWebJobsDashboard,但会自动添加到 Azure Function App,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73726827/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com