Step-by-Step Guide: Creating an Azure Virtual Network with Four Subnets Using Custom Address Space

Step-by-Step Guide: Creating an Azure Virtual Network with Four Subnets Using Custom Address Space

Creating an Azure Virtual Network with Four Subnets Using Address Space 192.148.30.0/26

Azure Virtual Networks (VNet) are the building blocks for establishing secure, private networks in Microsoft Azure. In this tutorial, you’ll learn how to create a virtual network with four subnets using the address space 192.148.30.0/26. Dividing your VNet into subnets allows you to isolate workloads and manage traffic effectively, enhancing security and performance.

This blog will walk you through the process step by step.


Step 1: Log in to the Azure Portal

  1. Open your web browser and navigate to Azure Portal.

  2. Enter your Azure account credentials to log in.


Step 2: Navigate to Virtual Networks

  1. In the search bar at the top of the Azure Portal, type "Virtual Networks" and select the Virtual Networks service from the results.

  2. Click on the + Create button to start configuring your virtual network.


Step 3: Configure the Basics

  1. In the Basics tab of the Virtual Network creation wizard:

    • Subscription: Select the appropriate subscription.

    • Resource Group: Choose an existing resource group or create a new one (e.g., VN-rg).

    • Name: Provide a name for your virtual network, such as VN-instance.

    • Region: Select the Azure region where the VN-instance will be deployed.

  2. Click Next: IP Addresses.


Step 4: Configure the Address Space

  1. Under the IP Addresses tab:

    • Add the address space 192.148.30.0/26. This address space provides 64 IP addresses, which we’ll divide into four subnets.

  2. Scroll down to the Subnets section.


Step 5: Create Four Subnets

We’ll divide the address space into four equal subnets, each with 16 IP addresses:

  • finance-department: 192.148.30.0/28

  • marketing-department: 192.148.30.64/28

  • purchasing-department: 192.148.30.128/28

  • IT-department: 192.148.30.192/28

Steps to Add Subnets:

  1. Click + Add subnet under the Subnets section.

  2. For Subnet Name, enter finance-department.

  3. For Subnet Address Range, enter 192.148.30.0/28.

  4. Click Add.

  5. Repeat the process to add marketing-department, purchasing-department, and IT-department, using their respective address ranges.


Step 6: Review and Create

  1. Click Next: Security, then Next: Tags, and finally, Review + Create.

  2. Review the summary of your configuration, ensuring all details are correct.

  3. Click Create to deploy your virtual network.


Step 7: Verify Your Virtual Network

  1. Once the deployment is complete, navigate to the Virtual Networks service in the Azure Portal.

  2. Select the virtual network you just created (e.g., VN-instance).

  3. Go to the Subnets tab and verify that all four subnets are listed:

    • finance-department: 192.148.30.0/28

    • marketing-department: 192.148.30.64/28

    • purchasing-department: 192.148.30.128/28

    • IT-department: 192.148.30.192/28


Step 8: Next Steps

You’ve now successfully created a virtual network with four subnets using the address space 192.148.30.0/26. To take your setup further:

  • Associate Network Security Groups (NSGs): Protect each subnet with security rules.

  • Integrate with Services: Attach virtual machines, app services, or other Azure resources to these subnets.

  • Set Up Routing: Define custom routes if needed for advanced traffic control.


Conclusion

Creating a well-structured Azure Virtual Network with subnets helps optimize resource segmentation, security, and traffic management. Following this guide ensures you can design and deploy a scalable network foundation tailored to your needs.

If you have any questions or feedback, feel free to drop a comment below. Happy networking!


Pro Tip: Always plan your address spaces and subnet sizes carefully to avoid conflicts and ensure scalability.