---
title: "GET /subscriptions/{subscriptionId}/providers/Microsoft.Insights/alertrules"
method: GET
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/alertrules"
tags: ["AlertRules"]
---

# GET /subscriptions/{subscriptionId}/providers/Microsoft.Insights/alertrules

`GET /subscriptions/{subscriptionId}/providers/Microsoft.Insights/alertrules`

List the classic metric alert rules within a subscription.

## Parameters

- `../../../../../common-types/resource-management/v2/types.json#/components/parameters/ApiVersionParameter` — unresolved $ref
- `../../../../../common-types/resource-management/v2/types.json#/components/parameters/SubscriptionIdParameter` — unresolved $ref

## Response `200`

Successful request for a list of alert rules

- AlertRuleResourceCollection — Represents a collection of alert rule resources.
  - `value` AlertRuleResource[] — the values for the alert rule resources.
    - `id` string — Azure resource Id
    - `name` string — Azure resource name
    - `type` string — Azure resource type
    - `location` string, required — Resource location
    - `tags` unknown

## Other responses

- `default` — Error response describing why the operation failed.

## Changes

- **2021-01-18** (2016-03-01) `b643e77b4704` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/azure/apis/monitormanagementclient-3/changes/subscriptions/:subscriptionId/providers/Microsoft.Insights/alertrules/get.md)

---

[API](https://skmtc.dev/azure/apis/monitormanagementclient-3.md) · [All operations](https://skmtc.dev/azure/apis/monitormanagementclient-3/llms.txt) · [OpenAPI document](https://skmtc.dev/azure/apis/monitormanagementclient-3/revisions/88a16b616a15?raw)
