Rediger

Del via


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

Configure alerts on available metrics for an Azure resource (Deprecated).

Configure alerts on available metrics for an Azure resource.

Syntax

# Azure Monitor alerts (Deprecated) v0
# Configure alerts on available metrics for an Azure resource (Deprecated).
- task: AzureMonitorAlerts@0
  inputs:
    azureSubscription: # string. Alias: ConnectedServiceName. Required. Azure Subscription. 
    ResourceGroupName: # string. Required. Resource Group. 
    ResourceType: 'Microsoft.Insights/components' # 'Microsoft.Insights/components' | 'Microsoft.Web/sites' | 'Microsoft.Storage/storageAccounts' | 'Microsoft.Compute/virtualMachines'. Required. Resource Type. Default: Microsoft.Insights/components.
    ResourceName: # string. Required. Resource name. 
    AlertRules: # string. Required. Alert rules. 
  # Notify via email
    #NotifyServiceOwners: # boolean. Subscription owners, contributors and readers. 
    #NotifyEmails: # string. Additional administrator emails.
# Azure Monitor alerts v0
# Configure alerts on available metrics for an Azure resource.
- task: AzureMonitorAlerts@0
  inputs:
    azureSubscription: # string. Alias: ConnectedServiceName. Required. Azure Subscription. 
    ResourceGroupName: # string. Required. Resource Group. 
    ResourceType: 'Microsoft.Insights/components' # 'Microsoft.Insights/components' | 'Microsoft.Web/sites' | 'Microsoft.Storage/storageAccounts' | 'Microsoft.Compute/virtualMachines'. Required. Resource Type. Default: Microsoft.Insights/components.
    ResourceName: # string. Required. Resource name. 
    AlertRules: # string. Required. Alert rules. 
  # Notify via email
    #NotifyServiceOwners: # boolean. Subscription owners, contributors and readers. 
    #NotifyEmails: # string. Additional administrator emails.
# Azure Monitor Alerts v0
# Configure alerts on available metrics for an Azure resource.
- task: AzureMonitorAlerts@0
  inputs:
    azureSubscription: # string. Alias: ConnectedServiceName. Required. Azure Subscription. 
    ResourceGroupName: # string. Required. Resource Group. 
    ResourceType: 'Microsoft.Insights/components' # 'Microsoft.Insights/components' | 'Microsoft.Web/sites' | 'Microsoft.Storage/storageAccounts' | 'Microsoft.Compute/virtualMachines'. Required. Resource Type. Default: Microsoft.Insights/components.
    ResourceName: # string. Required. Resource name. 
    AlertRules: # string. Required. Alert rules. 
  # Notify via email
    #NotifyServiceOwners: # boolean. Subscription owners, contributors and readers. 
    #NotifyEmails: # string. Additional administrator emails.

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