How do I peer vnets in different subscriptions?

Bon Macalindong 65 Reputation points
2024-06-17T17:13:01.2+00:00

I've been doing some samples where I peer two vnets in different subscriptions and regions. I was able to peer my vnets and I can see that they are indeed peered.
User's image

To simulate the scenario, I created two vms in their respective regions using the vnets I peered. However, doing a simple ping is not working which signifies they are not connected. Did I miss anything in my setup? For reference, I'm following this MS Docs.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,991 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,505 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andreas Baumgarten 111.1K Reputation points MVP
    2024-06-17T17:18:40.5233333+00:00

    Hi @Bon Macalindong ,

    if the VMs in the 2 vNets/subnets are Windows VMs did you allow ICMP in the OS firewalls on both VMs?

    Are there any Network Security Groups involved associated with the subnets or/and VMs?

    No overlapping IP address ranges in the vNets?

    You could check the effective routes as well: Diagnose a virtual machine routing problem


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.