Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Azure icon
Labs

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.

Azure icon
Lab platform
Lab Info
Level
Beginner
Last updated
Oct 07, 2025
Duration
45m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Create a Virtual Network

    Do the following to create a Virtual Network with the Azure CLI:

    1. On the main page, select the Azure Cloud Shell button (>_) at the top of the page.

    2. Choose the Bash environment.

    3. Select Show advanced settings.

    4. Set it up as follows:

      • Subscription: Default
      • Cloud Shell region: US West
      • Resource group: Default
      • Storage account: Select Use existing
      • File share: Select Use existing and enter cloudshell in the text field
    5. Select Create storage.

    6. Once in the shell, enter the following to create the Virtual Network:

      az network vnet create --name "vnet1" --resource-group <TAB> --address-prefixes 10.1.0.0/16
      

      Note: <TAB> is the Tab key to automatically populate the resource group name.

  2. Challenge

    Configure a Subnet for Your New Virtual Network
    1. Continue to use Azure Cloud Shell to now configure a subnet.

    2. Choose the Bash environment.

    3. Once in the shell, enter the following to create a subnet for the Virtual Network you created earlier:

      az network vnet subnet create --name "subnet1" --vnet-name "vnet1" --resource-group <TAB> --address-prefixes 10.1.1.0/24
      

      Note: <TAB> is the Tab key to automatically populate the resource group name.

About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

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.

Get started with Pluralsight