Azure Networking · Capability

Azure Networking Azure Virtual Networks API — Subnets

Azure Networking Azure Virtual Networks API — Subnets. 4 operations. Lead operation: Azure Networking List subnets. Self-contained Naftiko capability covering one Microsoft Azure Networking business surface.

Run with Naftiko Microsoft Azure NetworkingSubnets

What You Can Do

GET
Subnetslist — Azure Networking List subnets
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-network/virtualnetworks/{virtualnetworkname}/subnets
GET
Subnetsget — Azure Networking Get subnet
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-network/virtualnetworks/{virtualnetworkname}/subnets/{subnetname}
PUT
Subnetscreateorupdate — Azure Networking Create or update subnet
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-network/virtualnetworks/{virtualnetworkname}/subnets/{subnetname}
DELETE
Subnetsdelete — Azure Networking Delete subnet
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-network/virtualnetworks/{virtualnetworkname}/subnets/{subnetname}

MCP Tools

azure-networking-list-subnets

Azure Networking List subnets

read-only idempotent
azure-networking-get-subnet

Azure Networking Get subnet

read-only idempotent
azure-networking-create-update-subnet

Azure Networking Create or update subnet

idempotent
azure-networking-delete-subnet

Azure Networking Delete subnet

idempotent

Capability Spec

azure-networking-virtual-networks-subnets.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Azure Networking Azure Virtual Networks API — Subnets
  description: 'Azure Networking Azure Virtual Networks API — Subnets. 4 operations. Lead operation: Azure Networking List
    subnets. Self-contained Naftiko capability covering one Microsoft Azure Networking business surface.'
  tags:
  - Microsoft Azure Networking
  - Subnets
  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: azure-networking-virtual-networks-subnets
    baseUri: https://management.azure.com
    description: Azure Networking Azure Virtual Networks API — Subnets business capability. Self-contained, no shared references.
    resources:
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets
      operations:
      - name: subnetslist
        method: GET
        description: Azure Networking List subnets
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}
      operations:
      - name: subnetsget
        method: GET
        description: Azure Networking Get subnet
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: subnetscreateorupdate
        method: PUT
        description: Azure Networking Create or update subnet
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: subnetsdelete
        method: DELETE
        description: Azure Networking Delete subnet
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.MICROSOFT_AZURE_NETWORKING_API_KEY}}'
  exposes:
  - type: rest
    namespace: azure-networking-virtual-networks-subnets-rest
    port: 8080
    description: REST adapter for Azure Networking Azure Virtual Networks API — Subnets. One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-network/virtualnetworks/{virtualnetworkname}/subnets
      name: subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsof
      description: REST surface for subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof.
      operations:
      - method: GET
        name: subnetslist
        description: Azure Networking List subnets
        call: azure-networking-virtual-networks-subnets.subnetslist
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-network/virtualnetworks/{virtualnetworkname}/subnets/{subnetname}
      name: subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsof
      description: REST surface for subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof.
      operations:
      - method: GET
        name: subnetsget
        description: Azure Networking Get subnet
        call: azure-networking-virtual-networks-subnets.subnetsget
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: subnetscreateorupdate
        description: Azure Networking Create or update subnet
        call: azure-networking-virtual-networks-subnets.subnetscreateorupdate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: subnetsdelete
        description: Azure Networking Delete subnet
        call: azure-networking-virtual-networks-subnets.subnetsdelete
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: azure-networking-virtual-networks-subnets-mcp
    port: 9090
    transport: http
    description: MCP adapter for Azure Networking Azure Virtual Networks API — Subnets. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: azure-networking-list-subnets
      description: Azure Networking List subnets
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: azure-networking-virtual-networks-subnets.subnetslist
      outputParameters:
      - type: object
        mapping: $.
    - name: azure-networking-get-subnet
      description: Azure Networking Get subnet
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: azure-networking-virtual-networks-subnets.subnetsget
      outputParameters:
      - type: object
        mapping: $.
    - name: azure-networking-create-update-subnet
      description: Azure Networking Create or update subnet
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: azure-networking-virtual-networks-subnets.subnetscreateorupdate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: azure-networking-delete-subnet
      description: Azure Networking Delete subnet
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: azure-networking-virtual-networks-subnets.subnetsdelete
      outputParameters:
      - type: object
        mapping: $.