Search code examples
azureazure-application-insightsazure-alerts

Scheduling Azure Alerts by Action Group


I am trying to schedule my azure alerts , which runs for every five minutes by query and if condition met, it triggers an email via action group. what my requirement is to stop email alerts on weekends, I have tried azure action processing rules but it is not working at all. where am I wrong couldn't figure it out, can anyone suggest that which approach would be better and how to do that and does action processing rules works?


Solution

  • To suppress notifications for your alerts would be to use the Alert Processing Rules feature, which is currently in preview.

    The Alert processing rules that modify the fired alerts themselves as they are being fired. You can use alert processing rules to add action groups or remove (suppress) action groups from your fired alerts. In your requirement you could use Suppress.

    Suppress approach has some limitations:

    • You could disable the relevant alert rule at the beginning of the maintenance window. Once the maintenance is over, you can then re-enable the alert rule. However, this approach is only practical if the scope of the alert rule is exactly the scope of the resources under maintenance. For example, a single alert rule might cover multiple resources, but only one of those resources is going through maintenance. So, if you disable the alert rule, you will miss valid alerts on the remaining resources covered by that rule.

    • You may have many alert rules that cover the resource. Updating all
      of them is time consuming and error prone.

    • You might have some alerts that are not created by an alert rule at
      all. In all these cases, an alert processing rule provides an easy
      way to achieve the notification suppression goal.

    You can add your Suppression alert rule to disable the notification. I have disabled the Email Notification on weekends which follows

    enter image description here

    Refer Document for more information