- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud
Create a Virtual Network in Azure Using Azure CLI
Virtual Networks (VNet) are a core and common part of many solutions that you can build within Azure. Using a VNet, we can provide private connectivity between resources in Azure. In this lab, you will have the opportunity to create a VNet using Azure CLI. Through the Azure CLI, we can create resources within Azure that can help automate and improve consistency for many administrative tasks that you would otherwise complete manually through the Azure portal. After completing this lab, you'll be familiar with how to create a VNet and modify subnet configuration, using Azure CLI.
Lab Info
Table of Contents
-
Challenge
Create a Virtual Network
- View All resources to confirm the existing storage account and resource group.
- Open Azure Cloud Shell from the top menu bar.
- Select Bash.
- Select Mount storage account.
- Choose the available option under Storage account subscription.
- Click Apply.
- Select Select existing storage account.
- Click Next.
- Select the pre-populated resource group and storage account.
- Create a new file share named
fileshare, then select OK. - Click Select to initialize Cloud Shell.
- Review the virtual network creation command using
az network vnet create --help. - Create a virtual network named
vnet1with an address prefix of10.1.0.0/16. - Refresh resources and verify that
vnet1appears under All resources. - Select
vnet1to view its configuration. - Open the Subnets section to confirm that no subnets exist.
-
Challenge
Configure a Subnet for Your New Virtual Network
- Review the
az network vnet subnet createcommand and required arguments usingaz network vnet subnet create -h. - Create a subnet named
subnet1in thevnet1virtual network using the appropriate address prefix and resource group. - Refresh your Cloud Shell resources.
- Verify that
subnet1appears under thevnet1subnets.
- Review the
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.