Network Interface

circle-info

Updated: February 13, 2026

circle-info

These examples assume that linked resources (VNet, Subnet, NSG) already exist in the same resource group.

Creating a NIC with NSG

defaults:
  resource_group: rg1

resources:
  - type: "Microsoft.Network/networkInterfaces"
    api_version: "2025-05-01"
    name: nic1
    props:
      network_security_group:
        id: "/providers/Microsoft.Network/networkSecurityGroups/nsg1"
      ip_configurations:
        - name: ipconfig1
          props:
            subnet:
              id: "/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"

Last updated