通过 ARM 模板配置每日交易量上限警告级别

Don*_*nut 1 azure azure-application-insights azure-rm-template

在 Azure Application Insights 实例的“使用情况和估计成本”边栏选项卡下,“每日上限”窗口允许在达到每日数量上限的特定百分比时发送警告。

默认情况下,此警告级别为 90% - 但可以设置为任何百分比。有没有办法通过 ARM 模板设置此百分比,而不是在 Azure 门户中手动设置?

小智 5

下面是用于设置应用程序见解配额(包括警告阈值)的示例 ARM 模板。这将设置 5GiB 的限制,并警告 90%,并在每天 23:00 重置。:

    {
      "name": "[concat(parameters('appInsightsName'),'/Basic')]",
      "type": "Microsoft.Insights/components/CurrentBillingFeatures",
      "location": "[resourceGroup().location]",
      "apiVersion": "2015-05-01",
      "dependsOn": [
        "[resourceId('Microsoft.Insights/components', parameters('appInsightsName'))]"
      ],
      "properties": {
        "CurrentBillingFeatures": "Basic",
        "DataVolumeCap": {
          "Cap": 5,
          "WarningThreshold": 90,
          "ResetTime": 23
        }
      }
    }
Run Code Online (Sandbox Code Playgroud)