Deploy Action Rules with ARM Templates

less than 1 minute read

We recently started using Azure Monitor as our solution for monitoring Azure resources. While Action Rules are still in preview we want to make sure that we do not receive alerts when maintenance is scheduled. For instance we do patching during the evening and don’t want to receive alerts for VM’s in our ITSM tooling and/or mailboxes.

Because we deploy our alerts via pre-defined ARM templates I wanted to deploy Action rules in the same manner and created a somewhat complete ARM template to deploy Action Rules to set up suppression (or additional actions) for alerts based on conditions that you can set in the parameters. If you want to know which conditions can be used please check out the Microsoft docs.

The template and additional information can be found in my GitHub repository along with some parameter examples that I find useful, but feel free to adjust them to your needs!

If you have questions, ideas or run into a problem please reach out. Happy to help.

Happy holidays, see you next year!

Comments