0
0
Azurecloud~30 mins

VNet creation and address space in Azure - Mini Project: Build & Apply

Choose your learning style9 modes available
VNet creation and address space
📖 Scenario: You are setting up a basic network in Microsoft Azure for a small company. This network will allow their virtual machines to communicate securely within a private space.
🎯 Goal: Create an Azure Virtual Network (VNet) with a specific address space to isolate and manage the company's cloud resources.
📋 What You'll Learn
Create a variable named vnet_name with the exact value MyCompanyVNet.
Create a variable named address_space with the exact value 10.0.0.0/16.
Define a resource block for an Azure Virtual Network using the variables vnet_name and address_space.
Add the location attribute with the value eastus to the Virtual Network resource.
💡 Why This Matters
🌍 Real World
Creating a Virtual Network is a fundamental step in setting up cloud infrastructure in Azure. It allows secure communication between resources.
💼 Career
Cloud engineers and architects frequently create and configure VNets to isolate and manage network traffic in Azure environments.
Progress0 / 4 steps
1
Create variables for VNet name and address space
Create a variable called vnet_name and set it to "MyCompanyVNet". Then create a variable called address_space and set it to ["10.0.0.0/16"].
Azure
Need a hint?

Use simple assignment to create the variables with the exact names and values.

2
Start defining the Azure Virtual Network resource
Create a dictionary called virtual_network with a key name set to the variable vnet_name. Also add a key address_space set to the variable address_space.
Azure
Need a hint?

Use a dictionary with keys exactly named name and address_space.

3
Add location to the Virtual Network configuration
Add a key location with the value "eastus" to the virtual_network dictionary.
Azure
Need a hint?

Add the location key-value pair inside the existing dictionary.

4
Complete the Virtual Network resource with type and properties
Create a dictionary called vnet_resource with keys: type set to "Microsoft.Network/virtualNetworks", name set to vnet_name, location set to "eastus", and properties set to a dictionary with key addressSpace set to a dictionary with key addressPrefixes set to address_space.
Azure
Need a hint?

Follow the Azure resource structure with nested dictionaries for properties and address space.