Creating An Azure Virtual Network(VNET) And Multiple Subnets: A Step-By-Step Beginner's Guide
Source: Dev.to
Introduction: 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: 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)
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
Click on +Create(With a plus sign)
-
Define Basic Settings Subscription: Select your subscription
-
Define IP Address Space
_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
_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.).
-
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)