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



在"使用和估计成本";Azure Application Insights实例的刀片;每日上限";窗口允许在达到每日音量上限的特定百分比时发送警告。

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

用于设置应用程序洞察配额(包括警告阈值(的示例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
}
}
}

最新更新