Home › Studies › AZ-104 › Virtual Networking › Routing & UDRs

Routing & UDRs

system routes · user-defined routes · next hop types · route selection · NVAs · BGP propagation

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

Practice questions for this topic →

System routes

Address prefixNext hop type
The vnet's own address prefixesVirtual network
0.0.0.0/0Internet
10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 100.64.0.0/10None
157.59.0.0/16, 127.0.0.0/8, 104.147.0.0/16, 104.146.0.0/17None

User-defined routes and route selection

Route tables

NVAs and forced traffic

BGP propagation and special subnets

Configure and verify

CLI and PowerShell

TaskAzure CLIPowerShell
Create route tableaz network route-table createNew-AzRouteTable
Add routeaz network route-table route create --route-table-name MyRouteTable --name StorageRoute --address-prefix Storage --next-hop-type VirtualAppliance --next-hop-ip-address 10.0.100.4New-AzRouteConfig -Name StorageRoute -AddressPrefix Storage -NextHopType VirtualAppliance -NextHopIpAddress 10.0.100.4, add to the table, then Set-AzRouteTable
Associate or dissociateaz network vnet subnet update (with the route table)Set-AzVirtualNetworkSubnetConfig
Effective routesaz network nic show-effective-route-tableGet-AzEffectiveRouteTable
Next hop testaz network watcher show-next-hopGet-AzNetworkWatcherNextHop
Delete route tableaz network route-table deleteRemove-AzRouteTable

Exam Tips

Tick each tip once you can answer it without looking.

“Force all internet-bound traffic from a subnet through a firewall VM” → Route table with 0.0.0.0/0, next hop Virtual appliance (the firewall IP), associated with the subnet. Trap: Next hop Internet.

“Traffic reaches the NVA but is dropped” → Enable IP forwarding on the NVA NIC (and in the OS). Trap: Adding an NSG rule.

“10.0.0.0/16 routes to an NVA and 10.0.0.0/24 routes to None; destination 10.0.0.5” → The /24 wins (longest prefix): traffic is dropped. Trap: Choosing the /16 route by UDR order.

“A UDR and a system route have the same prefix” → The UDR wins. Trap: The system route because it is more specific. The prefixes are identical.

“Associate one route table with subnets in two regions” → Not possible: the table and subnets must be in the same region and subscription. Trap: Thinking route tables are global.

“A subnet needs two route tables” → Not possible: zero or one per subnet. Trap: Expecting them to be merged.

“Delete a route table” → Dissociate it from all subnets first. Trap: Deleting the routes first.

“Stop on-premises BGP routes appearing on a subnet” → Disable virtual network gateway route propagation on that route table. Trap: Removing the VPN connection.

“Route table with 0.0.0.0/0 on the VPN GatewaySubnet” → Don't: it can break the gateway. Trap: Assuming it's required for forced tunneling.

“NVA in the same subnet as the workload, with a UDR through it” → Can cause a routing loop: use a separate subnet. Trap: Thinking it's fine if IP forwarding is on.

“Storage traffic must still go direct after a 0.0.0.0/0 UDR to an NVA” → Enable a service endpoint on the subnet: its route has a longer prefix. Trap: Expecting the 0.0.0.0/0 UDR to capture it.

“Next hop result for 10.1.0.5 when the vnet doesn't use that range, inside 10.0.0.0/8” → None (dropped). Trap: Internet.

“Next hop types you can NOT choose in a UDR” → Virtual network peering and VirtualNetworkServiceEndpoint. Trap: Virtual network. It is selectable.

“UDR next hop Virtual network gateway when the gateway is ExpressRoute” → Not supported: it works only with a VPN gateway. Trap: Assuming ExpressRoute is supported.

“Why traffic takes an unexpected path” → NIC effective routes, or Network Watcher Next hop. Trap: NSG flow logs.

“Spoke traffic to Azure Storage must go to the NVA instead of the endpoint path” → UDR using the Storage service tag with the NVA as next hop (up to 25 service-tag routes per table). Trap: Listing individual IP ranges.

“Put a UDR on AzureBastionSubnet” → Not supported: create it without route tables or delegations. Trap: Adding a 0.0.0.0/0 route to inspect Bastion traffic.

Sources

Checked against Microsoft Learn on November 13, 2026.

← Public IP AddressesNSGs & ASGs →