Supported resources for metric alerts in Azure Monitor

Azure Monitor now supports a new metric alert type which has significant benefits over the older classic metric alerts. Metrics are available for large list of Azure services. The newer alerts support a (growing) subset of the resource types. This article lists that subset.

You can also use newer metric alerts on popular log data stored in a Log Analytics workspace extracted as metrics. For more information, view Metric Alerts for Logs.

Portal, PowerShell, CLI, REST support

Currently, you can create newer metric alerts only in the Azure portal, REST API, or Resource Manager Templates. Support for configuring newer alerts using PowerShell and Azure CLI versions 2.0 and higher is coming soon.

Metrics and Dimensions Supported

Newer metric alerts support alerting for metrics that use dimensions. You can use dimensions to filter your metric to the right level. All supported metrics along with applicable dimensions can be explored and visualized from Azure Monitor - Metrics Explorer.

Here's the full list of Azure monitor metric sources supported by the newer alerts:

Resource type Dimensions Supported Multi-resource alerts Metrics Available
Microsoft.ApiManagement/service Yes No API Management
Microsoft.AppPlatform/Spring No Yes
Microsoft.Automation/automationAccounts Yes No Automation Accounts
Microsoft.Batch/batchAccounts N/A No Batch Accounts
Microsoft.Cache/Redis Yes No Azure Cache for Redis
Microsoft.ClassicStorage/storageAccounts/mmxclassic No Yes
Microsoft.ClassicStorage/storageAccounts/mmxclassic/blobServices No Yes
Microsoft.ClassicStorage/storageAccounts/mmxclassic/fileServices No Yes
Microsoft.ClassicStorage/storageAccounts/mmxclassic/queueServices No Yes
Microsoft.ClassicStorage/storageAccounts/mmxclassic/tableServices No Yes
Microsoft.CognitiveServices/accounts N/A No Cognitive Services
Microsoft.Compute/virtualMachines Yes Yes Virtual Machines
Microsoft.Compute/virtualMachineScaleSets N/A Yes Virtual machine scale sets
Microsoft.ContainerInstance/containerGroups Yes No Container groups
Microsoft.ContainerService/managedClusters Yes No Managed Clusters
Microsoft.DataBoxEdge/dataBoxEdgeDevices Yes Yes
Microsoft.DataFactory/datafactories Yes No Data Factories V1
Microsoft.DataFactory/factories Yes No Data Factories V2
Microsoft.DataShare/accounts No Yes
Microsoft.DBforMySQL/servers N/A No DB for MySQL
Microsoft.DBforPostgreSQL/servers N/A No DB for PostgreSQL
Microsoft.Devices/IotHubs N/A No IoT Hub Metrics
Microsoft.Devices/provisioningServices Yes No DPS Metrics
Microsoft.EventGrid/domains No Yes
Microsoft.EventGrid/topics Yes No Event Grid Topics
Microsoft.EventHub/clusters Yes No Event Hubs Clusters
Microsoft.EventHub/namespaces Yes No Event Hubs
Microsoft.KeyVault/vaults No No Vaults
Microsoft.Logic/workflows N/A No Logic Apps
Microsoft.MachineLearningServices/workspaces Yes No Machine Learning
Microsoft.Network/applicationGateways N/A No
Microsoft.Network/dnsZones N/A No DNS Zones
Microsoft.Network/expressRouteCircuits N/A No Express Route Circuits
Microsoft.Network/loadBalancers (only for Standard SKUs) Yes No Load Balancers
Microsoft.Network/natGateways No Yes
Microsoft.Network/privateEndpoints No Yes
Microsoft.Network/privateLinkServices No Yes
Microsoft.Network/publicipaddresses N/A No Public IP Addresses
Microsoft.Network/trafficManagerProfiles Yes No Traffic Manager Profiles
Microsoft.OperationalInsights/workspaces Yes No Log Analytics workspaces
Microsoft.Relay/namespaces Yes No Relays
Microsoft.Peering/peeringServices No Yes
Microsoft.PowerBIDedicated/capacities N/A No Capacities
Microsoft.Search/searchServices N/A No Search services
Microsoft.ServiceBus/namespaces Yes No Service Bus
Microsoft.Sql/servers/elasticPools No Yes
Microsoft.Sql/servers/databases No Yes
Microsoft.Storage/storageAccounts Yes No Storage Accounts
Microsoft.Storage/storageAccounts/services Yes No Blob Services, File Services, Queue Services and Table Services
Microsoft.StreamAnalytics/streamingjobs N/A No Stream Analytics
Microsoft.Microsoft.VMWareCloudSimple/virtualMachines Yes No CloudSimple Virtual Machines
Microsoft.Web/serverfarms Yes No App Service Plans
Microsoft.Web/sites Yes No App Services and Functions
Microsoft.Web/sites/slots Yes No App Service slots

Payload schema

Note

You can also use the common alert schema, which provides the advantage of having a single extensible and unified alert payload across all the alert services in Azure Monitor, for your webhook integrations. Learn about the common alert schema definitions.‚Äč

The POST operation contains the following JSON payload and schema for all near newer metric alerts when an appropriately configured action group is used:

{
  "schemaId": "AzureMonitorMetricAlert",
  "data": {
    "version": "2.0",
    "status": "Activated",
    "context": {
      "timestamp": "2018-02-28T10:44:10.1714014Z",
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Contoso/providers/microsoft.insights/metricAlerts/StorageCheck",
      "name": "StorageCheck",
      "description": "",
      "conditionType": "SingleResourceMultipleMetricCriteria",
      "severity":"3",
      "condition": {
        "windowSize": "PT5M",
        "allOf": [
          {
            "metricName": "Transactions",
            "metricNamespace":"microsoft.storage/storageAccounts",
            "dimensions": [
              {
                "name": "AccountResourceId",
                "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Contoso/providers/Microsoft.Storage/storageAccounts/diag500"
              },
              {
                "name": "GeoType",
                "value": "Primary"
              }
            ],
            "operator": "GreaterThan",
            "threshold": "0",
            "timeAggregation": "PT5M",
            "metricValue": 1
          }
        ]
      },
      "subscriptionId": "00000000-0000-0000-0000-000000000000",
      "resourceGroupName": "Contoso",
      "resourceName": "diag500",
      "resourceType": "Microsoft.Storage/storageAccounts",
      "resourceId": "/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/Contoso/providers/Microsoft.Storage/storageAccounts/diag500",
      "portalLink": "https://portal.azure.com/#resource//subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Contoso/providers/Microsoft.Storage/storageAccounts/diag500"
    },
    "properties": {
      "key1": "value1",
      "key2": "value2"
    }
  }
}

Next steps