Read CIDR and create a VNet
Your tasks
- Create vnet-lab with address space 10.50.0.0/16
The network plan your team uses is written entirely in CIDR blocks. Learn to read them, then build a new virtual network called vnet-lab with the address space 10.50.0.0/16.
You'll learn
How CIDR notation works
Use the lab's cidr tool to see a block's first and last address and its size.
cidr 10.1.0.0/16Compare a /20.
cidr 10.1.0.0/20Answer question 1 with the size from step 1. Answer questions 2 and 3 the same way: answer <number> <value>.
Create the new virtual network. --address-prefixes sets its address space.
az network vnet create -g rg-lab --name vnet-lab --address-prefixes 10.50.0.0/16What's this?
Creates a virtual network with its address space.
-gthe resource group the resources live in--namethe name of the thing to look at or change
--name vnet-labthe new VNet's name--address-prefixes 10.50.0.0/16one or more CIDR ranges, separated by spaces
Sources on Microsoft Learn (2)
0/1 changes
Network map
?
- Resource group, the outer dashed frame
- Virtual network, with its address space top right
- Subnet, with range and usable IPs (5 reserved)
- Network security group. A small shield on a VM's NIC means the NIC has one too
- Route table on the subnet
- VM Appliance Private endpoint
- Peering Connected Initiated or access off
- Goal working Goal broken, X marks where it stops
- Private DNS zone, dotted lines go to linked VNets
- Orange pulse: what your last command changed. Drag to pan, Ctrl and scroll to zoom.
Goals 0/4
Cloud Shell · bashVMsrg-lab · eastus2
cloudshell:~$