Skip to main content

Command Palette

Search for a command to run...

Create Azure Virtual Network (VNet)

Updated
4 min read
Create Azure Virtual Network (VNet)
C

Computer Scientist/ Cloud Engineer/DevOps Engineer / Technical writer

Overview of Azure Virtual Network

Azure Virtual Network (VNet) is a versatile and powerful service that provides flexibility, security, and scalability required to support a wide range of applications and workloads in the cloud. It enables users to securely connect Azure resources to each other, to the internet, and to on-premises networks. It serves as the backbone for networking within the Azure ecosystem, offering a range of features and capabilities that facilitate secure and efficient communication.

Key Features and Capabilities
  • Isolation and Segmentation: VNets provide logical isolation within the Azure environment, allowing users to create multiple isolated networks. Each VNet is isolated from other VNets, providing a secure environment for deploying resources.

  • Subnets: A subnet or subnetwork is a network inside a network. VNets can be divided into subnets to enable better organization and management of resources. Subnets can also be used to apply network security policies and route network traffic.

  • Network Security Groups (NSGs): NSGs allow users to control inbound and outbound traffic to and from network interfaces, VMs, and subnets. They act as virtual firewalls, providing granular control over network traffic.

  • Azure Firewall: This is a managed, cloud-based network security service that protects Azure Virtual Network resources. It allows users to define, enforce, and log application and network connectivity policies.

  • VPN Gateway: This service enables secure cross-premises connectivity between the VNet and on-premises infrastructure through a secure VPN tunnel. It supports both site-to-site and point-to-site configurations.

  • ExpressRoute: Provides a dedicated, private connection between Azure datacentres and on-premises infrastructure or colocation environments. It offers higher security, reliability, and faster speeds compared to typical internet connections.

  • Peering: VNet peering allows VNets to communicate with each other directly through the Azure backbone network, enabling low-latency, high-bandwidth connectivity between VNets in the same region or across regions.

  • Load Balancing: Azure Load Balancer and Application Gateway provide scalable and high-availability network services. They distribute incoming network traffic across multiple servers to ensure reliability and optimal performance.

  • DNS Services: Azure DNS hosts domain names and resolves DNS queries using Microsoft’s global network of name servers, ensuring high performance and availability.

  • DDoS Protection: Azure DDoS Protection safeguards applications by scrubbing traffic at the Azure network edge before it can affect service availability.

Follow the steps below to create a virtual network and subnets.

Steps to Creating Azure Virtual Network

In this guide will create Azure virtual network with four subnets using the address space 192.148.30.0/26 for company XYZ. The four chosen subnets represent four departments in the company which are ICT, Sales, Audit, and Account.

Step 1: Log in to the Azure Portal
  • On your web browser, type portal.azure.com to go to the Azure Portal login page.

  • Log in with your Azure account credentials or click here to create a free one if you do not have an account yet.

Step 2: Create a Virtual Network
  • On the Azure Portal search bar, type Virtual Network and select Virtual Network from the list.

Image description

  • click Create.

Image description

Step 3: Configure the Virtual Network Basics

In the Basics tab, fill in the following details:

  • Subscription: Select the subscription to use.

  • Resource group: Create a new resource group or select an existing one.

  • Name: Enter a name for the VNet (example: XYZ-VNet).

  • Region: Select the region where you want to create the VNet.

Step 4: Configure the Address Space
  • Click on the IP Addresses tab.

  • Under IPv4 address space,

  • Enter 192.148.30.0 in the Address space field and select /26 on the CIDR field then delete the default subnet created and add your subnets.

    Image description

Step 5: Add Subnets

add four subnets for ICT, Sale, Audit and Account department
For ICT Subnet:
Under the Subnets section of the address space,

  1. click on + Add subnet. On the Add subnet screen,

    • enter or select values for the subnet settings. Enter the following details:

      Subnet name: ICT

      Starting address: 192.148.30.0

    • size: select /28

  2. Click Add

    Image description

For sales Subnet:

  1. click on + Add subnet and input the following.

    • Subnet name: sales

    • starting address: 192.148.30.16

    • Size:/28

  2. Click Add Do the same for the other two subnets with the following details:

For Audit Subnet:

  1. click on + Add subnet and input the following.

    • Subnet name: Audit

    • starting address: 192.148.30.32

    • Size:/28

  2. Click Add

For account Subnet:

  1. click on + Add subnet and input the following.

    • Subnet name: Account

    • starting address : 192.148.30.48

    • Size:/28

  2. Click Add

Step 6: Review and Create the VNet

Once all subnets are added,

  • click on the Review + create button at the bottom of the page.

Image description

  • Review the settings to ensure everything is configured correctly.

  • Click Create to deploy the Virtual Network.

Step 7: Verify the Deployment
  • After the deployment is complete, click Go to resource to see the overview.

    Image description

Verify that the subnets are created with the correct address ranges.

  • On the left pane, click setting

  • select subnets

Image description

Step 8: Clean Up (Optional)
Clean up after practice by deleting the resources to prevent unnecessary charges.

More from this blog

Celestina Odili

30 posts

This blog explores Cloud Computing and DevOps with a focus on practical, hands-on learning and real-world projects.

I share tutorials and insights on tools like Azure, AWS, Terraform, Docker, Kubernetes, CI/CD pipelines, and Infrastructure as Code (IaC), breaking down complex concepts into simple, actionable steps.

You’ll also find my personal learning journey, experiments, and lab projects to help you follow along and build your own skills step by step.