An architect is designing a virtual network topology in Azure to support a hybrid cloud environment. The design includes a hub virtual network named `vnet-prod-hub` and a spoke virtual network named `vnet-prod-spoke`. The hub virtual network contains a virtual network gateway that connects to the company's on-premises office. A virtual network peering connection is established between `vnet-prod-hub` and `vnet-prod-spoke`. You need to ensure that virtual machines in `vnet-prod-spoke` can route their traffic to the on-premises office by using the virtual network gateway in `vnet-prod-hub`. What peering setting should you enable on the virtual network peering configuration in `vnet-prod-spoke`?
- Enable 'Use the remote virtual network's gateway' on the peering configuration from the spoke to the hub.Answer
- BEnable 'Use this virtual network's gateway' on the peering configuration from the spoke to the hub.
- CCreate a User Defined Route (UDR) in the spoke subnets that overrides the default local virtual network routing paths.
- DConfigure individual Network Security Group (NSG) outbound rules for each on-premises destination IP range.
Answer
Enable 'Use the remote virtual network's gateway' on the peering configuration from the spoke to the hub.
To allow resources in a spoke virtual network to use a gateway in a peered hub virtual network, you must enable the 'Use the remote virtual network's gateway' setting on the spoke virtual network's peering configuration. This configures the system routes in the spoke to route traffic destined for on-premises networks through the hub gateway.
Step-by-Step Solution
Key Concept
Virtual network peering gateway transit allows peered virtual networks to share a gateway for hybrid connectivity, removing the need to deploy gateways in every spoke.
Estimated Time:1m 0s