An administrator is preparing to deploy an Azure Firewall to control traffic for a virtual network named `VNet-01`. The virtual network has an address space of and contains a subnet named `Subnet-01` with an address prefix of .
You need to configure the virtual network to support the Azure Firewall deployment, and ensure that all outbound traffic from `Subnet-01` to the internet is routed through the firewall.
Which configuration must be implemented?
- Create a subnet named `AzureFirewallSubnet` with an address prefix of at least , and associate a route table with `Subnet-01` that has a route to with a next hop type of Virtual appliance pointing to the firewall's private IP address.Answer
- BCreate a subnet named `AzureFirewallSubnet` with an address prefix of at least , and associate a route table with `Subnet-01` that has a route to with a next hop type of Virtual network gateway pointing to the firewall's private IP address.
- CCreate a subnet named `FirewallSubnet` with an address prefix of at least , and associate a route table with `Subnet-01` that has a route to with a next hop type of Virtual appliance pointing to the firewall's private IP address.
- DCreate a subnet named `AzureFirewallSubnet` with an address prefix of at least , and associate a Network Security Group (NSG) with `Subnet-01` containing a custom outbound rule that denies all traffic to except when the destination is the firewall's private IP address.
Answer
Create a subnet named `AzureFirewallSubnet` with an address prefix of at least , and associate a route table with `Subnet-01` that has a route to with a next hop type of Virtual appliance pointing to the firewall's private IP address.
To route outbound subnet traffic through Azure Firewall, a subnet named `AzureFirewallSubnet` with a prefix of at least must exist, and a route table with a default route of pointing to the firewall's private IP using the Virtual appliance next hop type must be associated with the source subnet.
Step-by-Step Solution
Key Concept
Azure Firewall deployment requires a dedicated `AzureFirewallSubnet` of at least and a User-Defined Route (UDR) pointing to its private IP with the Virtual appliance next hop type to route subnet traffic through it.