D2 · Architecture and Services

Azure networking services

, , , Application Gateway, , , DNS, and . Networking is ~15% of the AZ-900 and the source of the exam's most complex questions.

Icon-networking-61

Virtual Network (VNet) in depth

What is a VNet?

A private virtual network in Azure. It isolates and segments your network resources. It's the equivalent of a local corporate network, but in the cloud. Each VNet has an IP address space (e.g., 10.0.0.0/16) that is not publicly routed.

Components of a VNet

Address Space: Range of private IPs of the VNet. E.g.: 10.0.0.0/16 = 65,536 available IPs.
Subnets: Segments within the VNet. E.g.: 10.0.1.0/24 for web tier, 10.0.2.0/24 for DB tier.
Route Table: Defines how traffic is routed between subnets and to the internet.
Service Endpoints: Direct access to Azure services (Storage, SQL) from the VNet without going through the internet.
Private Endpoints: Azure services with a private IP inside the VNet. Traffic never goes out to the internet.
VNet: 10.0.0.0/16
├── Subnet: web-tier (10.0.1.0/24)
│ ├── VM: web-1 (10.0.1.4)
│ └── VM: web-2 (10.0.1.5)
├── Subnet: app-tier (10.0.2.0/24)
│ └── VM: api-1 (10.0.2.4)
├── Subnet: db-tier (10.0.3.0/24)
│ └── Azure SQL PE (10.0.3.4)
└── Subnet: GatewaySubnet (10.0.0.0/27)
└── VPN Gateway

VNet rules for the exam

  • A VNet belongs to a single region and subscription.
  • Resources in different VNets do NOT communicate by default (VNet Peering is required).
  • A subnet can have a Route Table and an NSG associated with it.
  • Azure reserves the first 4 IPs and the last one of each subnet (not usable).
  • Resources in a VNet get automatic private DNS resolution.
Related labD2 · Architecture and services

Create a Virtual Network with subnets

Create your first virtual network in Azure and a subnet inside it. VNets are the foundation of private networking in the cloud.

Understand what a Virtual Network (VNet) is and what it's for
Create a VNet with an address space

+1 more...

7 min8 steps

Interactive diagram — hover over each node

Network Security Groups (NSG)

Firewall at the subnet or NIC level. A list of allow/deny rules for inbound and outbound traffic.

How NSG rules work

Each rule has a priority (100–4096, lower = higher priority). They are evaluated in order until a match is found. If none match → the default rule applies (Deny All for inbound, Allow VNet/Internet for outbound).

PriorityPortProtocolSourceAction
100443TCPInternetAllow
11080TCPInternetAllow
2003389TCP10.0.0.0/8Allow
4096***Deny

Common mistake: RDP exposed to the internet

By default, new VMs have NO inbound restriction if a public IP is created. Many admins leave port 3389 (RDP) or 22 (SSH) open to 0.0.0.0/0. Microsoft detects millions of brute force attempts against these ports daily.

Correct solution

Just-in-Time VM Access (Azure Defender): opens the port only when a specific admin requests it, for a limited time, from their IP.

NSG on subnet vs NIC

You can assign an NSG at the subnet level (affects all resources in it) OR at the individual NIC level of a VM. If both have NSGs, both are evaluated — the traffic must pass both. NSG on subnet = first line of defense. NSG on NIC = second line of defense.

Related labD2 · Architecture and services

Configure a Network Security Group (NSG)

Create an NSG and add an inbound rule to allow HTTPS traffic. NSGs are Azure's network-level firewall.

Understand what a Network Security Group is for
Create an NSG

+1 more...

8 min11 steps
Related labD2 · Architecture and services

Azure Bastion for secure VM access

Deploy Azure Bastion to connect to your virtual machines over RDP/SSH without exposing a public IP on the VM.

Understand why Azure Bastion improves VM access security
Create an Azure Bastion resource associated to a virtual network

+1 more...

7 min8 steps
Related labD2 · Architecture and services

Spot the error: NSG blocking web traffic

A website stopped being reachable. Find the NSG rule responsible and fix it — no guided steps.

Understand the evaluation order of an NSG's rules
Diagnose why a low-priority rule can block traffic other rules allow

+1 more...

5 min3 steps
Icon-networking-62

Load balancing: Azure's 4 options

Azure has 4 distinct load balancing services. Choosing the right one is a frequent AZ-900 question.

Azure Load Balancer

L4 (TCP/UDP)Regional

Distributes TCP/UDP traffic across VMs or backends. Operates at the transport level (Layer 4). Doesn't understand HTTP. For non-HTTP traffic or ultra-low latency.

When to use

  • • Direct TCP/UDP (not HTTP)
  • • Internal load balancing between VMs
  • • High availability of VMs

Don't use for

Doesn't filter by URL or HTTP headers

Azure Application Gateway

L7 (HTTP/S)Regional

Web Application Firewall (WAF) + HTTP/S load balancing. Routes by URL path (/api → backend1, /web → backend2). SSL termination. Protects against OWASP top 10.

When to use

  • • Web apps with multiple backends
  • • You need WAF (OWASP protection)
  • • SSL offloading
  • • URL-based routing

Don't use for

HTTP/S only. Not for TCP/UDP

Azure Traffic Manager

DNS (L7)Global

DNS-based load balancing. Routes users to the most appropriate endpoint based on policies (geographic, performance, priority). Doesn't touch traffic directly — it only resolves DNS.

When to use

  • • Multi-region: users to closest region
  • • Failover between regions
  • • Geographic A/B testing

Don't use for

Not a proxy — cannot inspect traffic

Azure Front Door

L7 (HTTP/S)Global

CDN + WAF + global HTTP/S load balancing. Accelerates content with edge caching. Routes to the healthiest and closest backend. Combines Traffic Manager + Application Gateway + CDN.

When to use

  • • Global web apps with critical latency
  • • WAF + CDN + LB in one
  • • Global APIs with caching

Don't use for

HTTP/S only. More expensive than Traffic Manager

Quick decision table

ScenarioAnswer
Distribute HTTP traffic across 3 VMs in East USAzure Load Balancer (L4) or Application Gateway (L7)
Route /api to backend1 and /web to backend2Application Gateway (URL-based routing)
Protect a web app against SQL injectionApplication Gateway with WAF
Send European users to West Europe and American users to East US (geographic routing)
Low-latency global web app with CDN + WAF
Automatic failover from primary to secondary region via DNSTraffic Manager (priority routing)
Related labD2 · Architecture and services

Create a basic public Load Balancer

Create an Azure Load Balancer to distribute inbound traffic across several VMs, improving availability and scalability.

Understand what problem a Load Balancer solves
Tell apart a Public load balancer from an Internal one

+1 more...

8 min9 steps
Icon-networking-63

VPN Gateway vs ExpressRoute

To connect your on-premises network (or another network) to Azure privately.

Azure VPN Gateway

Encrypted VPN tunnel over the public internet. Secure connection but with variable latency and limited bandwidth (~1 Gbps max). Economical.

Site-to-Site (S2S): Your on-prem datacenter ↔ Azure VNet. Persistent VPN.
Point-to-Site (P2S): Remote employee's laptop ↔ Azure VNet. Per-user VPN.
VNet-to-VNet: Connects two Azure VNets in different regions via VPN.

Cost/month

~$30–$700 (depending on SKU)

Bandwidth

Up to ~1 Gbps

Latency

Variable (internet)

SLA

99.9%

Azure ExpressRoute

Dedicated private connection to Azure via a telecommunications partner (Telefónica, AT&T, Equinix, etc.). Never touches the public internet. Guaranteed SLA. Up to 100 Gbps.

ExpressRoute Circuit: 1–10 Gbps. Dedicated connection at a partner datacenter.
ExpressRoute Direct: 10–100 Gbps. Direct connection to the Azure router (no intermediary partner).
ExpressRoute Global Reach: Connects two on-premises networks to each other via Azure (transit).

Cost/month

~$500–$5,000+

Bandwidth

50 Mbps – 100 Gbps

Latency

Predictable and low

SLA

99.95%

VPN vs ExpressRoute — when to choose

Use VPN when:

  • Tight budget (orders of magnitude cheaper)
  • Non-critical connectivity (tolerant of internet variability)
  • Remote users (P2S for home office)
  • Prototype or small project
  • Temporary or backup connectivity

Use ExpressRoute when:

  • Critical workloads that can't tolerate variable latency
  • Massive data transfers (migrating TBs)
  • Compliance that prohibits traffic over the public internet
  • SAP, Oracle, critical databases in Azure
  • Guaranteed bandwidth needed (>1 Gbps)
Icon-networking-64

Azure DNS

Azure Public DNS

Hosts public DNS zones (e.g., contoso.com) in Azure. High availability, global anycast, 100% SLA (Microsoft guarantees resolution availability).

Supports all record types: A, AAAA, CNAME, MX, TXT, NS, SOA, SRV

Integration with Azure Resource Manager (RBAC, tags, billing)

Alias Records for Azure resources (automatic IP update if the VM/LB IP changes)

Azure Private DNS

Private DNS resolution for resources within VNets. Without exposing private IPs to public DNS.

vm1.internal.contoso.com → 10.0.1.4 (internal resolution)

Works across linked VNets (VNet links)

PaaS services with Private Endpoints resolve private names

No DNS servers of your own to manage (Azure manages it)

VNet Peering and Private Endpoints

VNet Peering

Connects two VNets so resources can communicate as if they were on the same network. Traffic goes over Azure's backbone network (not the internet). Low latency.

Regional Peering

Two VNets in the same region. Traffic in the same region is free (you only pay standard egress).

Global Peering

Two VNets in different regions. Small additional cost for cross-region traffic.

Peering is NOT transitive. If A→B and B→C, A CANNOT talk to C without creating a direct A→C peering.

Private Endpoints

Exposes Azure PaaS services (Storage, SQL, Key Vault, etc.) with a private IP inside your VNet. Traffic never goes out to the public internet.

Without vs With Private Endpoint

Without Private Endpoint

VM → internet → storage.core.windows.net

Traffic goes out over the internet, potentially interceptable

With Private Endpoint

VM → 10.0.1.5 (PE) → storage (private)

Traffic stays within Azure's private network

Icon-networking-72

Azure DDoS Protection

DDoS Basic (free)

Automatic protection included in Azure for all infrastructure. Mitigates common volumetric attacks. No additional cost. NO custom dashboards or alerts.

When to use

Always active. No configuration.

DDoS Standard (paid)

Customized mitigation policies per-VNet. Real-time telemetry. Alerts. Specialized support from the DDoS Response Team. Cost guarantee if Azure fails to protect.

When to use

Production apps exposed to the internet with high SLA requirements.

Did you get this topic?

Test what you just learned

Which Azure service lets you connect two VNets so that resources on both can communicate as if they were on the same network?

Ready to test "Networking services"?

Put what you learned to the test with original AZ-900 exam questions.

Start AZ-900 mock exam

Unlimited mock exams with the Pro plan

Log in to track your progress.