Muokkaa

Jaa


AzureMonitor@0 - Query Classic Azure Monitor alerts v0 task

Observe the configured classic Azure Monitor rules for active alerts.

Important

This task is deprecated and will be retired January 31, 2024. Use AzureMonitor@1.

Observe the configured classic Azure Monitor rules for active alerts.

This task is deprecated; use AzureMonitor@1.

Observe the configured classic Azure Monitor rules for active alerts.

Observe the configured Azure monitor rules for active alerts.

Syntax

# Query Classic Azure Monitor alerts v0
# Observe the configured classic Azure Monitor rules for active alerts.
- task: AzureMonitor@0
  inputs:
    connectedServiceNameARM: # string. 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.
# Query Azure Monitor Alerts v0
# Observe the configured Azure monitor rules for active alerts.
- task: AzureMonitor@0
  inputs:
    connectedServiceNameARM: # string. 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.

Inputs

connectedServiceNameARM - Azure subscription
string. Required.

Selects an Azure Resource Manager subscription to monitor.


ResourceGroupName - Resource group
string. Required.

Provides the name of a resource group to monitor.


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 to monitor.


resourceName - Resource name
string. Required.

Selects the name of the Azure resource to monitor.


alertRules - Alert rules
string. Required.

A list of Azure alert rules to monitor.


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.

Requirements

Requirement Description
Pipeline types YAML, Classic build, Classic release
Runs on Server, ServerGate
Demands None
Capabilities This task does not satisfy any demands for subsequent tasks in the job.
Command restrictions Any
Settable variables Any
Agent version All supported agent versions.
Task category Utility