I am attempting to get a list of all alert rules set up for a resource group.
(Ideally, I would like to get the alert rules for an application. But I am not sure that is possible)
I have been able to get metric alerts and log search type alerts listed with these commands :
az monitor metrics alert list --resource-group 'myresourcegroup' --output table
az monitor scheduled-query list --resource-group 'myresourcegroup' --output table
In this resource group, I can also see Application Insights smart detector type alerts, but they do not show up in either query. I cannot see in the documentation how to list alert rules for this type. Any ideas?
Thanks!