This content originally appeared on DEV Community and was authored by Abisola Adesegun
Outline
Step 1: Introduction
Step 2: Log in to Azure Portal
Step 3: Create a Virtual Network
Step 4: Configure the Basics Tab
Step 5: Configure IP Addresses Tab
Step 6: Configure Subnet
Step 7: Create Virtual Network
Step 8: Verification of Azure Virtual Network with subnets
Step 1: Introduction
An Azure Virtual Network (VNet) is a network or environment that can be used to run VMs and applications in the cloud. When it is created, the services and Virtual Machines within the Azure network interact securely with each other.
Virtual network concepts
- Address space: When creating a virtual network, you must specify a custom private IP address space using public and private (RFC 1918) addresses. Azure assigns resources in a virtual network a private IP address from the address space that you assign. For example, if you deploy a VM in a virtual network with address space, 10.0.0.0/16, the VM is assigned a private IP like 10.0.0.4.
- Subnets:
Subnets enable you to segment the virtual network into one or more subnetworks and allocate a portion of the virtual network's address space to each subnet. You can then deploy Azure resources in a specific subnet. Just like in a traditional network, subnets allow you to segment your virtual network address space into segments that are appropriate for the organization's internal network. Segmentation improves address allocation efficiency. You can secure resources within subnets using Network Security Groups.
Step 2: Log in to Azure Portal
Go to Azure Portal and log in with your Azure account credentials.
Step 3: Create a Virtual Network
- In the "Search the Marketplace box", type "Virtual Network" and select it from the results.
- Click "Create" to start the Virtual Network creation process.
Step 4: Configure the Basics Tab
Subscription: Choose your Azure subscription.
Resource Group
: Create or select an existing resource group or create a new one.Name:
Enter a name for your virtual network.Region: Choose the Azure region where you want to create the VNet.
Step 5: Configure IP Addresses Tab
- Enter the address space for your VNet, such as 192.148.30.0/26.
- Click "+ Subnet" to add a new subnet.
Step 6: Configure Subnet
Name: Enter a name for your subnet.
Address range (CIDR block): Enter the address range for the subnet, such as 192.148.30.0/26.
Click "Add" to create the subnet.
Repeat the above steps to create additional subnets within the same VNet, adjusting the address ranges accordingly.
Security Tab (Optional):
Configure network security options such as DDoS Protection and Firewall.Tags Tab (Optional): Add tags to your VNet for better organization.
Review + Create Tab: Review your configuration and click "Create" to deploy the VNet.
Step 7: Create Virtual Network
- Click on Create
Step 8: Verification of Azure Virtual Network with subnets
Go to the "Virtual networks" section in the Azure portal.
Select the newly created VNet.
- Verify that the VNet and its subnets are listed with the correct configurations.
This content originally appeared on DEV Community and was authored by Abisola Adesegun
Abisola Adesegun | Sciencx (2024-07-12T20:55:01+00:00) Creating An Azure virtual Network with Subnets. Retrieved from https://www.scien.cx/2024/07/12/creating-an-azure-virtual-network-with-subnets/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.