πŸ”’ Guided

Pre-launch preview. Authorised access only.

Incorrect code

Guided by A Guide to Cloud
Explore AB-900 AI-901
Guided AZ-104 Domain 4
Domain 4 β€” Module 1 of 5 20%
19 of 27 overall

AZ-104 Study Guide

Domain 1: Manage Azure Identities and Governance

  • Microsoft Entra ID: Your Identity Foundation Free
  • Users, Groups & Licenses Free
  • RBAC: Who Can Do What in Azure Free
  • Subscriptions, Resource Groups & Management Groups Free
  • Azure Policy & Resource Locks Free
  • Tags, Cost Management & Azure Advisor Free

Domain 2: Implement and Manage Storage

  • Storage Accounts & Redundancy
  • Securing Storage: Keys, SAS & Firewalls
  • Blob Containers & Storage Tiers
  • Blob Lifecycle, Versioning & Soft Delete
  • Azure Files: Shares, Snapshots & Recovery

Domain 3: Deploy and Manage Azure Compute Resources

  • ARM Templates & Bicep: Infrastructure as Code
  • Virtual Machines: Create & Configure Free
  • VM Disks, Encryption & Migration
  • Availability Sets, Zones & Scale Sets
  • Containers: ACR, ACI & Container Apps
  • App Service Plans & Scaling
  • App Service: Slots, Certificates & Networking

Domain 4: Implement and Manage Virtual Networking

  • Virtual Networks & Subnets
  • VNet Peering & User-Defined Routes
  • NSGs & Application Security Groups
  • Azure Bastion, Service & Private Endpoints
  • Azure DNS & Load Balancers

Domain 5: Monitor and Maintain Azure Resources

  • Azure Monitor: Metrics & Logs
  • Alerts, Insights & Network Watcher
  • Azure Backup & Vaults
  • Azure Site Recovery & Disaster Recovery

AZ-104 Study Guide

Domain 1: Manage Azure Identities and Governance

  • Microsoft Entra ID: Your Identity Foundation Free
  • Users, Groups & Licenses Free
  • RBAC: Who Can Do What in Azure Free
  • Subscriptions, Resource Groups & Management Groups Free
  • Azure Policy & Resource Locks Free
  • Tags, Cost Management & Azure Advisor Free

Domain 2: Implement and Manage Storage

  • Storage Accounts & Redundancy
  • Securing Storage: Keys, SAS & Firewalls
  • Blob Containers & Storage Tiers
  • Blob Lifecycle, Versioning & Soft Delete
  • Azure Files: Shares, Snapshots & Recovery

Domain 3: Deploy and Manage Azure Compute Resources

  • ARM Templates & Bicep: Infrastructure as Code
  • Virtual Machines: Create & Configure Free
  • VM Disks, Encryption & Migration
  • Availability Sets, Zones & Scale Sets
  • Containers: ACR, ACI & Container Apps
  • App Service Plans & Scaling
  • App Service: Slots, Certificates & Networking

Domain 4: Implement and Manage Virtual Networking

  • Virtual Networks & Subnets
  • VNet Peering & User-Defined Routes
  • NSGs & Application Security Groups
  • Azure Bastion, Service & Private Endpoints
  • Azure DNS & Load Balancers

Domain 5: Monitor and Maintain Azure Resources

  • Azure Monitor: Metrics & Logs
  • Alerts, Insights & Network Watcher
  • Azure Backup & Vaults
  • Azure Site Recovery & Disaster Recovery
Domain 4: Implement and Manage Virtual Networking Premium ⏱ ~12 min read

Virtual Networks & Subnets

Every Azure resource that needs to communicate privately needs a Virtual Network. Learn how to create VNets, design address spaces with CIDR notation, segment with subnets, and assign public IP addresses β€” the networking foundation for everything else.

What is an Azure Virtual Network?

β˜• Simple explanation

A Virtual Network (VNet) is your own private office building network β€” but in the cloud.

On-prem, you had switches, routers, and VLANs to create isolated networks. In Azure, a VNet does the same job. It’s a logically isolated network where your VMs, databases, and other resources can talk to each other privately β€” just like devices on a LAN.

Subnets are like floors in the building. You put web servers on one floor, databases on another, and control who can move between floors. The building’s street address is your public IP β€” it’s how the outside world reaches you.

An Azure Virtual Network (VNet) is a logical representation of your network in the cloud. It provides isolation, segmentation, and communication for Azure resources. VNets are scoped to a single Azure region but can communicate across regions via VNet peering or VPN gateways.

Each VNet is defined by one or more address spaces using CIDR notation (e.g., 10.0.0.0/16). Within the address space, you create subnets to segment resources. Resources in the same VNet can communicate by default. Communication between VNets requires explicit configuration (peering, VPN, or ExpressRoute).

Address spaces and CIDR notation

Every VNet needs an address space β€” the range of private IP addresses available to your resources. Azure uses CIDR (Classless Inter-Domain Routing) notation:

CIDR BlockUsable IPs (approx.)Typical Use
/1665,531Large VNet for production (e.g., 10.0.0.0/16)
/204,091Medium environment
/24251Single subnet for a small workload
/2727Small subnet for a handful of resources

Private IP ranges you can use:

  • 10.0.0.0 – 10.255.255.255 (10.0.0.0/8)
  • 172.16.0.0 – 172.31.255.255 (172.16.0.0/12)
  • 192.168.0.0 – 192.168.255.255 (192.168.0.0/16)

A VNet can have multiple address spaces (e.g., 10.0.0.0/16 AND 172.16.0.0/16), and you can add more after creation.

πŸ’‘ Exam tip: 5 reserved IPs per subnet

Azure reserves 5 IP addresses in every subnet. For a /24 subnet (256 addresses), only 251 are usable:

  • .0 β€” Network address
  • .1 β€” Default gateway
  • .2 and .3 β€” Azure DNS mapping
  • .255 β€” Broadcast address

This means the smallest useful subnet is /29 (8 addresses, 3 usable). If a question asks β€œhow many usable IPs in a /24?” β€” the answer is 251, not 254.

Subnets: Segmenting your VNet

Subnets divide your VNet into smaller network segments. Each subnet gets a portion of the VNet’s address space.

Why use subnets?

  • Security: Apply different NSG rules to different subnets (web tier vs database tier)
  • Organisation: Group related resources logically
  • Service requirements: Some Azure services require dedicated subnets (e.g., AzureBastionSubnet, GatewaySubnet)
Real-world: TechCorp's subnet design

TechCorp Solutions designs their production VNet (10.0.0.0/16) with these subnets:

  • 10.0.1.0/24 β€” Web tier (App Service VNet Integration, front-end VMs)
  • 10.0.2.0/24 β€” App tier (application VMs, container instances)
  • 10.0.3.0/24 β€” Database tier (SQL Managed Instance, private endpoints)
  • 10.0.4.0/27 β€” AzureBastionSubnet (for secure management access)
  • 10.0.5.0/27 β€” GatewaySubnet (for VPN to on-prem)

Alex applies strict NSGs: the database subnet only accepts traffic from the app tier, never from the web tier directly. Classic three-tier security.

Public IP addresses

A public IP address allows resources to communicate with the internet and public-facing Azure services.

Basic vs Standard public IP β€” Standard is recommended for production
FeatureBasic SKUStandard SKU
AllocationDynamic or StaticStatic only
Availability zonesNot supportedZone-redundant by default
SecurityOpen by default (NSG optional)Secure by default (NSG required)
Load balancerBasic LB onlyStandard LB only
Routing preferenceMicrosoft network onlyMicrosoft network or Internet
PriceFree (while attached)Small hourly charge

Key points:

  • Dynamic IP can change when the resource is stopped/deallocated; Static stays the same
  • Standard SKU is the default for new public IPs and is zone-redundant
  • Basic SKU is being retired β€” use Standard for all new deployments
  • You can associate a public IP with VMs, load balancers, VPN gateways, and application gateways
πŸ’‘ Exam tip: Standard Public IP defaults

Standard SKU public IPs are static by default and zone-redundant. They are also secure by default β€” inbound traffic is blocked until you create an NSG rule to allow it. This is the opposite of Basic SKU, which allows all inbound traffic unless you add an NSG.

If a question says β€œthe VM has a Standard public IP but can’t be reached” β€” check the NSG rules first.

Private IP addresses

Every resource connected to a VNet automatically gets a private IP from the subnet’s address range.

  • Dynamic (default): Azure assigns the next available IP from the subnet; may change on restart
  • Static: You choose the exact IP from the subnet range; never changes

Static private IPs are useful for DNS servers, domain controllers, or any resource that other resources reference by IP address.

Question

How many IP addresses does Azure reserve in every subnet?

Click or press Enter to reveal answer

Answer

Five. The first four (.0 network, .1 gateway, .2 and .3 for DNS) and the last (.255 broadcast). A /24 subnet has 256 total addresses but only 251 are usable for your resources.

Click to flip back

Question

What is the key difference between Basic and Standard SKU public IPs?

Click or press Enter to reveal answer

Answer

Standard SKU is static by default, zone-redundant, and secure by default (requires NSG rules to allow traffic). Basic SKU supports dynamic allocation, no availability zones, and is open by default. Standard is recommended for all production workloads.

Click to flip back

Question

Can a VNet span multiple Azure regions?

Click or press Enter to reveal answer

Answer

No. A VNet is scoped to a single Azure region. To connect VNets across regions, use global VNet peering or a VPN gateway. However, a VNet CAN have multiple address spaces within the same region.

Click to flip back

Question

What is the smallest subnet you can create in Azure?

Click or press Enter to reveal answer

Answer

A /29 subnet (8 total addresses, 3 usable after Azure's 5 reserved IPs). However, some services require larger subnets β€” for example, AzureBastionSubnet requires at least /26.

Click to flip back

Knowledge check

Knowledge Check

CloudFirst Labs creates a VNet with address space 10.0.0.0/16 and a subnet 10.0.1.0/24. How many IP addresses are usable for resources in the subnet?

Knowledge Check

Alex assigns a Standard SKU public IP to a VM but cannot connect to it via RDP. The VM is running and the OS firewall allows RDP. What is the most likely cause?

Knowledge Check

Meridian Financial needs to deploy an Azure SQL Managed Instance, which requires a dedicated subnet. The subnet must have at least 32 IP addresses. What is the minimum CIDR prefix they should use?

🎬 Video coming soon

← Previous

App Service: Slots, Certificates & Networking

Next β†’

VNet Peering & User-Defined Routes

Guided

I learn, I simplify, I share.

A Guide to Cloud YouTube Feedback

© 2026 Sutheesh. All rights reserved.

Guided is an independent study resource and is not affiliated with, endorsed by, or officially connected to Microsoft. Microsoft, Azure, and related trademarks are property of Microsoft Corporation. Always verify information against Microsoft Learn.