【问题标题】:How to update Runtime scale monitoring setting in Azure function using ARM template如何使用 ARM 模板更新 Azure 函数中的运行时规模监控设置
【发布时间】:2020-11-24 13:20:25
【问题描述】:

我正在使用高级计划中托管的 Azure 功能。我想使用 ARM 模板启用运行时规模监控。

附上设置截图。

请建议我如何通过 ARM 启用此设置。

【问题讨论】:

    标签: azure azure-functions azure-resource-manager


    【解决方案1】:

    如果您单击屏幕截图中的“了解更多”链接,它将带您进入描述如何通过 CLI 进行操作的文档。该命令将 Web 配置中名为 functionsRuntimeScaleMonitoringEnabled 的属性设置为 true。所以在你的模板中你也会这样做。如何在某种程度上取决于您的模板如何设置配置——它可能位于 webApp 本身或 Microsoft.Web/sites/config 类型的子资源上。

    {
        "type": "Microsoft.Web/sites/config",
        "apiVersion": "2019-08-01",
        "name": "foo",
        "location": "...",
        "properties": {
            "...": "...",
            "functionsRuntimeScaleMonitoringEnabled": true
        }
    }
    

    请注意,ARM 是声明性的,因此您不能直接使用该示例,因为它会擦除您的所有其他设置。您需要相应地填写...

    有帮助吗?

    【讨论】:

      猜你喜欢
      • 2021-01-11
      • 1970-01-01
      • 1970-01-01
      • 2019-09-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-09
      • 2022-10-25
      相关资源
      最近更新 更多