---
title: "GET /subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworks"
method: GET
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworks"
tags: ["VirtualNetworks"]
---

# GET /subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworks

`GET /subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworks`

Gets all virtual networks in a subscription.

## Parameters

- `./network.json#/components/parameters/ApiVersionParameter` — unresolved $ref
- `./network.json#/components/parameters/SubscriptionIdParameter` — unresolved $ref

## Response `200`

Request successful. The operation returns a list of VirtualNetwork resources.

- VirtualNetworkListResult — Response for the ListVirtualNetworks API service call.
  - `value` VirtualNetwork[] — A list of VirtualNetwork resources in a resource group. — unresolved $ref
  - `nextLink` string — The URL to get the next set of results.

---

[API](https://skmtc.dev/azure/apis/networkmanagementclient-37.md) · [All operations](https://skmtc.dev/azure/apis/networkmanagementclient-37/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/networkmanagementclient-37/revisions/d6fa6a3b1a17/schema)
