An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
Hello Amol, it turns out nothing magical changed on the Azure side on 01-June-2026 – this is expected behavior when you use a Log Alert with a 5-minute lookback and static threshold of >=1 without any de-duplication logic. Here’s what’s happening and how you can fix it:
- What’s happening under the covers
- Your query (AzureDiagnostics | where …) runs every 5 minutes and looks back over the previous 5 minutes.
- A single record that lands exactly at the start of the window (for example at 8:34 PM) will show up in multiple overlapping windows (8:29–8:34, 8:34–8:39, 8:39–8:44, etc.) until it “ages out.”
- Because your alert is stateless (it simply fires whenever count ≥ 1) you get an email each evaluation period that still returns that same record.
- How to stop the repeated firings Option A – Add a strict time filter so you only pick up new runs: - Modify your query to explicitly filter for events in the current interval, for example:
AzureDiagnostics | where ResourceProvider=="MICROSOFT.AUTOMATION" and Category=="JobLogs" and ResultType=="Completed" and RunbookName_s=="Restart-MyApp-Runbook" and TimeGenerated >= ago(5m) // <- only this interval
- Leave your frequency at 5 minutes and lookback at 5 minutes. Now once the job falls outside that window, it won’t trigger again. Option B – Group by JobId and only alert on the first occurrence: - Summarize by JobId_g then count, and trigger when count == 1. - That way you only fire once per JobId, regardless of how many windows it spans. Option C – Switch to a stateful Metric Alert on the “Total Jobs” metric: - Azure Automation emits a TotalJobs metric you can filter by RunbookName and Status=Completed. - Metric Alerts are stateful, so once they fire they won’t fire again until the condition clears and re-triggers. Option D – Use the alert’s advanced settings to reduce noise: - Enable “Automatically resolve alerts” so only one alert is active at a time. - Increase “Number of violations” or “Evaluation period” so you only fire after 2+ consecutive windows. - No known platform outage or backend change
- We checked service health – no Log Analytics or Monitor outages on or after 01-June-2026.
- This is simply how stateless log alerts work when your matching record overlaps multiple evaluation windows.
Give one of those options a try (adding the TimeGenerated filter is the quickest). That should restore you to a single email per run.
— Reference docs —