Forum Discussion
Alert on Pending Updates
Hi,
We've set up several onpremise servers with the Azure Arc agent, to allow us to manage updates via Azure Update Manager.
I'd like to get a mail notification with pending updates before the maintenance is scheduled. Azure Update Manager provides a New alert rule (preview) feature that allows me to setup a new alert for pending updates easily.
The issue is that it runs every 5 minutes, fires the alert, and sends the email every 5 minutes. Ideally this is sent before the maintenance schedule runs (every 2 weeks), so I know which updates will be applied before they get applied. Changing the frequency of evaluation can be changed to 1 day max, but that will trigger the message to be sent every day.
I figured that I could edit the alert rule and change the Query type to Single event (preview), but not sure if that's the solution. When I try this, I cannot edit or save a query.
No way to add something to the query and there's no save button:
Any idea how I could trigger a Pending Update alert rule to run on a scheduled basis, eg every 2 weeks ?
Thanks
Best regards,
Joeri Michiels
1 Reply
- The alert rule is based on Azure Monitor log alerts, which evaluate queries at fixed intervals (minimum 5 minutes, maximum 1 day).
- The Single event (preview) option is meant for one-time triggers, but it’s not fully editable yet, which is why you’re seeing the missing query editor and save button.
You may try the workaround below:
1. Keep the alert rule daily
2. Use an Action Group with an Azure Automation Runbook or Logic App that:-
- Filters alerts based on timestamp or custom logic
- Sends email only if it’s within your desired 2-week window
This way, the alert fires daily, but the notification logic is controlled downstream.