Build a resilient site-to-site VPN
Match Azure and branch gateway configuration, understand tunnel state and test the routed path.
Build a resilient site-to-site VPN
Work through the decision
A depot has two internet routers and needs encrypted traffic to Azure during maintenance on one path. The tunnel shows connected but a newly added depot subnet is unreachable. What would you compare?
Check your reasoning
Record endpoint pairs and failure domains. Select a route-based VPN gateway SKU that meets the throughput, tunnel count, redundancy and BGP requirements. Create the Azure gateway in GatewaySubnet, represent the branch device and its prefixes with a local network gateway, and configure the connection with compatible settings at both ends. Test each intended failover path.
Compare the choices
- Virtual network gateway
- Deploy the Azure-side managed VPN gateway with appropriate type, SKU and IP configuration. Size the subnet and plan for resilience.
- Local network gateway
- Represent the remote device’s public endpoint and branch prefixes or BGP settings. Keep the representation consistent with the physical branch.
- Connection IPsec and IKE policy
- Set mutually supported negotiation and data-plane parameters on the connection and peer device. Verify settings on both sides.
- Independent tunnel paths
- Place gateway instances, public endpoints and branch devices so the required single failure does not remove every tunnel. Test under actual failover conditions.
Test the decision
A connected tunnel establishes a control-plane milestone. Check the branch prefix or actual BGP advertisement, effective routes in both directions and the applicable rules. When negotiation itself fails, compare endpoint addresses, shared secret and compatible IKE and IPsec policy, using diagnostics without putting secrets in logs.
Practice the guide skills
- Draw independent branch and Azure tunnel paths and mark the failure that each survives. Watch 52:16
- Choose a supported gateway SKU for the required throughput, tunnel count and availability zones. Watch 53:34
- Match the Azure and branch gateway addresses and the reachable prefixes on each side. Watch 54:36 · Continue at 54:53
- Check whether the peer requires policy-based traffic selectors or supports a route-based design. Watch 52:56
- Represent the branch gateway address and branch prefixes in a local network gateway. Watch 54:42
- Compare the IKE and IPsec policy proposals at both ends, including lifetimes and PFS settings. Watch 54:59
- Identify GatewaySubnet, public IP configuration, VPN type and SKU before gateway creation. Watch 54:36
- For an established tunnel with an unreachable prefix, check effective routes and traffic selectors. Watch 56:08
- Trace a migrating VM’s path through Azure Extended Network and identify when its preserved IP can be replaced with native routed connectivity. Watch 56:38
Official objectives for this lesson
Related lesson · Choose remote-access or site-to-site IPsec
Build a resilient site-to-site VPN quiz
Answer 3 questions. Check each answer for an explanation.