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 and Peer an Application Virtual Network

Welcome to the Create and Peer an Application Virtual Network lab. In this lab, we will cover three objectives: 1. Create an Application VNet using the VNet module 2. Peer the Application VNet with the Hub VNet 3. Confirm traffic flow between VNets By the end of this lab, you will have successfully created an Azure virtual network using the VNet module from the public registry and peered the virtual network with another virtual network in the same subscription.

Azure icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 24, 2025
Duration
30m

Contact sales

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

    Create an Application VNet using the VNet module

    In this objective, you will create an application virtual network using the VNet module and the resource group provided by the lab. The network should use the 10.42.0.0/16 address space, and the web and app subnets should both use 24-bit subnets from that address space.

    1. Log into the Azure CLI using the lab credentials
    2. Retrieve the name of the resource group used for this lab:
    az group list --query [].name
    
    1. Create a Terraform configuration using the azurerm provider: provider.tf
    provider "azurerm" {
      features {}
      skip_provider_registration = true
    }
    
    1. Configure the lab provided resource group as a data source: main.tf
    data "azurerm_resource_group" "main" {
      name = var.resource_group_name
    }
    
    1. Use the VNet module to create a virtual network with two subnets. Create and add additional input variables and Terraform files as needed.
    2. Deploy the virtual network to Azure using Terraform
  2. Challenge

    Peer the Application VNet with the shared VNet

    In this objective, you will peer the application virtual network you created in the previous objective with the existing Hub virtual network generated by the lab. The peering should not provide gateway transit or forwarded traffic.

    1. Retrieve the name of the Hub virtual network:
    az network vnet list --query [].name
    
    1. Add a azurerm_virtual_network data source to your configuration
    2. Create azurerm_virtual_network_peering resources for each direction of the peering connection
    3. Apply the updated configuration to your environment
  3. Challenge

    Confirm traffic flow between VNets
    1. Check on the peering connections from the command line:
    az network vnet peering list --resource-group RESOURCE_GROUP_NAME --vnet-name HUB_VNET_NAME
    az network vnet peering list --resource-group RESOURCE_GROUP_NAME --vnet-name APP_VNET_NAME
    
    1. Log into the Azure portal and visually confirm peering connectivity
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