Follow these steps to get a CSV of all alert rules for virtual machines in the Azure portal.
- In the portal, select Monitor, then Alerts.
- From the top command bar, select Alert rules. The page shows all your alert rules on all subscriptions.
- Select Target resource type and change to Virtual machines.
- After you have the filters you want in place you can Export to CSV from the top
Hope this helps! Let me know if you have further questions or issues.
If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.
If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.
Thank you for helping to improve Microsoft Q&A!