Forum Discussion
How to export Azure Alert Rules (Log Analytics)
Hi
Currently different alerts have different APIs so there isn't single cmdlet to get all alerts. If you are lookin for Log Analytics alerts their API is shown here:
https://docs.microsoft.com/en-us/azure/log-analytics/log-analytics-api-alerts
Currently there is no cmdlet for those alerts so you have to use tools like armclient or create your own API calls to get them. You can also try to use one of these scripts:
I haven't tested them so I do not know if they still works.
Hi Stanislav,
Appreciate for your response !!!
FYI: I already read this article and analyzed the attached scripts.
Script is giving some error (that could be taken care) but the script is fetching "Saved Searches" while i am interested to collect "configuration details of Alert Rules" from Log Analytic section.
Let me know if you have any other pointer for the same.
Regards, Ravi