Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Designing and Implementing Microsoft Azure Networking Solutions

You're reading from  Designing and Implementing Microsoft Azure Networking Solutions

Product type Book
Published in Aug 2023
Publisher Packt
ISBN-13 9781803242033
Pages 524 pages
Edition 1st Edition
Languages
Concepts
Author (1):
David Okeyode David Okeyode
Profile icon David Okeyode

Table of Contents (17) Chapters

Preface 1. Part 1: Design and Implement Core Networking Infrastructure in Azure
2. Chapter 1: Azure Networking Fundamentals 3. Chapter 2: Designing and Implementing Name Resolution 4. Chapter 3: Design, Implement, and Manage VNet Routing 5. Chapter 4: Design and Implement Cross-VNet Connectivity 6. Part 2: Design, Implement, and Manage Hybrid Networking
7. Chapter 5: Design and Implement Hybrid Network Connectivity with VPN Gateway 8. Chapter 6: Designing and Implementing Hybrid Network Connectivity with the ExpressRoute Gateway 9. Chapter 7: Design and Implement Hybrid Network Connectivity with Virtual WAN 10. Chapter 8: Designing and Implementing Network Security 11. Part 3: Design and Implement Traffic Management and Network Monitoring
12. Chapter 9: Designing and Implementing Application Delivery Services 13. Chapter 10: Designing and Implementing Platform Service Connectivity 14. Chapter 11: Monitoring Networks in Azure 15. Index 16. Other Books You May Enjoy

Hands-on exercise – creating a dual-stack VNet in Azure

In this exercise, we will create a dual-stack network in Azure that supports both IPv4 and IPv6 for the fictional organization called CharisTech. The activities in this task will be completed using the Azure CLI to give you familiarity with the different Azure management tools. Here are the tasks that we will complete in this exercise:

  • Task 1: Creating the dual-stack EngineeringVNet VNet and subnets
  • Task 2: Verifying the creation of the dual-stack VNet and subnets

Figure 1.27 shows the outcome that we’ll get to at the end of the tasks:

Figure 1.27 – CharisTech Azure VNets and subnets

Figure 1.27 – CharisTech Azure VNets and subnets

Let’s get started!

Task 1 – creating the dual-stack EngineeringVNet VNet and subnets

  1. Open a web browser and go to the Azure Portal at https://portal.azure.com. Sign in with your admin user account credentials.
  2. In the Azure Portal, click on the Cloud Shell icon in the top right corner of the Azure Portal:
Figure 1.28 – Click the icon to open Cloud Shell

Figure 1.28 – Click the icon to open Cloud Shell

  1. (Optional) If this is your first time launching Cloud Shell, you will be prompted to select between the Bash and PowerShell environments. Select Bash. You will also be prompted to create a storage account that will be used by Cloud Shell. Select Create Storage.
  2. If this is not your first launch, ensure you have Bash selected for your environment:
Figure 1.29 – Select the Bash shell environment

Figure 1.29 – Select the Bash shell environment

  1. In Cloud Shell, enter the following commands to set the values that we will use for the following variables: resource group, location, and VNet:
    group=CharisTechRG
    location=westus
    VNet=EngineeringVNet
  2. Create a VNet with the az network VNet create command. The following command creates a VNet named EngineeringVNet with one subnet named EngSubnet1. Both the VNet and the subnet are dual-stack:
    az network VNet create --name $VNet --resource-group $group --location $location --address-prefixes "10.20.0.0/16" "fd00:db8:deca::/48" --subnet-name EngSubnet1 --subnet-prefix "10.20.1.0/24" "fd00:db8:deca:1::/64"
  3. Add a second subnet with the az network VNet subnet create command. The following command adds a dual-stack subnet named EngSubnet2 to the EngineeringVNet network that we created earlier:
    az network VNet subnet create -n EngSubnet2 --address-prefixes "10.20.2.0/24" "fd00:db8:deca:2::/64" --resource-group $group --VNet-name $VNet

Now that the dual-stack VNets and subnets are created, let us verify them.

Task 2 – verifying the creation of the dual-stack VNet and subnets

Let’s get started!

  1. In the Cloud Shell environment, enter the following command to list the VNets in the subscription and output the result in a table format:
    az network VNet list --resource-group CharisTechRG --output table

The output should be like the output shown in Figure 1.30:

Figure 1.30 – The VNet list output

Figure 1.30 – The VNet list output

As you can see, using command-line management tools such as the Azure CLI greatly streamlines resource management in Azure!

You have been reading a chapter from
Designing and Implementing Microsoft Azure Networking Solutions
Published in: Aug 2023 Publisher: Packt ISBN-13: 9781803242033
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}