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

# GET /api/v2/providers/azure/vnets

`GET /api/v2/providers/azure/vnets`

## 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/vnets/get.ts> (a function with typed inputs; its response is checked against the schema)

Lists available VM virtual networks

## Headers

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

## Response `200`

AzureVirtualNetworksList

- AzureVirtualNetworksList: AzureVirtualNetworksList is the object representing the virtual network for vms in azure cloud provider
  - `virtualNetworks` 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)
