Lesson 3 of 3 Azure Firewall and Virtual WAN Security

Securing Azure Virtual WAN

This lesson explains secured virtual hubs and routing intent.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain why Virtual WAN needs a security design.
  • Describe a secured virtual hub.
  • Distinguish internet and private routing policies.
  • Identify the prerequisites of routing intent.

Virtual WAN in brief

Azure Virtual WAN is a managed networking service that joins branches, users and virtual networks through hubs that Microsoft operates. A virtual hub is a Microsoft-managed virtual network in a region. Spoke networks connect to the hub, branches connect through VPN or ExpressRoute, and users connect through point-to-site VPN. With the Standard SKU, hubs are connected to each other, which gives any-to-any transit across the Microsoft backbone.

That any-to-any connectivity is both the benefit and the risk: by default, everything can reach everything, and nothing inspects that traffic. A hub-and-spoke network designed by hand would use UDRs. In Virtual WAN, the customer does not manage a route table in the hub in the same way, so a different mechanism is needed.

Secured virtual hubs

Microsoft defines a secured virtual hub as a Virtual WAN hub with associated security and routing policies configured by Azure Firewall Manager. Azure Firewall is deployed in the hub, which means that a hub and a firewall are managed together. A firewall policy supplies the rules. A secured hub's firewall supports up to 80 public addresses per firewall in a standard deployment.

A network virtual appliance from a supported partner can also run in a hub, and security-as-a-service partners can be integrated. Azure Firewall Manager supports only Azure Firewall as a next hop for routing intent, so a partner solution is configured in the Virtual WAN experience.

True or false

Secured hubs and routing intent

Exam skills 2.3.3

Check how secured virtual hubs and routing intent work.

Log in to try this activity Interactive activities are free with an account.

Routing intent

Routing intent is the simple way to say that traffic must go through a security solution. Each hub can have up to one of each of the following policies, with a single next hop resource.

PolicyApplies toEffect
Internet traffic routing policyTraffic to the internetSpokes and branches send internet-bound traffic to the security solution, and the hub advertises a default route
Private traffic routing policyTraffic between private addressesTraffic between spokes, branches and hubs passes through the security solution

Microsoft states that routing intent must be configured to secure inter-hub and branch-to-branch communications, even within a single hub. The next hop can be Azure Firewall, an eligible network virtual appliance, or a SaaS solution. The prerequisites are strict: no custom route tables, and no static routes with a next hop of Virtual Network Connection, although a static route in the default route table with Azure Firewall as next hop is allowed.

Other limits matter too. Each hub can have up to 600 address spaces for directly connected virtual networks, and that limit cannot be raised, with a warning above 540. The default route does not propagate across hubs. Removing routing intent does not restore the earlier configuration. Each hub in a global network needs its own security solution and policy.

The following diagram shows the traffic that the two routing policies send through the hub's security solution.

Routing intent in a secured Virtual WAN hub. An internet traffic routing policy sends internet-bound traffic from spokes and branches to the security solution, and the hub advertises a default route. A private traffic routing policy sends traffic between spokes, branches and hubs through it. The next hop is Azure Firewall, an eligible network virtual appliance or a SaaS solution. Routing intent is needed to inspect inter-hub and branch-to-branch traffic.
Routing intent is the simple way to force inspection.
Sort into groups

Which routing policy?

Exam skills 2.3.3

Decide which routing intent policy sends each kind of traffic through the security solution.

Log in to try this activity Interactive activities are free with an account.

Choosing a design

Scenarios describe what must be inspected, so the first step is to classify traffic: branch to internet, spoke to internet, spoke to spoke, branch to spoke, and hub to hub. An internet policy handles the first two, and a private policy handles the others.

Some details influence design. Encrypted ExpressRoute with a private policy has a maximum throughput of about 1 Gbps. For private endpoint traffic from on-premises, traffic bypasses the next hop by default, which can result in asymmetric routing unless network policies are configured on the private endpoint's subnet. Spoke UDRs need Propagate gateway routes set to Yes, so that routes learned from the hub remain in effect.

Other Virtual WAN protections

A secure Virtual WAN needs more than routing. VPN sites should use strong IPsec policies, as described in the VPN lesson. Point-to-site gateways in a hub can use Microsoft Entra authentication. ExpressRoute links can use MACsec at the port level or an IPsec VPN overlay for encryption in transit. Diagnostic logs from hubs and firewalls should go to a workspace, and Azure DDoS Protection covers public addresses on associated resources.

Worked example

Inspecting spoke-to-spoke traffic

A company has a Virtual WAN with two hubs in different regions, each with spokes and branches. It must inspect all traffic between spokes, between branches and between regions with Azure Firewall, with minimum route management. No custom route tables are in use. What should you configure?

Convert each hub to a secured virtual hub with Azure Firewall, and in each one configure routing intent with a private traffic routing policy whose next hop is the hub's firewall. Add an internet policy only if the scenario needs internet inspection.

Firewall rules alone do nothing, since traffic will not reach the firewall without routing intent. A firewall in only one hub would not inspect traffic in the other region as designed. UDRs in spokes cannot control traffic between branches, and custom route tables would add the management work that the scenario wants to avoid.

Check yourself

Why does adding a firewall to a hub not protect spoke-to-spoke traffic by itself?

Show answer

Traffic must be sent to it, which needs routing intent with a private traffic routing policy.

Exam Tips

Remember for the exam

  • Secured virtual hub is a hub with policies from Azure Firewall Manager.
  • Routing intent is required to inspect inter-hub and branch-to-branch traffic.
  • One Internet policy and one Private policy per hub, each with one next hop.
  • Routing intent does not work alongside custom route tables.