Create alerts (preview)

Applies to: ✔️ Windows VMs ✔️ Linux VMs ✔️ On-premises environment ✔️ Azure Arc-enabled servers.

This article provides steps to enable Alerts (preview) with Azure Update Manager to address events as captured in updates data.

Azure Update Manager is a unified service that allows you to manage and govern updates for all your Windows and Linux virtual machines across your deployments in Azure, on-premises, and on the other cloud platforms from a single dashboard. It's designed as a standalone Azure service to provide SaaS experience to manage hybrid environments in Azure.

Logs created from patching operations such as update assessments and installations are stored by Azure Update Manager in Azure Resource Graph (ARG). You can view up to last seven days of assessment data, and up to last 30 days of update installation results.

Note

This feature isn't available in Azure US Government and Azure China operated by 21 Vianet.

Prerequisite

Alert rule based on ARG query requires a managed identity with reader role assigned for the targeted resources.

Enable alerts (Preview) with Azure Update Manager

To enable alerts (Preview) with Azure Update Manager through Azure portal, follow these steps:

  1. Sign in to the Azure portal and go to Azure Update Manager.

  2. Under Monitoring, select New alerts rule (Preview) to create a new alert rule.

    Screenshot that shows how to access alerts feature.

  3. On Azure Update Manager | New alerts rule (Preview) page, provide the following details:

    1. Select a Subscription from the dropdown that will be the scope of the alert rule.

    2. From the Azure Resource Group query dropdown, select a predefined alerting query option.

    3. You can select Custom query option to edit or write a custom query.

      Screenshot that shows how to create alert rule.

    4. Select View result and edit query in Logs to run a selected alerting query option or to edit a query.

      Screenshot that shows how to edit query in logs.

    5. Select Run to run the query to enable Continue Editing Alert.

    Screenshot that shows how to run the query.

  4. If you don't want to run a selected query or edit a query, select Continue to create a new alert rule to move to the alert rule create flow where you can set up the advanced alert rule configuration.

    Screenshot that shows how to configure advanced alert rule.

  5. Select Review + create to create alert. For more information, see Create Azure Monitor alert rules.

    • To identify alerts & alert rules created for Azure Update Manager, provide unique Alert rule name in the Details tab. Screenshot that shows how to create unique alert name.

View alerts

To view the alerts, follow these steps:

  1. Sign in to the Azure portal and go to Azure Update Manager.

  2. Under Monitoring, select New alerts rule (Preview).

  3. Select Go to alerts.

    Screenshot that shows how to view alerts.

  4. In the Monitor | Alerts page, you can view all the alerts.

    Screenshot that displays the list of alerts.

Note

  • Azure Resource Graph query used for alerts can return at maximum of 1000 rows.
  • By default, Azure Resource Graph query will return response as per the access provided via the users managed identity and user need to filter out by subscriptions, resource groups and other criteria as per the requirement.

Next steps