Routing between resource groups

CG 0 Reputation points
2024-03-12T15:26:05.6133333+00:00

I am having an issue routing between Resource Groups/Subscriptions. I have VMs in separate resource groups/subscriptions that will not communicate. The IP Flow says the rules are good both ways. I have a route to the vnet and they are peered with each other and the peering says connected. Am I missing something simple here?

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,670 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ben Gimblett 4,550 Reputation points Microsoft Employee
    2024-03-12T15:57:52.93+00:00

    Hi - thanks for the question. Resource groups(s) and Subscription(s) are organisational, billing and control plane access boundaries

    From a VNET perspective it's the peering that matters (for intra vnet communication on the private path). Now that being said if you're using different subscriptions (or tenants) you need to check the permissions - but you stated the peering is up and working which implies you did have permission.

    In addition remember two peering links are required A=>B and B=>A https://learn.microsoft.com/en-us/azure/virtual-network/tutorial-connect-virtual-networks-portal#create-virtual-network-peer

    To begin with it would be a good idea to check the troubleshooting guide for peering here https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-troubleshoot-peering-issues#configure-virtual-network-peering-between-two-virtual-networks

    Once you're happy with the peering the next thing to check is the Virtual network interface on each VM. Check the routes advertised on each.
    https://learn.microsoft.com/en-us/azure/virtual-network/diagnose-network-routing-problem#diagnose-using-azure-portal
    Can you see a route advertised on VM-A nic towards VNET-B and visa versa for the other VM? Are there any other routes advertised which may be affecting the network traffic ?

    Also check the network security groups (NSGs) if you have them. This can also be seen on the virtual network interface under "effective security rules". Could be an NSG rule is blocking traffic and this could apply in either direction.


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.