Sdílet prostřednictvím


AzureMonitorAlerts@0 - Azure Monitor alerts (Deprecated) v0 task

Configure alerts on available metrics for an Azure resource.

Inputs

azureSubscription - Azure Subscription
Input alias: ConnectedServiceName. string. Required.

Selects 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 the Add or Manage button.


ResourceGroupName - Resource Group
string. Required.

Selects the Azure Resource Group that contains the Azure resource where you want to configure an alert.


ResourceType - Resource Type
string. Required. Allowed values: Microsoft.Insights/components (Application Insights), Microsoft.Web/sites (App Services), Microsoft.Storage/storageAccounts (Storage Account), Microsoft.Compute/virtualMachines (Virtual Machines). Default value: Microsoft.Insights/components.

Selects the Azure resource type.


ResourceName - Resource name
string. Required.

Selects the name of the Azure resource where you want to configure an alert.


AlertRules - Alert rules
string. Required.

The list of Azure monitor alerts that are configured on the selected Azure resource.

To add or modify alerts, click the button.


NotifyServiceOwners - Subscription owners, contributors and readers
boolean.

Optional. Sends an email notification to everyone who has access to the specified resource group.


NotifyEmails - Additional administrator emails
string.

Optional. Add email addresses separated by semicolons (;) if you want to include additional email notification recipients. This feature can be incorporated whether or not the "subscription owners..." box is checked.


Task control options

All tasks have control options in addition to their task inputs. For more information, see Control options and common task properties.

Output variables

None.

Remarks

Use this task to configure alerts on available metrics for an Azure resource.

Requirements

Requirement Description
Pipeline types YAML, Classic build, Classic release
Runs on Agent, DeploymentGroup
Demands None
Capabilities This task does not satisfy any demands for subsequent tasks in the job.
Command restrictions Any
Settable variables Any
Agent version 2.111.0 or greater
Task category Deploy