---
title: "GET /subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/prometheusRuleGroups"
method: GET
path: "/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/prometheusRuleGroups"
tags: ["PrometheusRuleGroupResources"]
---

# GET /subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/prometheusRuleGroups

`GET /subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/prometheusRuleGroups`

Retrieve Prometheus all rule group definitions in a subscription.

## Parameters

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

## Response `200`

Azure operation completed successfully.

- PrometheusRuleGroupResourceCollection — Represents a collection of alert rule resources.
  - `value` PrometheusRuleGroupResource[] — the values for the alert rule resources. — unresolved $ref
  - `nextLink` string

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/alertsmanagement-microsoft-alertsmanagement-prometheusrulegr.md) · [All operations](https://skmtc.net/azure/apis/alertsmanagement-microsoft-alertsmanagement-prometheusrulegr/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/alertsmanagement-microsoft-alertsmanagement-prometheusrulegr/revisions/94ce1c038591/schema)
