Skill 4.1.1
Create and configure virtual networks and subnets
Key Concepts
A VNet has one or more address spaces in CIDR notation, usually from the RFC 1918 private ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), and they must not overlap with networks the VNet will connect to. Subnets divide the address space; Azure reserves five addresses in every subnet (the network address, the first three host addresses for the default gateway and DNS, and the broadcast address), so a /24 has 251 usable addresses and the smallest subnet, /29, has three. Address spaces can be added to a VNet later, and a subnet can be resized only if no resources use the addresses being removed.
Some services need dedicated subnets with specific names or delegation, such as GatewaySubnet, AzureBastionSubnet, AzureFirewallSubnet and subnets delegated to App Service or Container Instances. VNets created after 31 March 2026 use private subnets by default, which have no default outbound internet access, so VMs need an explicit outbound method: a NAT gateway (recommended), a public IP on the VM or a load balancer outbound rule. VNets use Azure-provided DNS by default and can be set to custom DNS servers.