DEV Community

Cover image for Creating An Azure Virtual Network(VNET) And Multiple Subnets: A Step-By-Step Beginner's Guide
olakunle makanjuola
olakunle makanjuola

Posted on

Creating An Azure Virtual Network(VNET) And Multiple Subnets: A Step-By-Step Beginner's Guide

Introduction:
A virtual Network (VNet) is a logically isolated private network you create inside Azure. Virtual Network (VNET) is one of the essential building blocks of Microsoft Azure networking architecture and also the foundation of your networking setup.

Virtual Network allows resources running in Microsoft Azure, like Virtual Machines, Storage Accounts, Applications, to communicate with each other, internet, and even on-premises network environments.

A Subnet is a subdivision of your VNet. It allows you to divide your network into smaller, logical sections and assign different resources to different sections based on their purpose.

Subnets are logical segments of a Virtual Network which assist in organizing and securing network resources. In this project, I have designed an Azure Virtual Network with three separate Subnets.

Objectives

The objectives of this project are to:

  • Create an Azure Virtual Network (VNet)
  • Configure an address space for the VNet
  • Create three separate subnets
  • Understand Azure networking fundamentals
  • Document the deployment process

Prerequisites

Before starting, ensure you have:
.An active Azure Subscription
.Access to Azure Portal
.Internet Connection
.Appropriate permissions to create Azure resources

Azure Portal:

https://portal.azure.com

Architecture Overview
Azure Virtual Network (10.0.0.0/16)

├── Subnet-1 (10.0.1.0/24)

├── Subnet-2 (10.0.2.0/24)

└── Subnet-3 (10.0.3.0/24)

Step 1: Sign in to Azure Portal
Open Azure Portal.
https://portal.azure.com.

  • Sign in using your Azure credentials.

Step 2: Create a Resource Group

  • Search for Resource Groups on search bar and click on Resource group from the dropdown

  • Click on Create

  • Type the Resource group name, select the region and click Next

  • Apply tags to your resources to logically organize them by categories and click Next

  • Review the resources group and click on Create

  • Click on Resource Group on the left to bring out the resource group you created

Step 3: Create a Virtual Network
1.Click on Resource group created and right on the Resource Group page Search for Virtual Network on search bar and click on Virtual Network from the dropdown

  • Click on +Create(With a plus sign)

2. Define Basic Settings
Subscription: Select your subscription
Resource group: Choose an existing resource group or create a new one.
Region: Select the same region as your resource group
Virtual Network Name: Provide a name for the VNet.
Click on Next and Next under the Security

3. Define IP Address Space
Enter the IPV4 address 10.0.0.0/16 space for your virtual network. The image below shows that we can have 65,536 IP addresses within this network.

_NOTE: Whenever you create your VNet there is a subnet that comes with it defaultly. We delete the subnet and create our own Subnet
_


- Click Next -> Review + Create

-4. Click on Create, the deployment will be submitted, and the VNet will be created
_Click on Go To Resources and you will see the the Created VNet
_


_Step 4: Configure Subnets _
Now, let's configure the Three subnets within the virtual network:

  • Type Subnet on the search bar and click on Subnet

- Click + Add subnet to define each subnet

Configure each subnet as follows:
Subnet Name: Enter a name for the subnet (e.g., Subnet1, Subnet2,Subnet3, etc.).
Subnet Address range: Specify the subnet range within the virtual network address space (10.0.0.0/24). Ensure each subnet range is within the /24 address space 10.0.0.0 - 10.0.0.255)

- Creation of Subnet 1

- Creation of Subnet 2

- Creation of Subnet 3

To have a view of the subnets created, click on Settings on the left pane and then on Subnets

Congratulations! You have successfully created an Azure virtual network with Three subnets using the address space (10.0.0.0/24)

Top comments (0)