azure - 如何使用 ARM 模板更新 Azure 函数中的运行时规模监控设置

标签 azure azure-functions azure-resource-manager

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

附上设置截图。

enter image description here

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

最佳答案

如果您单击屏幕截图中的“了解更多”链接,您将看到一个文档,该文档描述了如何通过 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 是声明性的,因此您不能直接使用该示例,因为它会删除所有其他设置。您需要相应地填写...

有帮助吗?

关于azure - 如何使用 ARM 模板更新 Azure 函数中的运行时规模监控设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64987408/

相关文章:

azure - Visual Studio 2017 中缺少 Durable Functions Orchestration

javascript - ADAL.js - "Nonce is not same as undefined"

powershell - Azure 资源模板中的 dataDisk.image 参数

azure - 将数据从 Azure Synapse Serverless SQL 池批量加载到 Azure 存储或 Databricks Spark 的最佳方法

azure ARm 模板 - 无法将 AD 应用程序注册与功能应用程序关联

c# - 为什么微软说 Azure Functions 是针对小段代码的?

azure - 将中等大小的视频上传到 azure blob 存储的最佳方式?

azure - 使用 ARM 模板在 Azure Function App 中轻松进行身份验证和授权

Azure Bicep BP165 错误 - 资源的计算范围必须与 Bicep 文件的范围匹配才能部署

powershell - 如何使用Microsoft帐户添加-AzureRmAccount?