Book Image

Designing and Implementing Microsoft Azure Networking Solutions

By : David Okeyode
Book Image

Designing and Implementing Microsoft Azure Networking Solutions

By: David Okeyode

Overview of this book

Designing and Implementing Microsoft Azure Networking Solutions is a comprehensive guide that covers every aspect of the AZ-700 exam to help you fully prepare to take the certification exam. Packed with essential information, this book is a valuable resource for Azure cloud professionals, helping you build practical skills to design and implement name resolution, VNet routing, cross-VNet connectivity, and hybrid network connectivity using the VPN Gateway and the ExpressRoute Gateway. It provides step-by-step instructions to design and implement an Azure Virtual WAN architecture for enterprise use cases. Additionally, the book offers detailed guidance on network security design and implementation, application delivery services, private platform service connectivity, and monitoring networks in Azure. Throughout the book, you’ll find hands-on labs carefully integrated to align with the exam objectives of the Azure Network Engineer certification (AZ-700), complemented by practice questions at the end of each chapter, allowing you to test your knowledge. By the end of this book, you’ll have mastered the fundamentals of Azure networking and be ready to take the AZ-700 exam.
Table of Contents (17 chapters)
1
Part 1: Design and Implement Core Networking Infrastructure in Azure
6
Part 2: Design, Implement, and Manage Hybrid Networking
11
Part 3: Design and Implement Traffic Management and Network Monitoring

Hands-on exercise – exploring private IP assignments

In this exercise, you will explore private IP assignment options for VNet resources. Here are the tasks that you will complete in this exercise:

  • Task 1 – deploying VMs with dynamic and static private IP assignments

Let’s get into this!

Task 1 – deploying VMs with dynamic and static private IP assignments

The steps are as follows:

  1. In the Azure Cloud Shell environment, enter the following commands to set the values that we will use for the following variables: resource group, location, VNet, subnet, and VM size. Replace the Standard_B2s value if you are using a different size than you verified in the previous exercise:
    group=CharisTechRG
    location=eastus
    VNet=CoreServicesVNet
    subnet=PublicWebServiceSubnet
    size=Standard_B2s
  2. Deploy a VM called WebVM0 into PublicWebServiceSubnet of CoreServicesVNet with the az vm create command. This will default to the dynamic private IP assignment method:
    az vm create -g $group -n WebVM0 --image UbuntuLTS --admin-username azureuser --generate-ssh-keys --VNet-name $VNet --subnet $subnet --size $size --public-ip-address ""

The following figure shows the output of this command. Ignore the warning about the public IP as the VM is created without a public IP assigned.

Figure 1.40 – VM creation with the default dynamic private IP assignment

Figure 1.40 – VM creation with the default dynamic private IP assignment

  1. Deploy a VM called WebVM1 into PublicWebServiceSubnet of CoreServicesVNet with the az vm create command. This time around, we will specify a static private IP assignment of 10.10.3.10:
    az vm create -g $group -n WebVM1 --image UbuntuLTS --admin-username azureuser --generate-ssh-keys --VNet-name $VNet --subnet $subnet --size $size --public-ip-address "" --private-ip-address "10.10.3.10"

The following figure shows the output of this command. Ignore the warning about the public IP as the VM is created without a public IP assigned.

Figure 1.41 – VM creation with the default dynamic private IP assignment

Figure 1.41 – VM creation with the default dynamic private IP assignment

  1. Review the private IP assignment of the VM network interfaces using the az network nic list command:
    az network nic list -g $group --query "[*].{NIC:name, PrivateIP: ipConfigurations[0].privateIpAddress, Assignment: ipConfigurations[0].privateIpAllocationMethod, IPVersion: ipConfigurations[0].privateIpAddressVersion}" -o table

The --query parameter is used to sort through the JSON array response to select the properties that we are interested in. The following screenshot shows what the output looks like:

Figure 1.42 – The VM NIC dynamic private IP assignment

Figure 1.42 – The VM NIC dynamic private IP assignment

Leave Cloud Shell open for the last exercise in this chapter.