What is a virtual network?
A virtual network (VNet) is a network that exists purely in software, allowing for the establishment of isolated, secure, and adaptable networking environments within a data center or cloud architecture. It enables devices, services, or systems to interact as if they were linked over a physical network, even if they are geographically separated or housed in virtual environments.
Tasks
1. Create hub and spoke virtual networks and subnets
Sign in to the Azure
portal
.Search for and select Virtual Networks.
- Select + Create.
Assign to a Resource group RG11.
Set the name as
app-vnet
.Region to East US.
The IPv4 address space is 10.1.0.0/16.
This virtual network requires two subnets,
frontend
andbackend
.Set the Subnet address range of the frontend subnet to 10.1.0.0/24.
Click Add to save.
Select Add a subnet for the backend subnet.
Set the Subnet address range to 10.1.1.0/24.
Click Add to save.
Note:Leave all other settings as their defaults. When finished, select Review + create and then Create.
.
2. Create the Hub-vnet virtual network configuration. This virtual network has the firewall subnet.
Search for and select Virtual Networks again.
Select + Create.
Assign to the same Resource group as app-vnet RG11.
Set the Name as
hub-vnet
.Region to East US as well.
Click Next to the IP addresses section.
The IPv4 address space is 10.0.0.0/16.
Select Add a subnet.
Name the subnet AzureFirewallSubnet.
.Set the Subnet address range to 10.0.0.0/26.
Click Add to save.
Select Review + create and then Create.
3. Configure a peer relationship between the virtual networks
Search for and select the
app-vnet
virtual network.In the Settings blade, select Peerings.
+ Add **a peering between the two **virtual networks.
Set the Remote peering link name to
app-vnet-to-hub
.The Virtual network peered to
hub-vnet
.
Set the local virtual network peering link name to
hub-to-app-vnet
.
Leave all other settings as their
defaults
.Select Add to create the virtual network peering.
Once the deployment completes, verify the Peering status is Connected.
Top comments (1)
Great resource!