In this project, my goal was to pair two virtual networks within the same region, ensuring they were connected and that resources could communicate with each other.
- Azure Portal
- CLI
I already have a virtual network named Vnet1 which I planned to peer with a new virtual network named vnet2 that I needed to create.
I started the creation of vnet2 using the CLI and made sure that the IP address space did not overlap with Vnet1’s:

I then verified the creation of vnet2 in the portal:

I then started the creation of a virtual machine (vm3) within the virtual network (vn2) using the CLI:

I then confirmed the creation of vm3 in the portal:

the next step was peering the virtual networks. in the portal, I went to vnet 2 and created a peering between vnet2 and Vnet1:

I named the peering MainVnetPeering and the peering link name Vnet1-to-vnet2. I selected both “Allow 'vnet2' to access 'Vnet1’” and “Allow 'Vnet1' to access 'vnet2’”:

I then made sure the peering status was connected:
Once the peering was complete I connected to vm3 in the portal via native RDP and followed the prompts:




Once i was connected to vm3 i pinged VM1 which is hosted within vnet1 using its private IP address, which was 10.1.0.4:

After pinging VM1 from vm3 I attempted to connect to VM1 from vm3 by running the following command mstsc /v:10.1.0.4:

The connection was successful, so then I filled in VM1 credentials and followed the prompts:


I successfully connected to VM1 from vm3 and reached the Goal of this project:
