Home › Studies › AZ-700 › Core Networking › VNet Connectivity & Routing

VNet Connectivity & Routing

Peering · gateway transit · service chaining · Virtual Network Manager · UDRs · forced tunneling · Route Server · NAT Gateway

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

VNet peering

TypeConnects
Virtual network peeringVirtual networks in the same Azure region
Global virtual network peeringVirtual networks across Azure regions
Peering settingDefaultEffect
Allow the peered VNet to access this VNetSelectedAllows traffic between the two networks. Clear it to block traffic instead of deleting the peering.
Allow forwarded trafficNot selectedLets this VNet receive traffic that was forwarded from other networks, for example by an NVA. It doesn't create any UDRs or NVAs.
Allow gateway or route server to forward trafficNot selectedLets the peered VNet receive traffic from this VNet's gateway or route server.
Use the remote gateway or route serverNot selectedSpoke uses the hub's gateway. Needs a remote gateway or route server, and the hub must allow its gateway to forward traffic. Set it in only one of the two peerings. Not possible if the VNet already has its own gateway.

Service chaining and gateway transit

Service chaining directs traffic from one VNet to a virtual appliance or gateway in a peered VNet through UDRs.

Gateway transit

  1. Hub peering: allow the hub's gateway to forward traffic to the peered VNet (and allow forwarded traffic).
  2. Spoke peering: enable use of the hub's remote gateway.
  3. Check that the peering shows Connected on both VNets.

Azure Virtual Network Manager (AVNM)

AVNM groups, configures, deploys and manages VNets across subscriptions and tenants. Configurations take effect only when you deploy them to the regions that hold the target VNets.

Building blockWhat it is
ScopeManagement groups and/or subscriptions the network manager can see and manage. Can be updated later. A management group scope includes all child subscriptions. You can't create two managers with an overlapping scope and the same features.
Network groupGlobal container of VNets from any region. Many-to-many with VNets. Static membership: you pick VNets. Dynamic membership: Azure Policy conditions.
Connectivity configurationBuilds a mesh or hub-and-spoke topology from network groups.
Security admin configurationSecurity admin rules, evaluated before NSG rules.
Routing configurationUser-defined routes at scale.
TopologyHow connectivity is builtNotes
MeshConnected groupEvery VNet in the group reaches every other. Regional by default; enable global mesh for cross-region. Effective routes show next hop ConnectedGroup.
Hub-and-spoke, hub VNetVNet peerings between hub and each spokeHub-to-spoke shows VNetPeering or GlobalVNetPeering. Optional direct connectivity adds a connected group among spokes of one spoke group.
Hub-and-spoke, Virtual WAN hubVirtual WAN VNet connectionsPreview.

Routes, UDRs and forced tunneling

Azure creates a route table for each subnet with system routes. You can't create or remove system routes, but you can override some with custom routes (UDRs or BGP).

Default system routeNext hop type
VNet address space prefixesVirtual network
0.0.0.0/0Internet (Azure service public IPs stay on the Azure backbone)
10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 100.64.0.0/10None (dropped) until you use the range in a VNet address space, then Virtual network
Added when you peer VNetsVirtual network peering
Added by a VNet gateway (BGP or local network gateway prefixes)Virtual network gateway
Added for a service endpoint, only on that subnetVirtualNetworkServiceEndpoint
UDR next hop typeUse
Virtual applianceVM running a network application. Give its private IP, or an internal load balancer IP. Enable IP forwarding on the NIC and, if needed, in the OS.
Virtual network gatewaySend traffic to the VNet's gateway. Only for a VPN gateway, not ExpressRoute, Route Server or Virtual WAN hub router.
NoneDrop the traffic.
Virtual networkOverride default routing inside a VNet.
InternetRoute to the internet explicitly.

Forced tunneling (site-to-site VPN)

Diagnose routing issues

  1. View the effective routes of the VM's network interface (VM must be running). Each NIC can be in a different subnet, so check each one.
  2. Check the route table is associated with the right subnet, and the custom routes are the ones you expect.
  3. For a virtual appliance next hop, check that IP forwarding is enabled, or packets are dropped.
  4. For peering, a system route with next hop VNet Peering must exist for the peered prefix. A new peering can take a short time to propagate. If it's missing and the link is Connected, check the NSG rules too.
  5. Use Network Watcher Next hop for a quick test, Connection troubleshoot for routing, filtering and in-OS causes, and VPN diagnostics for a gateway.

Only the primary NIC gets the default route (0.0.0.0/0) inside the VM's OS. A secondary NIC needs its own default route.

Azure Route Server

A fully managed service that exchanges routes by BGP between NVAs and the VNet, so you don't maintain route tables by hand. It acts as a BGP route reflector and doesn't carry data traffic: traffic goes directly between the NVA and the VM.

LimitValue
BGP peers16
Routes each peer can advertise4,000 (more drops the BGP session)
VMs supported (incl. peered VNets)50,000
VNets supported500
On-premises and VNet prefixes10,000

Azure NAT Gateway

Outbound-only NAT at subnet level. Instances stay private. No unsolicited inbound connections, only responses to outbound flows. No route table change is needed: it becomes the subnet's next hop for internet-bound traffic.

StandardStandardV2
ZonesZonal (one zone) or No zone; zone can't be changed after deploymentZone redundant
Public IPsUp to 16 IPv4 Standard IPs or prefixesUp to 16 IPv4 and 16 IPv6; needs StandardV2 public IPs
Throughput50 Gbps (25 out, 25 in)100 Gbps
Packets per second5 million10 million
Extras-IPv6, flow logs, NAT64 (needs a DNS64 solution)
UpgradeCan't upgrade to StandardV2; create a new one-

CLI and PowerShell

TaskAzure CLIPowerShell
Create a VNet peeringaz network vnet peering create --name vnet-1-to-vnet-2 --vnet-name vnet-1 --remote-vnet vnet-2 --resource-group test-rg --allow-vnet-access --allow-forwarded-trafficAdd-AzVirtualNetworkPeering -Name SpokeRMtoHubRM -VirtualNetwork $spokermvnet -RemoteVirtualNetworkId $hubrmvnet.Id -UseRemoteGateways
Enable gateway transit on the hub side-Add-AzVirtualNetworkPeering -Name HubRMToSpokeRM -VirtualNetwork $hubrmvnet -RemoteVirtualNetworkId $spokermvnet.Id -AllowGatewayTransit
List peerings of a VNetaz network vnet peering list --resource-group test-rg --vnet-name vnet-1 --out tableGet-AzVirtualNetworkPeering @peer
Create a route tableaz network route-table create --resource-group test-rg --name route-table-publicNew-AzRouteTable @routeTableParams
Add a UDR to a virtual applianceaz network route-table route create --name to-private-subnet --resource-group test-rg --route-table-name route-table-public --address-prefix 10.0.2.0/24 --next-hop-type VirtualAppliance --next-hop-ip-address 10.0.3.4Add-AzRouteConfig
UDR that uses a service tag as the prefixaz network route-table route create --resource-group MyResourceGroup --route-table-name MyRouteTable --name StorageRoute --address-prefix Storage --next-hop-type VirtualAppliance --next-hop-ip-address 10.0.100.4New-AzRouteConfig @param
Associate a route table with a subnetaz network vnet subnet update --vnet-name vnet-1 --name subnet-1 --resource-group test-rg --route-table route-table-publicSet-AzVirtualNetworkSubnetConfig
Show effective routes of a NICaz network nic show-effective-route-table --name vm-1445 --resource-group test-rgGet-AzEffectiveRouteTable @Params | Format-Table
Create a Route Serveraz network routeserver create --name 'myRouteServer' --resource-group 'myResourceGroup' --hosted-subnet $subnetId --public-ip-address 'RouteServerIP'New-AzRouteServer -RouteServerName 'myRouteServer' -ResourceGroupName 'myResourceGroup' -Location 'EastUS' -HostedSubnet $subnetId -PublicIP $publicIp -VirtualRouterAutoScaleConfiguration $autoscale
Add a BGP peer (NVA) to Route Serveraz network routeserver peering create --name 'myNVA' --peer-ip '10.0.0.4' --peer-asn '65001' --routeserver 'myRouteServer' --resource-group 'myResourceGroup'Add-AzRouteServerPeer -ResourceGroupName 'myResourceGroup' -RouteServerName 'myRouteServer' -PeerName 'myNVA' -PeerAsn '65001' -PeerIp '10.0.0.4'
Get Route Server IPs and ASNaz network routeserver show --resource-group 'myResourceGroup' --name 'myRouteServer'Get-AzRouteServer -ResourceGroupName 'myResourceGroup' -RouteServerName 'myRouteServer'
Create a NAT gatewayaz network nat gateway create --resource-group test-rg --name nat-gateway --public-ip-addresses public-ip-nat --idle-timeout 10$natGateway = New-AzNatGateway @nat
Associate a NAT gateway with a subnetaz network vnet subnet update --resource-group test-rg --vnet-name vnet-1 --name subnet-1 --nat-gateway nat-gatewaySet-AzVirtualNetworkSubnetConfig @subnet

Exam Tips

Tick each tip once you can answer it without looking.

“Spoke VNets must use the hub's VPN gateway to reach on-premises” → Hub peering: allow gateway or route server to forward traffic. Spoke peering: use the remote gateway. Basic SKU VPN gateways don't support transit.. Trap: The spoke can't use a remote gateway if it already has its own gateway, and a VNet can have only one gateway.

“VNet1 peers with VNet2, VNet2 peers with VNet3; VNet1 must reach VNet3” → Peering isn't transitive: create a VNet1-VNet3 peering, or route through an NVA in the hub. Trap: Enabling forwarded traffic on the peerings doesn't create the UDRs or the NVA.

“A peering shows Initiated” → The peering exists on one side only. Create the peering in the other VNet so both show Connected.. Trap: Traffic doesn't flow until both peerings are Connected.

“Two VNets with overlapping address spaces need to talk” → Peering requires nonoverlapping address spaces. A mesh in AVNM allows overlap, but traffic between the overlapping subnets is dropped.. Trap: Set ConnectedGroupAddressOverlap to Disallowed to block overlapping VNets from joining a mesh.

“Add an address range to a peered VNet without downtime” → Resize the address space, then sync the peering (after each resize). Trap: Not supported when the VNet is peered with a classic VNet.

“Move a peered VNet to another resource group” → Delete the peering, move the VNet, recreate the peering. Trap: A VNet can't be moved while it's part of a peering.

“Send spoke traffic through an NVA in the hub (service chaining)” → UDR with next hop type Virtual appliance and the NVA's private IP (or an internal load balancer IP). Enable IP forwarding on the NIC and, if needed, in the OS.. Trap: With IP forwarding off, packets are dropped. Put the NVA in a different subnet from the routed resources to avoid routing loops.

“Replace a system peering route for one prefix” → Create a UDR for the same prefix. For equal prefixes: UDR, then BGP, then system. Longest prefix match is applied first.. Trap: A system route for VNet, peering or service endpoints stays preferred even over a more specific BGP route.

“Create a UDR with next hop Virtual network peering or service endpoint” → You can't. Azure creates those routes only when you configure the peering or service endpoint.. Trap: Next hop types available in a UDR: virtual appliance, virtual network gateway, none, virtual network, internet.

“Associate one route table with subnets in another region or subscription” → Not allowed: the route table and the subnet's VNet must be in the same location and subscription. Trap: You associate route tables with subnets, not with VNets. Each subnet has at most one route table.

“Send all internet traffic back on-premises over a S2S VPN” → Forced tunneling: advertise 0.0.0.0/0 over BGP, or set a Default Site on a route-based gateway. Trap: Default Site needs 0.0.0.0/0 traffic selectors on the on-premises device. Use UDRs to let chosen subnets exit directly.

“A VM can't be reached; check which routes apply” → Effective routes of its NIC (VM running), or Network Watcher Next hop for a destination IP. Trap: Next hop shows System Route when no UDR matches. IP flow verify checks security rules, not routing.

“NVAs must learn and advertise routes dynamically, with no manual route tables” → Azure Route Server (BGP). Subnet RouteServerSubnet, /26 or larger, Standard public IP.. Trap: Route Server doesn't carry data traffic and can't redirect traffic between subnets of the same VNet.

“Route Server must exchange routes between an NVA and a VPN or ExpressRoute gateway” → Enable branch-to-branch. VPN gateway must be active-active with ASN 65515.. Trap: Off by default. Transit is ExpressRoute to S2S VPN only, not P2S.

“VMs in a private subnet need outbound internet access with fixed outbound IPs” → NAT Gateway with a public IP or public IP prefix. Associate it with the subnet; no route table change needed.. Trap: A 0.0.0.0/0 UDR to an NVA or gateway bypasses the NAT gateway.

“Need outbound zone redundancy, IPv6 or 100 Gbps” → StandardV2 NAT gateway, with StandardV2 public IPs. Trap: You can't upgrade Standard to StandardV2. Create a new one and attach it to the subnet.

“Internet clients must start connections to VMs in a subnet that uses a NAT gateway” → A NAT gateway doesn't permit unsolicited inbound connections. Only return packets of an outbound connection pass.. Trap: Assigning a NAT gateway to the subnet doesn't make the VMs reachable from the internet.

“Spokes must talk to each other directly without going through the hub” → AVNM hub-and-spoke with direct connectivity (connected group), or a mesh. Deploy the configuration to the regions.. Trap: A configuration has no effect until it's deployed.

Sources

Checked against Microsoft Learn on November 13, 2026.

← Name ResolutionNetwork Monitoring →