Azure Networking · Capability

Azure Virtual Network REST API — Virtual Networks

Azure Virtual Network REST API — Virtual Networks. 6 operations. Lead operation: Azure Virtual Network REST API List by subscription. Self-contained Naftiko capability covering one Microsoft Azure Networking business surface.

Run with Naftiko Microsoft Azure NetworkingVirtual Networks

What You Can Do

GET
Listvirtualnetworksbysubscription — Azure Virtual Network REST API List by subscription
/v1/subscriptions/{subscriptionid}/providers/microsoft-network/virtualnetworks
GET
Listvirtualnetworksbyresourcegroup — Azure Virtual Network REST API List by resource group
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-network/virtualnetworks
GET
Getvirtualnetworks — Azure Virtual Network REST API Get resource
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-network/virtualnetworks/{name}
PUT
Createorupdatevirtualnetworks — Azure Virtual Network REST API Create or update resource
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-network/virtualnetworks/{name}
PATCH
Updatevirtualnetworks — Azure Virtual Network REST API Update resource
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-network/virtualnetworks/{name}
DELETE
Deletevirtualnetworks — Azure Virtual Network REST API Delete resource
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-network/virtualnetworks/{name}

MCP Tools

azure-virtual-network-rest-api

Azure Virtual Network REST API List by subscription

read-only idempotent
azure-virtual-network-rest-api-2

Azure Virtual Network REST API List by resource group

read-only idempotent
azure-virtual-network-rest-api-3

Azure Virtual Network REST API Get resource

read-only idempotent
azure-virtual-network-rest-api-4

Azure Virtual Network REST API Create or update resource

idempotent
azure-virtual-network-rest-api-5

Azure Virtual Network REST API Update resource

idempotent
azure-virtual-network-rest-api-6

Azure Virtual Network REST API Delete resource

idempotent

Capability Spec

microsoft-azure-networking-virtual-networks.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Azure Virtual Network REST API — Virtual Networks
  description: 'Azure Virtual Network REST API — Virtual Networks. 6 operations. Lead operation: Azure Virtual Network REST
    API List by subscription. Self-contained Naftiko capability covering one Microsoft Azure Networking business surface.'
  tags:
  - Microsoft Azure Networking
  - Virtual Networks
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_AZURE_NETWORKING_API_KEY: MICROSOFT_AZURE_NETWORKING_API_KEY
capability:
  consumes:
  - type: http
    namespace: microsoft-azure-networking-virtual-networks
    baseUri: https://management.azure.com
    description: Azure Virtual Network REST API — Virtual Networks business capability. Self-contained, no shared references.
    resources:
    - name: subscriptions-subscriptionId-providers-Microsoft.Network-virtualNetworks
      path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworks
      operations:
      - name: listvirtualnetworksbysubscription
        method: GET
        description: Azure Virtual Network REST API List by subscription
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks
      operations:
      - name: listvirtualnetworksbyresourcegroup
        method: GET
        description: Azure Virtual Network REST API List by resource group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{name}
      operations:
      - name: getvirtualnetworks
        method: GET
        description: Azure Virtual Network REST API Get resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createorupdatevirtualnetworks
        method: PUT
        description: Azure Virtual Network REST API Create or update resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: updatevirtualnetworks
        method: PATCH
        description: Azure Virtual Network REST API Update resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletevirtualnetworks
        method: DELETE
        description: Azure Virtual Network REST API Delete resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.MICROSOFT_AZURE_NETWORKING_API_KEY}}'
  exposes:
  - type: rest
    namespace: microsoft-azure-networking-virtual-networks-rest
    port: 8080
    description: REST adapter for Azure Virtual Network REST API — Virtual Networks. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/subscriptions/{subscriptionid}/providers/microsoft-network/virtualnetworks
      name: subscriptions-subscriptionid-providers-microsoft-network-virtualnetworks
      description: REST surface for subscriptions-subscriptionId-providers-Microsoft.Network-virtualNetworks.
      operations:
      - method: GET
        name: listvirtualnetworksbysubscription
        description: Azure Virtual Network REST API List by subscription
        call: microsoft-azure-networking-virtual-networks.listvirtualnetworksbysubscription
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-network/virtualnetworks
      name: subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsof
      description: REST surface for subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof.
      operations:
      - method: GET
        name: listvirtualnetworksbyresourcegroup
        description: Azure Virtual Network REST API List by resource group
        call: microsoft-azure-networking-virtual-networks.listvirtualnetworksbyresourcegroup
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-network/virtualnetworks/{name}
      name: subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsof
      description: REST surface for subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof.
      operations:
      - method: GET
        name: getvirtualnetworks
        description: Azure Virtual Network REST API Get resource
        call: microsoft-azure-networking-virtual-networks.getvirtualnetworks
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: createorupdatevirtualnetworks
        description: Azure Virtual Network REST API Create or update resource
        call: microsoft-azure-networking-virtual-networks.createorupdatevirtualnetworks
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatevirtualnetworks
        description: Azure Virtual Network REST API Update resource
        call: microsoft-azure-networking-virtual-networks.updatevirtualnetworks
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletevirtualnetworks
        description: Azure Virtual Network REST API Delete resource
        call: microsoft-azure-networking-virtual-networks.deletevirtualnetworks
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: microsoft-azure-networking-virtual-networks-mcp
    port: 9090
    transport: http
    description: MCP adapter for Azure Virtual Network REST API — Virtual Networks. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: azure-virtual-network-rest-api
      description: Azure Virtual Network REST API List by subscription
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-azure-networking-virtual-networks.listvirtualnetworksbysubscription
      outputParameters:
      - type: object
        mapping: $.
    - name: azure-virtual-network-rest-api-2
      description: Azure Virtual Network REST API List by resource group
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-azure-networking-virtual-networks.listvirtualnetworksbyresourcegroup
      outputParameters:
      - type: object
        mapping: $.
    - name: azure-virtual-network-rest-api-3
      description: Azure Virtual Network REST API Get resource
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-azure-networking-virtual-networks.getvirtualnetworks
      outputParameters:
      - type: object
        mapping: $.
    - name: azure-virtual-network-rest-api-4
      description: Azure Virtual Network REST API Create or update resource
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: microsoft-azure-networking-virtual-networks.createorupdatevirtualnetworks
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: azure-virtual-network-rest-api-5
      description: Azure Virtual Network REST API Update resource
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: microsoft-azure-networking-virtual-networks.updatevirtualnetworks
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: azure-virtual-network-rest-api-6
      description: Azure Virtual Network REST API Delete resource
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: microsoft-azure-networking-virtual-networks.deletevirtualnetworks
      outputParameters:
      - type: object
        mapping: $.