Create Azure alerts (not classic) by resource manager templates

自古美人都是妖i 提交于 2019-12-24 19:38:23

问题


I have created some of the new alerts through the portal UI and now need to deploy these by resource manager template, but I am unable to locate the JSON schema for this resource type.

I can find the resource listing in the relevant resource group in the Resource Explorer website (looks like it must be the type microsoft.insights/scheduledqueryrules), but the JSON to create the resource does not exist.

There is documentation for templating the classic alerts, but nothing for the new type.

Is it possible.


回答1:


You need to use the Resource Explorer in Azure Portal, not the https://resources.azure.com/ one as it seems to not include everything.

I wrote a blog about the whole process. It includes the ARM template and some common gotchas you might come across.

http://chapsas.com/setting-up-alerts-using-application-insights-the-new-ones/



来源:https://stackoverflow.com/questions/49739021/create-azure-alerts-not-classic-by-resource-manager-templates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!