How can I suppress duplicate notifications from Azure Monitor alerts after receiving the first relevant alert?

Saurabh_Pilankar 0 Reputation points
2025-04-21T14:14:26.6866667+00:00

I have configured pod restart alerts using a Log Analytics workspace, so that I receive an alert whenever a pod restarts. The alert evaluation frequency is set to every 5 minutes.

However, while I'm troubleshooting the issue, the alert keeps triggering every 5 minutes for the same pod, resulting in multiple duplicate notifications.

I would like to suppress these duplicate alerts — so that after the first alert is triggered, no additional notifications are sent for the same issue. Once the issue is resolved, if the pod restarts again in the future, I want to receive a new alert (but again, only once).

How can I configure this behavior in Azure Monitor?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,602 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jose Benjamin Solis Nolasco 1,591 Reputation points
    2025-04-21T14:43:01.0533333+00:00

    Hello,

    You can follow this guide https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-processing-rules?tabs=portal in order to avoid duplicate alerts, there's not a single switch to do it you have multiple options like;

    1. Aggregation adjustments (using a larger time window),
    2. Auto-mitigation configuration, and/or
    3. Custom query logic (to filter duplicate events),

    Aggregation Window: Instead of simply running your query every five minutes over a short window, you can set an aggregation window that spans a longer period. For example, if you set your evaluation frequency to five minutes but use an aggregation window of 10 or 15 minutes, the query will only produce one result for multiple events within that period. This reduces the chance of getting repeatedly triggered alerts for the same event.

    Auto-Mitigation: Some scheduled query alert types support an auto-mitigate (or “deduplication”) behavior. With auto-mitigation enabled, once an alert is triggered, Azure Monitor will not generate additional alert notifications until the alert condition resolves—that is, until the query returns no results in a subsequent evaluation. (Keep in mind that available options can vary between legacy and newer alert types.)

    Ensure that your alert rule is configured so that when the condition stops being met (for example, when the pod stops restarting), the alert resolves before a new instance may be triggered.

    😊 If my answer helped you resolve your issue, please consider marking it as the correct answer. This helps others in the community find solutions more easily. Thanks!

    0 comments No comments

Your answer

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