An Azure service to centrally manages updates and compliance at scale.
To set up an Azure Update Manager alert rule that sends an email when a specific Maintenance Configuration starts and ends, you will need to create a custom Kusto query that targets the relevant maintenance configuration events. While the specific query for your use case isn't provided in the context, you can use the following approach to create your alert rule:
- Identify the Maintenance Configuration: You need to know the specific maintenance configuration you want to monitor. This includes the resource ID or name of the configuration.
- Create a Kusto Query: You can start with a query that filters maintenance events. For example, you could use a query similar to this:
Replacemaintenanceresources | where type =~ "microsoft.maintenance/maintenanceconfigurations/applyupdates" | where properties.correlationId has "<your-maintenance-configuration-id>" | project startTime = properties.startTime, endTime = properties.endTime, status = properties.status<your-maintenance-configuration-id>with the actual ID of your maintenance configuration. - Set Up the Alert Rule: Once you have your query, you can proceed to create the alert rule in the Azure portal under Azure Update Manager. Follow the steps to create a new alert rule and use your Kusto query as the basis for the alert condition.
- Configure Notifications: In the alert rule settings, ensure to configure the notification settings to send an email when the alert is triggered.
This should help you set up the alert for the specific maintenance configuration you are interested in.