CmdID / az / az network / az network vnet / az network vnet peering
az network vnet peering create
Create a virtual network peering connection. Azure CLI reference
12 options Its page in the Azure CLI reference
Options
--allow-forwarded-trafficWhether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote virtual network.--allow-gateway-transitIf gateway links can be used in remote virtual networking to link to this virtual network.--allow-vnet-accessWhether the VMs in the local virtual network space would be able to access the VMs in remote virtual network space.--enable-only-ipv6Whether only Ipv6 address space is peered for subnet peering.--local-subnet-namesList of local subnet names that are subnet peered with remote virtual network.--name, -nThe name of the VNet peering.--peer-complete-vnetsWhether complete virtual network address space is peered.--remote-subnet-namesList of remote subnet names from remote virtual network that are subnet peered.--remote-vnetName or ID of the remote VNet.--sync-remoteIndicate the intention to sync the peering with the current address space on the remote VNet after it's updated.--use-remote-gatewaysAllows VNet to use the remote VNet's gateway.--vnet-nameThe virtual network (VNet) name.