title | description | ms.date | monikerRange |
---|---|---|---|
AzureMonitor@0 - Query Classic Azure Monitor alerts v0 task |
Observe the configured classic Azure Monitor rules for active alerts. |
05/14/2024 |
<=azure-pipelines |
:::moniker range="=azure-pipelines"
Observe the configured classic Azure Monitor rules for active alerts.
Important
[!INCLUDE task-deprecation] Use AzureMonitor@1.
:::moniker-end
:::moniker range=">=azure-pipelines-2022 <=azure-pipelines-2022.2"
Observe the configured classic Azure Monitor rules for active alerts.
This task is deprecated; use AzureMonitor@1.
:::moniker-end
:::moniker range=">=azure-pipelines-2019.1 <=azure-pipelines-2020.1"
Observe the configured classic Azure Monitor rules for active alerts.
:::moniker-end
:::moniker range="=azure-pipelines-2019"
Observe the configured Azure monitor rules for active alerts.
:::moniker-end
:::moniker range=">=azure-pipelines-2019.1"
# 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.
:::moniker-end
:::moniker range="=azure-pipelines-2019"
# 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.
:::moniker-end
:::moniker range="<=azure-pipelines"
connectedServiceNameARM
- Azure subscription
string
. Required.
Selects an Azure Resource Manager subscription to monitor.
:::moniker-end
:::moniker range="<=azure-pipelines"
ResourceGroupName
- Resource group
string
. Required.
Provides the name of a resource group to monitor.
:::moniker-end
:::moniker range="<=azure-pipelines"
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.
:::moniker-end
:::moniker range="<=azure-pipelines"
resourceName
- Resource name
string
. Required.
Selects the name of the Azure resource to monitor.
:::moniker-end
:::moniker range="<=azure-pipelines"
alertRules
- Alert rules
string
. Required.
A list of Azure alert rules to monitor.
:::moniker-end
All tasks have control options in addition to their task inputs. For more information, see Control options and common task properties.
:::moniker range="<=azure-pipelines"
None.
:::moniker-end
:::moniker range="<=azure-pipelines"
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 |
:::moniker-end