How to Set Up an Azure Virtual Network
oluoma stella onyeukwa

oluoma stella onyeukwa @oluoma_stella

About: Cloud Engineer | DevOps Enthusiast | FinOps

Location:
Lagos, Nigeria.
Joined:
Sep 1, 2024

How to Set Up an Azure Virtual Network

Publish Date: Dec 17 '24
1 1

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.

1

  • Select + Create.

2

  • Assign to a Resource group RG11.

  • Set the name as app-vnet.

  • Region to East US.

3

  • The IPv4 address space is 10.1.0.0/16.

  • This virtual network requires two subnets, frontend and backend.

  • Set the Subnet address range of the frontend subnet to 10.1.0.0/24.

  • Click Add to save.

new 1

  • 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.
.

new 3

new 4

new 5

new 6

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.

11

  • 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.

12

13

14

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.

15

  • Set the Remote peering link name to app-vnet-to-hub.

  • The Virtual network peered to hub-vnet.

16

  • Set the local virtual network peering link name to hub-to-app-vnet.
    17

  • Leave all other settings as their defaults.

  • Select Add to create the virtual network peering.

18
Once the deployment completes, verify the Peering status is Connected.

19

Back to top

Comments 1 total

Add comment