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.Aadiam/azureADMetrics Yes No
Microsoft.ApiManagement/service Yes No API Management
Microsoft.AppConfiguration/configurationStores Yes No App Configuration
Microsoft.AppPlatform/Spring Yes No Azure Spring Cloud
Microsoft.Automation/automationAccounts Yes No Automation Accounts
Microsoft.AVS/privateClouds No No Azure VMware Solution
Microsoft.Batch/batchAccounts Yes No Batch Accounts
Microsoft.Cache/Redis Yes Yes Azure Cache for Redis
Microsoft.ClassicCompute/domainNames/slots/roles No No Classic Cloud Services
Microsoft.ClassicCompute/virtualMachines No No Classic Virtual Machines
Microsoft.ClassicStorage/storageAccounts Yes No Storage Accounts (classic)
Microsoft.ClassicStorage/storageAccounts/blobServices Yes No Storage Accounts (classic) - Blobs
Microsoft.ClassicStorage/storageAccounts/fileServices Yes No Storage Accounts (classic) - Files
Microsoft.ClassicStorage/storageAccounts/queueServices Yes No Storage Accounts (classic) - Queues
Microsoft.ClassicStorage/storageAccounts/tableServices Yes No Storage Accounts (classic) - Tables
Microsoft.CognitiveServices/accounts Yes No Cognitive Services
Microsoft.Compute/virtualMachines Yes Yes1 Virtual Machines
Microsoft.Compute/virtualMachineScaleSets Yes No Virtual machine scale sets
Microsoft.ContainerInstance/containerGroups Yes No Container groups
Microsoft.ContainerRegistry/registries No No Container Registries
Microsoft.ContainerService/managedClusters Yes No Managed Clusters
Microsoft.DataBoxEdge/dataBoxEdgeDevices Yes Yes Data Box
Microsoft.DataFactory/datafactories Yes No Data Factories V1
Microsoft.DataFactory/factories Yes No Data Factories V2
Microsoft.DataShare/accounts Yes No Data Shares
Microsoft.DBforMariaDB/servers No No DB for MariaDB
Microsoft.DBforMySQL/servers No No DB for MySQL
Microsoft.DBforPostgreSQL/servers No No DB for PostgreSQL
Microsoft.DBforPostgreSQL/serversv2 No No DB for PostgreSQL V2
Microsoft.DBforPostgreSQL/flexibleServers Yes No DB for PostgreSQL (flexible servers)
Microsoft.Devices/IotHubs Yes No IoT Hub
Microsoft.Devices/provisioningServices Yes No Device Provisioning Services
Microsoft.DigitalTwins/digitalTwinsInstances Yes No Digital Twins
Microsoft.DocumentDB/databaseAccounts Yes No Cosmos DB
Microsoft.EventGrid/domains Yes No Event Grid Domains
Microsoft.EventGrid/systemTopics Yes No Event Grid System Topics
Microsoft.EventGrid/topics Yes No Event Grid Topics
Microsoft.EventHub/clusters Yes No Event Hubs Clusters
Microsoft.EventHub/namespaces Yes No Event Hubs
Microsoft.HDInsight/clusters Yes No HDInsight Clusters
Microsoft.Insights/Components Yes No Application Insights
Microsoft.KeyVault/vaults Yes Yes Vaults
Microsoft.Kusto/Clusters Yes No Data Explorer Clusters
Microsoft.Logic/integrationServiceEnvironments Yes No Integration Service Environments
Microsoft.Logic/workflows No No Logic Apps
Microsoft.MachineLearningServices/workspaces Yes No Machine Learning
Microsoft.Maps/accounts Yes No Maps Accounts
Microsoft.Media/mediaservices No No Media Services
Microsoft.Media/mediaservices/streamingEndpoints Yes No Media Services Streaming Endpoints
Microsoft.NetApp/netAppAccounts/capacityPools Yes Yes Azure NetApp Capacity Pools
Microsoft.NetApp/netAppAccounts/capacityPools/volumes Yes Yes Azure NetApp Volumes
Microsoft.Network/applicationGateways Yes No Application Gateways
Microsoft.Network/azurefirewalls Yes No Firewalls
Microsoft.Network/dnsZones No No DNS Zones
Microsoft.Network/expressRouteCircuits Yes No ExpressRoute Circuits
Microsoft.Network/expressRoutePorts Yes No ExpressRoute Direct
Microsoft.Network/loadBalancers (only for Standard SKUs) Yes No Load Balancers
Microsoft.Network/natGateways No No NAT Gateways
Microsoft.Network/privateEndpoints No No Private Endpoints
Microsoft.Network/privateLinkServices No No Private Link Services
Microsoft.Network/publicipaddresses No No Public IP Addresses
Microsoft.Network/trafficManagerProfiles Yes No Traffic Manager Profiles
Microsoft.OperationalInsights/workspaces Yes No Log Analytics workspaces
Microsoft.Peering/peerings Yes No Peerings
Microsoft.Peering/peeringServices Yes No Peering Services
Microsoft.PowerBIDedicated/capacities No No Capacities
Microsoft.Relay/namespaces Yes No Relays
Microsoft.Search/searchServices No No Search services
Microsoft.ServiceBus/namespaces Yes No Service Bus
Microsoft.Sql/managedInstances No Yes SQL Managed Instances
Microsoft.Sql/servers/databases No Yes SQL Databases
Microsoft.Sql/servers/elasticPools No Yes SQL Elastic Pools
Microsoft.Storage/storageAccounts Yes No Storage Accounts
Microsoft.Storage/storageAccounts/blobServices Yes No Storage Accounts - Blobs
Microsoft.Storage/storageAccounts/fileServices Yes No Storage Accounts - Files
Microsoft.Storage/storageAccounts/queueServices Yes No Storage Accounts - Queues
Microsoft.Storage/storageAccounts/tableServices Yes No Storage Accounts - Tables
Microsoft.StorageCache/caches Yes No HPC Caches
Microsoft.StorageSync/storageSyncServices Yes No Storage Sync Services
Microsoft.StreamAnalytics/streamingjobs Yes No Stream Analytics
Microsoft.Synapse/workspaces Yes No Synapse Analytics
Microsoft.Synapse/workspaces/bigDataPools Yes No Synapse Analytics Apache Spark Pools
Microsoft.Synapse/workspaces/sqlPools Yes No Synapse Analytics SQL Pools
Microsoft.VMWareCloudSimple/virtualMachines Yes No CloudSimple Virtual Machines
Microsoft.Web/hostingEnvironments/multiRolePools Yes No App Service Environment Multi-Role Pools
Microsoft.Web/hostingEnvironments/workerPools Yes No App Service Environment Worker Pools
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

1 Not supported for virtual machine network metrics (Network In Total, Network Out Total, Inbound Flows, Outbound Flows, Inbound Flows Maximum Creation Rate, Outbound Flows Maximum Creation Rate) and custom metrics.

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