Creating an Azure Virtual Network with Subnets.
Tags: azure, powerfuldevs, subnets, networking
Published: 2024-07-12 05:02:25

   **Azure Virtual Networks is used to communicate with each other securely and privately. Azure Virtual Network enables secure communication between various Azure resources, the internet, and on-premises networks .** 

   To create this azure Virtual Networks with the four subnet using the address space 192.148.30.0/26.Here are the steps to create an Azure Virtual Network (VNet):

**1. Log in to the Azure portal.**

- Go to the [Azure portal](url) sign in with your Azure account.

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

**2. Navigate to the Virtual Networks page.** 

- Click on **"Virtual networks"** in the navigation menu.

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

- Click on the **"Create virtual network"** button.

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

- Enter basic details, Choose an Azure subscription.
- Create a new resource that you would like to use.

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

-Choose a name for the Virtual Network.
- Select a region were you like to deploy the virtual network.

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

**3. Configure IP addressing.**

- Enter the IPV4 address _192.148.30.0/26_ space for your virtual network. The image below shows that we can have 64 addresses within this network.

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

**4.Configure the subnet:** Enter a name for the subnet.

- Subnet address range: This is the range of IP address that can be assigned to devices within a specific subnet . Specify the subnet range within the virtual network address space`192.148.30.0/26`, Ensure each subnet range is within the /26 address space `(192.148.30.0 to 192.148.30.63).`

- Click **Add subnet.** 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f0avrirrgt65jpkuvhqn.png)
- 1st Subnet:_192.148.30.0/28 - 192.148.30.15/28_.
- 2nd Subnet:_192.148.30.16/28 - 192.148.30.31/28_.
- 3rd Subnet:_192.148.30.32/28 - 192.148.30.47/28_.
- 4th Subnet:_192.148.30.48/28 - 192.148.30.63/28_.

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

- When the 4 subnets are added **Review and create.**

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

**Step 5: Review and create.**

- Review the virtual network configuration. 

- Click **"Create"** to create the virtual network.

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

**Step 6: Verify creation.**

- Verify that your virtual network has been created successfully.

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

- Click on **Go resources** and navigate to the setting check the subnets we just created.

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

That's it! **You have successfully created an Azure Virtual Network** with four subnets. This VNet can now be used to deploy Azure resources, such as virtual machines, storage accounts, and more.

Note: This is just a general outline, and specific steps may vary depending on your Azure subscription and requirements.