Azure Monitor Alerts task

Azure Pipelines

Use this task in a build or release pipeline to configure alerts on available metrics for an Azure resource.

YAML snippet

# Azure Monitor alerts
# Configure alerts on available metrics for an Azure resource
- task: AzureMonitorAlerts@0
    #resourceType: 'Microsoft.Insights/components' # Options: microsoft.Insights/Components, microsoft.Web/Sites, microsoft.Storage/StorageAccounts, microsoft.Compute/VirtualMachines
    #notifyServiceOwners: # Optional
    #notifyEmails: # Optional


Azure Subscription(Required) Select the Azure Resource Manager subscription.

Note: To configure new service connection, select the Azure subscription from the list and click 'Authorize'.

If your subscription is not listed or if you want to use an existing Service Principal, you can setup an Azure service connection using 'Add' or 'Manage' button.

Resource Group(Required) Select the Azure Resource Group that contains the Azure resource where you want to configure an alert.
Resource Type(Required) Select the Azure resource type.
Resource name(Required) Select name of Azure resource where you want to configure an alert.
Alert rules(Required) List of Azure monitor alerts configured on selected Azure resource.

To add or modify alerts, click on […] button.

Subscription owners, contributors and readers(Optional) Send email notification to everyone who has access to this resource group.
Additional administrator emails(Optional) Add additional email addresses separated by semicolons(;) if you want to send email notification to additional people (whether or not you checked the "subscription owners..." box).
Control options

Open source

This task is open source on GitHub. Feedback and contributions are welcome.