Azure Virtual Networks API

Manage Azure Virtual Networks (VNets) including subnets, peering, and network configurations.

Documentation

Specifications

Other Resources

🔗
X-documentation
https://docs.microsoft.com/en-us/rest/api/virtualnetwork/
🔗
X-openapi
https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/network/resource-manager/Microsoft.Network/stable/2023-05-01/virtualNetwork.json
🔗
X-pricing
https://azure.microsoft.com/en-us/pricing/details/virtual-network/
🔗
X-authentication
https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow
🔗
NaftikoCapability
https://raw.githubusercontent.com/api-evangelist/microsoft-azure-networking/refs/heads/main/capabilities/azure-networking-load-balancer-backend-address-pools.yaml
🔗
NaftikoCapability
https://raw.githubusercontent.com/api-evangelist/microsoft-azure-networking/refs/heads/main/capabilities/azure-networking-load-balancer-load-balancer-probes.yaml
🔗
NaftikoCapability
https://raw.githubusercontent.com/api-evangelist/microsoft-azure-networking/refs/heads/main/capabilities/azure-networking-load-balancer-load-balancers.yaml
🔗
NaftikoCapability
https://raw.githubusercontent.com/api-evangelist/microsoft-azure-networking/refs/heads/main/capabilities/azure-networking-load-balancer-load-balancing-rules.yaml
🔗
NaftikoCapability
https://raw.githubusercontent.com/api-evangelist/microsoft-azure-networking/refs/heads/main/capabilities/azure-networking-virtual-networks-subnets.yaml
🔗
NaftikoCapability
https://raw.githubusercontent.com/api-evangelist/microsoft-azure-networking/refs/heads/main/capabilities/azure-networking-virtual-networks-virtual-network-peerings.yaml
🔗
NaftikoCapability
https://raw.githubusercontent.com/api-evangelist/microsoft-azure-networking/refs/heads/main/capabilities/azure-networking-virtual-networks-virtual-networks.yaml
🔗
NaftikoCapability
https://raw.githubusercontent.com/api-evangelist/microsoft-azure-networking/refs/heads/main/capabilities/microsoft-azure-networking-operations.yaml
🔗
NaftikoCapability
https://raw.githubusercontent.com/api-evangelist/microsoft-azure-networking/refs/heads/main/capabilities/microsoft-azure-networking-virtual-networks.yaml

OpenAPI Specification

microsoft-azure-networking-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Azure Virtual Network REST API
  description: Azure Virtual Network enables Azure resources to communicate securely. The REST API manages
    virtual networks, subnets, network interfaces, security groups, route tables, and peerings.
  version: '2024-01-01'
externalDocs:
  description: Azure Virtual Network REST API Documentation
  url: https://docs.microsoft.com/en-us/rest/api/virtualnetwork/
servers:
- url: https://management.azure.com
  description: Azure Resource Manager
tags:
- name: Virtual Networks
  description: Virtual Networks operations
- name: Subnets
  description: Subnets operations
- name: Network Interfaces
  description: Network Interfaces operations
- name: Security Groups
  description: Security Groups operations
- name: Peerings
  description: Peerings operations
- name: Operations
  description: Operations operations
security:
- azure_auth:
  - user_impersonation
paths:
  /providers/Microsoft.Network/operations:
    get:
      operationId: listOperations
      summary: Azure Virtual Network REST API List operations
      description: Lists all available REST API operations for Microsoft.Network.
      tags:
      - Operations
      parameters:
      - $ref: '#/components/parameters/apiVersion'
      responses:
        '200':
          description: Operations list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationList'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworks:
    get:
      operationId: listVirtualnetworksBySubscription
      summary: Azure Virtual Network REST API List by subscription
      description: Lists all virtualNetworks resources within the specified subscription.
      tags:
      - Virtual Networks
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/apiVersion'
      responses:
        '200':
          description: Resource list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceList'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks:
    get:
      operationId: listVirtualnetworksByResourceGroup
      summary: Azure Virtual Network REST API List by resource group
      description: Lists all virtualNetworks resources within the specified resource group.
      tags:
      - Virtual Networks
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - $ref: '#/components/parameters/apiVersion'
      responses:
        '200':
          description: Resource list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceList'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{name}:
    parameters:
    - $ref: '#/components/parameters/subscriptionId'
    - $ref: '#/components/parameters/resourceGroupName'
    - name: name
      in: path
      required: true
      description: Name of the resource.
      schema:
        type: string
    - $ref: '#/components/parameters/apiVersion'
    get:
      operationId: getVirtualnetworks
      summary: Azure Virtual Network REST API Get resource
      description: Gets a specific virtualNetworks resource.
      tags:
      - Virtual Networks
      responses:
        '200':
          description: Resource
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Resource'
        '404':
          description: Not found
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    put:
      operationId: createOrUpdateVirtualnetworks
      summary: Azure Virtual Network REST API Create or update resource
      description: Creates or updates a virtualNetworks resource.
      tags:
      - Virtual Networks
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Resource'
      responses:
        '200':
          description: Resource updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Resource'
        '201':
          description: Resource created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Resource'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    patch:
      operationId: updateVirtualnetworks
      summary: Azure Virtual Network REST API Update resource
      description: Updates a virtualNetworks resource.
      tags:
      - Virtual Networks
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: Resource updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Resource'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    delete:
      operationId: deleteVirtualnetworks
      summary: Azure Virtual Network REST API Delete resource
      description: Deletes a virtualNetworks resource.
      tags:
      - Virtual Networks
      responses:
        '200':
          description: Resource deleted
        '202':
          description: Deletion accepted
        '204':
          description: Resource not found or already deleted
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  parameters:
    subscriptionId:
      name: subscriptionId
      in: path
      required: true
      description: The ID of the target subscription.
      schema:
        type: string
    resourceGroupName:
      name: resourceGroupName
      in: path
      required: true
      description: The name of the resource group.
      schema:
        type: string
    apiVersion:
      name: api-version
      in: query
      required: true
      description: The API version to use for this operation.
      schema:
        type: string
  schemas:
    Resource:
      type: object
      properties:
        id:
          type: string
          description: Resource ID.
        name:
          type: string
          description: Resource name.
        type:
          type: string
          description: Resource type.
        location:
          type: string
          description: Resource location.
        tags:
          type: object
          additionalProperties:
            type: string
        properties:
          type: object
          description: Resource-specific properties.
    ResourceList:
      type: object
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/Resource'
        nextLink:
          type: string
          description: URL to the next page of results.
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            target:
              type: string
    Operation:
      type: object
      properties:
        name:
          type: string
        display:
          type: object
          properties:
            provider:
              type: string
            resource:
              type: string
            operation:
              type: string
            description:
              type: string
        isDataAction:
          type: boolean
    OperationList:
      type: object
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/Operation'
        nextLink:
          type: string
  securitySchemes:
    azure_auth:
      type: oauth2
      description: Azure Active Directory OAuth2 Flow.
      flows:
        implicit:
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
          scopes:
            user_impersonation: Impersonate your user account
x-generated-from: https://docs.microsoft.com/en-us/rest/api/virtualnetwork/
x-generated-by: claude-crawl-2026-05-08