Guide on creating a Virtual Network with Subnets in Microsoft Azure
Tags: virtualnetwork, azure, subnet
Published: 2024-07-13 12:11:14

Here’s a detailed guide for creating an Azure Virtual Network with Subnets using the address space 10.1.0.0/16 Follow these steps in the Azure portal, with accompanying screenshots to assist you through the process:

**Step 1: Sign In to the Azure Portal**
A. **Open Your Web Browser**: Navigate to the Azure Portal.
B. **Sign In:** Use your Azure account credentials to log in.

**Step 2: Create a Resource Group (if necessary)**
If you don’t have an existing resource group for your virtual network, follow these steps to create one:
1. **Access Resource Groups:** On the left sidebar of the Azure Portal, click on **Resource groups**.
2. **Add a New Resource Group**: Click on the **+ Create button** at the top of the Resource Groups page.
3. **Fill in the Details**:
**Subscription**: Select the appropriate subscription.
 **Resource Group Name**: Enter a name for the new 
 resource group.
 **Region**: Choose the region where you want the resource group to be located.
 Click **Review + create**, then **Create** to finalize the creation of the resource group.

**Step 3: Create a Virtual Network**
To create the Virtual Network with the specified address space and subnets, follow these steps:
1. **Go to the Azure Portal Home Page**: Open the Azure Portal.
2. **Navigate to Virtual Networks**: Click on Virtual networks from the left-hand menu.
3. **Start the Virtual Network Creation Process**:  Click the **+ Create** button at the top of the Virtual Networks page.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zw2hzq4trg9wobqkd15b.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qrz80mr0e911xb7y23wm.png)

1. **Subscription**:
Select the Azure subscription you will use for this Virtual Network.
2. **Resource Group**:
Choose the existing resource group or create a new one for your Virtual Network.
3. **Name**:
Enter a unique name for your Virtual Network.
4. **Region**:
Select the Azure region where the Virtual Network will be deployed.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y8acqpfk9t6fxm6vijf7.png)

**Enter Address Space**:
Type 10.1.0.0/16 for the IPv4 address space.

**Number of Addresses**:
This address range provides a total of 
65,536 addresses IP addresses for the Virtual Network.
The following image shows that 10.1.0.0/16 provides 
65,536 addresses addresses within this network.

**Visual Aid**
Below is an illustration of how the 10.1.0.0/16 address space is organized:

**IP Range**	**Total Addresses**
10.1.0.0 - 10.1.0.255	65,536 addresses


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jnjsr42947n0ngjkysdx.png)

**Step 4:  Detailed Instructions to Configure Subnets**
**Navigate to Subnets**:
In the Virtual Network settings, find and select the **Subnets** tab.
**Add a Subnet**:
Click **+ Add subnet** to start configuring each subnet.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mkuu81tlvoujst0mfbdq.png)

**Subnet Name**:
Provide a unique name for the subnet, such as Subnet-1, Subnet-2, etc.
**Subnet Address Range**:
Define the IP range for the subnet within the 10.1.0.0/16 address space. For example, you might use 10.1.1.0 - 10.1.1.255 for one subnet and 10.1.3.0 - 10.1.3.255 for another. Ensure the ranges are within 10.1.0.0 - 10.1.0.255
**Add the Subnet**:
After configuring the details, click **Add** to create the subnet.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fts5quhjlwymdqhk5c19.png)

**Step 5: Review and Create**
Once you’ve added all four subnets, click **Review + create** to verify the configuration and click **Create** to deploy the Virtual Network and its subnets.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4256ogl4jxr1mpr94r7r.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2rmi69vbsr9vyo8yey1t.png)

**Step 6: Deployment Progress**
**Wait**:
Allow time for Azure to complete the deployment process. This typically takes a few minutes.
**Step 7: Verification**
1. **View the Resource**:
Click **Go to resource** to access the Virtual Network after deployment finishes.

2. **Verify Subnets**:
Go to **Settings** and select **Subnets** to confirm that the subnets are set up correctly.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jxapa9oa7a96bugd8uqy.png)

Congratulations!
You have successfully created an Azure Virtual Network with four subnets using the address space 10.1.0.0/16.
Alternative Clear and Precise Versions.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/971jff92dc52c4rlylgh.png)

By completing these steps, you will set up the basic configuration for your Virtual Network.