-
Book Overview & Buying
-
Table Of Contents
Designing and Implementing Microsoft Azure Networking Solutions
By :
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:
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
Let’s get started!
Figure 1.28 – Click the icon to open Cloud Shell
Figure 1.29 – Select the Bash shell environment
group=CharisTechRG location=westus VNet=EngineeringVNet
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"
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.
Let’s get started!
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
As you can see, using command-line management tools such as the Azure CLI greatly streamlines resource management in Azure!