---
title: "GET /api/v2/providers/azure/resourcegroups"
method: GET
path: "/api/v2/providers/azure/resourcegroups"
tags: ["azure"]
---

# GET /api/v2/providers/azure/resourcegroups

`GET /api/v2/providers/azure/resourcegroups`

## Request

- The document declares no server URL.
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api/docs/api/v2/providers/azure/resourcegroups/get.ts> (a function with typed inputs; its response is checked against the schema)

Lists available VM resource groups

## Headers

- `SubscriptionID` string
- `TenantID` string
- `ClientID` string
- `ClientSecret` string
- `Credential` string
- `Location` string

## Response `200`

AzureResourceGroupsList

- AzureResourceGroupsList: AzureResourceGroupsList is the object representing the resource groups for vms in azure cloud provider
  - `resourceGroups` string[]

## Other responses

- `default`: errorResponse

---

[API](https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api.md) - [All operations](https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api/revisions/815b9bf19db5?raw)
