An administrator configures three Azure virtual networks named `VNet1` (), `VNet2` (), and `VNet3` (). Virtual machines are deployed in the subnets of each virtual network to run active workloads. Peering is configured between `VNet1` and `VNet2`, and between `VNet2` and `VNet3`. The peering links have 'Allow forwarded traffic' enabled on both sides, but 'Allow gateway transit' and 'Use remote gateways' are disabled. No user-defined routes (UDRs) or virtual network gateways exist in any of the networks. Which of the following describes the network connectivity between the virtual machines?
- Virtual machines in `VNet1` can communicate with virtual machines in `VNet2`, and virtual machines in `VNet2` can communicate with virtual machines in `VNet3`, but virtual machines in `VNet1` and `VNet3` cannot communicate.Answer
- BVirtual machines in `VNet1`, `VNet2`, and `VNet3` can all communicate with each other because 'Allow forwarded traffic' is enabled on both peering connections.
- CVirtual machines in `VNet1` can communicate with virtual machines in `VNet3` only if the peering connections are configured to enable 'Use remote gateways'.
- DVirtual machines in `VNet1` and `VNet3` can communicate only if you create a shared Private DNS Zone and link it to both virtual networks.
Answer
Virtual machines in `VNet1` can communicate with virtual machines in `VNet2`, and virtual machines in `VNet2` can communicate with virtual machines in `VNet3`, but virtual machines in `VNet1` and `VNet3` cannot communicate.
The correct answer is correct because Azure Virtual Network Peering is strictly non-transitive. Direct peering connections allow virtual machines in VNet1 to talk to VNet2, and virtual machines in VNet2 to talk to VNet3, but do not allow traffic to flow from VNet1 through VNet2 to VNet3.
Step-by-Step Solution
Key Concept
Azure Virtual Network Peering is non-transitive, meaning that traffic cannot transit through a peered virtual network to reach another peered network unless transit routing (via Network Virtual Appliances or Virtual Network Gateways) is explicitly configured.