You have an Azure virtual network named `Hub-VNet` that contains an Azure Firewall. The firewall is configured with a private IP address of . You also have a peered virtual network named `Spoke-VNet` that contains a subnet named `Subnet-App`. You associate a new route table named `RouteTable-Spoke` with `Subnet-App`. You need to ensure that all outbound internet traffic from `Subnet-App` is routed through the Azure Firewall in `Hub-VNet`.
Which route should you add to `RouteTable-Spoke`?
- A route with a destination address prefix of , a next hop type of Virtual appliance, and a next hop IP address of .Answer
- BA route with a destination address prefix of , a next hop type of Virtual network gateway, and a next hop IP address of .
- CA route with a destination address prefix of and a next hop type of Internet.
- DNo custom route; instead, enable the Use Remote Gateways option on the peering connection from `Spoke-VNet` to `Hub-VNet`.
Answer
A route with a destination address prefix of , a next hop type of Virtual appliance, and a next hop IP address of .
To route all outbound internet traffic from a spoke subnet to an Azure Firewall in a hub VNet, you must associate a route table with the spoke subnet and add a default route (). Because Azure Firewall acts as a network virtual appliance, the next hop type must be configured as 'Virtual appliance' and the next hop IP address must be the private IP address of the firewall ().
Step-by-Step Solution
Key Concept
Configuring custom routing (User-Defined Routes) to direct traffic through Azure Firewall.
Estimated Time:1m 30s