Designing network solutions
Connect Azure to the internet and to on-premises, then design for performance, security and the right load balancer.
In this lesson you'll learn
- Internet connectivity: inbound and outbound
- Hybrid connectivity: VPN, ExpressRoute and Virtual WAN
- Optimising network performance and security
- Choosing a load-balancing and routing service
1. Connecting to the internet
Refresher: inbound and outbound
Inbound traffic comes from users on the internet to your apps. Outbound traffic goes from your resources to the internet, for example to download updates.
- Inbound web traffic: Azure Front Door (global) or Application Gateway (regional), both with WAF. Avoid public IPs on individual VMs.
- Outbound traffic: NAT gateway for predictable, scalable outbound IPs, or Azure Firewall when outbound traffic must be filtered and logged.
- Admin access: Azure Bastion instead of public RDP or SSH.
2. Connecting to on-premises
| Option | Characteristics | Choose when |
|---|---|---|
| Site-to-site VPN | Encrypted over the internet, quick to set up, lower cost | Moderate bandwidth, internet-grade latency is fine |
| ExpressRoute | Private connection through a provider, predictable latency, high bandwidth | Large data volumes, consistent performance, compliance |
| ExpressRoute + VPN | VPN as a backup path | Resilience at lower cost than a second circuit |
| Virtual WAN | Managed hub that connects many branches, VNets, VPN and ExpressRoute with transitive routing | Many sites and VNets, global networks |
3. Performance and security
| Goal | Recommend |
|---|---|
| Lowest latency between VMs | Accelerated networking and proximity placement groups |
| Faster delivery of static content worldwide | Azure Front Door caching |
| Faster on-premises to VM traffic over ExpressRoute | ExpressRoute FastPath |
| Segment traffic between subnets and tiers | NSGs with application security groups |
| Central inspection and FQDN filtering, hub and spoke | Azure Firewall (Premium for TLS inspection and IDPS) |
| Keep PaaS traffic off the internet | Private endpoints (Private Link) |
| Protect against volumetric attacks | Azure DDoS Protection |
4. Load balancing and routing
Example
A retailer runs its storefront in two regions, with 40 stores connected to Azure and a central security team that must inspect all outbound traffic. The architect recommends Front Door with WAF for the storefront, and Virtual WAN with site-to-site VPN for the stores and ExpressRoute for head office. Azure Firewall Premium sits in the hub, and the databases use private endpoints.
Exam traps to remember
- Traffic Manager works through DNS. It never sees the traffic itself, so it can't offer WAF or caching.
- ExpressRoute traffic is private, but not encrypted unless you add encryption.
- NAT gateway gives fixed outbound IPs but doesn't filter traffic. Azure Firewall does.
Test yourself: 3 check questions and exam-style practice questions on this topic are in the AZ-305 Azure Solutions Architect app.
Practise in the app