Share via

Azure monitor and Azure Policy

2020-08-23T08:36:17.277+00:00

Hi.

just need to know i have tested to create alerts using Azure monitor. However, can we also use an Azure polity automatically to Re-create the Azure monitor alerts?

What is the method to automate them?

Azure Monitor
Azure Monitor

An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.

Azure Policy
Azure Policy

An Azure service that is used to implement corporate governance and standards at scale for Azure resources.


7 answers

Sort by: Most helpful
  1. Roderick Bant 2,056 Reputation points
    2020-11-13T13:05:03.697+00:00

    Hi @KamalBernard-9210

    Past weekend I started writing a series of guides on my new blog on the subject of creating ARM templates for Azure Policy that enforce the existence of Azure Monitor metrics Alert rules on a resource. At the moment I have part 1 and part 2 available online. I hope to finish writing the remaining part this weekend.

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments

  2. عايد مخلد المطيري 16 Reputation points
    2022-08-01T15:35:15.177+00:00

    Azure Policy

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  3. Udaiappa Ramachandran 726 Reputation points MVP
    2022-05-21T22:35:36.73+00:00

    you will use azure policies to create a non-compliances alert to enforce how resources should or should not be used, if you are looking for monitoring alerts such as how your resource is performing then use ARM templates. please note that policy non-compliances can be created using ARM templates.

    Was this answer helpful?

    0 comments No comments

  4. Mario Worwell 11 Reputation points
    2021-04-02T16:22:02.713+00:00

    An ARM Template would be the way to go. Create an alert manually in the Portal, then export that into an ARM Template for later use.

    Was this answer helpful?


  5. bharathn-msft 5,146 Reputation points Microsoft Employee Moderator
    2020-08-28T19:45:21.85+00:00

    @KamalBernard-9210 Please refer to current built-in policies for Azure Monitoring , see if this caters your scenario.

    Please feel free to revert back if you have any further questions with additional information on your scenario . Thank you.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.