An administrator configures two virtual network peerings: one between VNet-Core and VNet-App1, and another between VNet-Core and VNet-App2. Virtual machines are deployed in subnets across all three virtual networks. The administrator enables 'Allow forwarded traffic' on both peerings, but does not configure 'Use remote gateways' or 'Allow gateway transit'. Which of the following describes the default connectivity between VNet-App1 and VNet-App2?
- Virtual machines in VNet-App1 cannot communicate with virtual machines in VNet-App2 because virtual network peering is non-transitive.Answer
- BVirtual machines in VNet-App1 can communicate with virtual machines in VNet-App2 because 'Allow forwarded traffic' is enabled.
- CVirtual machines in VNet-App1 can communicate with virtual machines in VNet-App2 because peering automatically routes traffic transitively through VNet-Core.
- DVirtual machines in VNet-App1 can communicate with virtual machines in VNet-App2 only if 'Use remote gateways' is enabled on both peerings.
Answer
Virtual machines in VNet-App1 cannot communicate with virtual machines in VNet-App2 because virtual network peering is non-transitive.
Virtual network peering in Azure is non-transitive. This means that if VNet-App1 is peered with VNet-Core, and VNet-App2 is peered with VNet-Core, there is no automatic path for traffic to travel from VNet-App1 to VNet-App2 through VNet-Core. Enabling 'Allow forwarded traffic' only allows virtual machines in the peered network to receive traffic that did not originate from the peered network itself (such as from a virtual appliance), but it does not enable transitive routing between the two spokes.
Step-by-Step Solution
Key Concept
Azure Virtual Network Peering is non-transitive by default, meaning that spoke-to-spoke communication through a hub requires a router or virtual network gateway.