This article covers the “Implement and manage virtual networking” section of the AZ-100 and AZ-103 Exams and is part of my AZ-100 Study Notes series.
Configure private and public IP addresses, network routes, network interface, subnets, and virtual networks
Private and Public IP Addresses
To configure public and private IP Addresses access the resource it will apply to such as a Virtual Machine and navigate to the “Networking” section. In the case of VM’s this can be done by going to “Networking” then selecting the Network Interface and then selecting “IP Configurations”.
You can then edit an existing IP Configuration or create a new one by selecting “Add”.
Provide a name and select whether to allocate a dynamic or static private ip (Allocation) and whether to enable a public IP. When public IP is enabled you may then select an existing public IP or create a new one.
More information can be found at – https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-ip-addresses-overview-arm
Network routes are useful to route traffic through a network virtual appliance such as a Palo Alto firewall, to define routes you first create a Route Table then create custom routes and finally associate the Route Table with specific subnets.
To create a Route –
- Navigate to “Route Tables”
- Select “Add” and provide a Name and select or create a Resource Group.
- Then select “Create”
- At this point we have a Route Table but we need to define custom routes.
- In Route Tables select “Routes” in the “Settings” menu then click “Add”.
- Define the route you want to configure and then click OK.
- Once that’s done we finally need to navigate to “Subnets” in the “Settings” menu and associate it with a subnet.
More information can be found at – https://docs.microsoft.com/en-us/azure/virtual-network/tutorial-create-route-table-portal
Network Interfaces allow Azure VM’s to communicate with other Azure and On-Premise resources and facilitates connecting to the internet. I’ve covered these in detail in Study Notes #14 but more information on managing them can be found at – https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-network-interface-vm
In Azure, Subnets are configured within Virtual Networks by selecting “Subnets” in the “Settings” menu. They define the range of IP’s available to a connected device.
I found it hard to get my head around subnetting originally, one of the better guides to it is here – http://www.steves-internet-guide.com/subnetting-subnet-masks-explained/
This calculator is good to play with to get your head around the ranges provided by various subnets – https://www.calculator.net/ip-subnet-calculator.html?cclass=any&csubnet=24&cip=10.0.0.1
Virtual Networks bring together various resources into a single private network equivalent to your home network.
I’ve covered setting up Virtual Networks in past articles but for a quick guide to setting up a new Virtual Network you can find a quick setup guide here – https://docs.microsoft.com/en-us/azure/virtual-network/quick-create-portal