You have an Azure subscription that contains the virtual networks shown in the following table:
| Virtual Network | Address Space | Resources Deployed |
|---|---|---|
| `VNet-Hub` | `VPNGW1` (VPN Gateway), `NVA1` (Network Virtual Appliance at ) | |
| `VNet-Spoke1` | `VM1` (Virtual Machine at ) | |
| `VNet-Spoke2` | `VM2` (Virtual Machine at ) |
An on-premises network () is connected to `VPNGW1` via a Site-to-Site VPN connection. IP forwarding is enabled on the network interface of `NVA1`.
You configure the following virtual network peering connections:
1. `Peering-Hub-Spoke1` between `VNet-Hub` and `VNet-Spoke1`
2. `Peering-Hub-Spoke2` between `VNet-Hub` and `VNet-Spoke2`
The peerings are currently configured with the following settings:
- On both peerings, the hub-side settings have 'Traffic forwarded from remote virtual network' set to Block, and 'Use this virtual network's gateway or Route Server' set to Block (disabled).
- On both peerings, the spoke-side settings have 'Traffic forwarded from remote virtual network' set to Block, and 'Use the remote virtual network's gateway or Route Server' set to Allow (enabled).
You associate route tables to the subnets in `VNet-Spoke1` and `VNet-Spoke2` to route traffic destined for the opposite spoke to `NVA1` ().
You need to ensure that:
1. `VM1` and `VM2` can communicate with each other through `NVA1`.
2. Both `VM1` and `VM2` can access the on-premises network through `VPNGW1`.
Which configuration changes should you perform?
- Enable 'Use this virtual network's gateway or Route Server' on the hub-side peerings, and enable 'Traffic forwarded from remote virtual network' on the spoke-side peerings.Cevap
- BCreate a direct virtual network peering between `VNet-Spoke1` and `VNet-Spoke2`, and configure both sides to allow gateway transit.
- CEnable 'Traffic forwarded from remote virtual network' on the hub-side peerings, and enable 'Use this virtual network's gateway or Route Server' on the spoke-side peerings.
- DEnable 'Traffic forwarded from remote virtual network' on both the hub-side and spoke-side peerings, and disable 'Use the remote virtual network's gateway or Route Server' on the spoke-side peerings.