DEV Community

Cover image for Creating an Azure Virtual Network with subnets
Akinsooto Abidemi
Akinsooto Abidemi

Posted on

Creating an Azure Virtual Network with subnets

Setting up virtual networking in Azure involves creating and configuring an Azure Virtual Network (VNet), which allows you to securely connect Azure resources to each other.

Here's a step-by-step guide to setting up virtual networking in Azure:

Step 1: Sign in to the Azure Portal:
Go to portal.azure.com

Step 2: Create a Virtual Network:

  • In the Azure portal, click on Create a resource.
  • In the search box, type Virtual Network and select it.
  • Click on Create.

Image description

Step 3: Configure the Virtual Network:

  • Basics: Provide the necessary details such as Subscription, Resource group (you can create a new one or use an existing one), and Name for your VNet.
  • Region: Select the region where you want to deploy your VNet.

Image description

Step 4: Click on Next - IP Addresses:
Address space: Define the IP address range for your VNet. We will be using 192.148.30.0/26 in this article.

Image description

Note: If you are creating more than 1 subnet, click on Add IPV4 Address space.
You can also delete or edit the default subnet to add yours.
Image description

Step 5: Create Subnets

  • In the Subnets tab, click on + subnet.

Image description

  • Enter your subnet name and enter your IPV4 address range which is 192.148.30.0/26, starting address and size.

Image description

Image description

Note: You can create multiple subnets by repeating the above step.

We will be creating 4 subsets in this post.
Below image is another sample of the subnet i created using SALES as the name.

Image description

Also note that the IPv4 address range and starting address will change.
After adding your subnets, click Review + Create.

Image description

Then click on Create.

Image description

Click on Go to resources when deployment is done.
Image description
From the Overview page, navigate to the subnets from the settings pane.

Image description

I hope this guide provides an overview of setting up a virtual network in Azure.

Top comments (0)