You have an Azure virtual network named VNet1 that contains two subnets named SubnetA (10.0.1.0/24) and SubnetB (10.0.2.0/24). A Network Virtual Appliance (NVA) with the IP address 10.0.2.4 is deployed in SubnetB. By default, system routes allow direct communication between the two subnets. You want to route all outbound internet traffic from SubnetA through the NVA in SubnetB. You create a route table and associate it with SubnetA. You add a route for the destination 0.0.0.0/0. Which next hop type should you configure in the route?
- AVirtual network gateway
- BInternet
- Virtual applianceAnswer
- DVirtual network
Answer
Virtual appliance
Selecting 'Virtual appliance' as the next hop type allows you to specify a private IP address (such as 10.0.2.4) belonging to a virtual machine or internal load balancer that acts as a firewall or router, directing the SubnetA traffic through the NVA.
Step-by-Step Solution
Key Concept
To redirect traffic to a Network Virtual Appliance (NVA), you must configure a User-Defined Route (UDR) with the next hop type set to 'Virtual appliance' and provide the NVA's private IP address.