What are system routes and user-defined routes (UDRs)?
IntermediateConceptNetworking
Answer
System routes exist by default: VNet address space → VnetLocal, 0.0.0.0/0 → Internet, peered VNets → VNetPeering, plus gateway-learned routes.
A UDR in a route table overrides them for the subnets it is associated with. The classic use: force all egress through a firewall:
az network route-table route create -g rg --route-table-name rt-spoke -n default \
--address-prefix 0.0.0.0/0 --next-hop-type VirtualAppliance --next-hop-ip-address 10.0.1.4
Route selection is longest prefix match; on a tie, UDR beats BGP beats system route.
More on Networking
What is a VNet and how does it compare to an AWS VPC?BeginnerHow many IP addresses does Azure reserve in each subnet?BeginnerWhat is a Network Security Group and how are its rules evaluated?BeginnerIf an NSG is on both the subnet and the NIC, how is traffic evaluated?AdvancedWhat are service tags and why use them in NSG rules?BeginnerWhat is an Application Security Group (ASG)?Intermediate