Add ability to export definition of an alert as a JSON template for ARM
By next week this will be available for all alert types.
Phill Dellow commented
This would be really useful in my present task
Adam Reynolds commented
This is particularly bad because it *pretends* to work when you hit "Export Template", but the resulting template is missing all alert criteria.
Sam Smith commented
This is crazy this isn't a feature. I used Azure Az to get the criteria as a workaround: https://docs.microsoft.com/en-us/cli/azure/monitor/metrics/alert?view=azure-cli-latest#az-monitor-metrics-alert-show
Christian Eder commented
As a workaround: you can create the alert manually, and the use the creation notification on the top right corner of the portal to go to the activity log. In the details of the alert creation activity log entry, you'll find the actual ARM template JSON for the alert in the "requestbody" body property.