Edit

Share via


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 updated installation results.

Note

This feature isn't available in Azure US Government and Azure 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 create new alerts rule.

    1. From the dropdown list, select the Subscription that defines the scope of the alert rule.

    2. Select a Resource Group from the dropdown. Alert will be created in this resource group.

    3. Select a Location from the dropdown. Alert will be created at this ___location.

    4. In the Azure Resource Group query dropdown, select one of the predefined alerting query options.

    5. You can select Custom query option to edit or write a custom query and then select Skip to custom alert rules.

      Screenshot that shows how to create alert custom rules.

    6. Select Preview or 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.

    7. Select Run to run the query and to enable Continue Editing Alert.

      Screenshot that shows how to run the query.

    8. Select the Scope and filters you want to apply.

    9. Select Identify, Threshold, and Frequency of evaluation as per your requirement.

    10. Enter your preferences in the Notify me section.

    11. Select Quick create a new rule.

Edits alerts

To edit the alerts, follow these steps:

  1. To edit or write a custom query, select the Custom query option.

  2. Select Skip to custom alert rules to go directly to the alert rule creation flow, where you can configure advanced alert rule settings.

    Screenshot that shows how to configure advanced alert rule.

  3. 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 to a 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