Connecting Azure to Your Network: VPN Gateway, ExpressRoute, Network Security Groups, Firewall and Private Endpoints

Microsoft Azure Fundamentals AZ 900 50 min min read Updated: Nov 17, 2026 Beginner
Connecting Azure to Your Network: VPN Gateway, ExpressRoute, Network Security Groups, Firewall and Private Endpoints
Beginner Topic 2 of 3

Connecting to Azure

OptionHowNotes
Site-to-site VPNEncrypted tunnel over the public internet between your office and Azure (VPN Gateway)Cheaper, quicker to set up. Speed varies with internet
Point-to-site VPNOne computer connects to AzureGood for remote workers
ExpressRoutePrivate dedicated connection through a connectivity providerDoes not use the public internet. More reliable, faster, more private, higher cost
Exam tip Public internet VPN = cheap. Private dedicated line = ExpressRoute.

Network Security Groups (NSG)

  • A basic firewall with allow/deny rules for traffic to and from resources
  • Attach to a subnet or a network interface
  • A rule has a priority (lower number is checked first), source, destination, port, protocol and action
PriorityNamePortAction
100Allow-HTTPS443Allow
200Allow-SSH-from-office22Allow (only office IP)
65500DenyAllInboundAnyDeny (default)

Azure Firewall

  • A managed, cloud-based firewall with built-in high availability
  • Filters traffic by application (FQDN names) and network rules, and can use threat intelligence
  • Use for central control of many VNets. NSG is simpler and per subnet or NIC

Other Protection

ServicePurpose
DDoS ProtectionDefends against floods of traffic that try to take your app down
Azure BastionConnect to VMs from the portal over HTTPS with no public IP on the VM
Web Application Firewall (WAF)Blocks common web attacks like SQL injection. Works with Application Gateway and Front Door

Private Endpoints

  • Give an Azure service (like a storage account or SQL database) a private IP inside your VNet
  • Traffic stays on the Microsoft network and the service can be closed to the internet
  • Used for secure access to PaaS services

Practice

  1. Which connects to Azure privately without the internet: VPN or ExpressRoute?
  2. What does an NSG do?
  3. How can you reach a VM without giving it a public IP?

Conclusion

Use VPN Gateway for encrypted internet-based links and ExpressRoute for private dedicated connections. Protect with NSGs, Firewall, DDoS Protection, Bastion and private endpoints.

Quick Summary: connecting; NSG; firewall; other protection; private endpoints.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators