Virtual Networks and Subnets in Azure
What Are Virtual Networks?
Virtual Networks (VNets) are logically isolated network environments in Azure where you launch resources like virtual machines, app services, and databases. When you create a VNet, you define an address space using CIDR notation (for example, 10.0.0.0/16), which provides 65,536 available IP addresses.
Understanding Subnets
Subnets are divisions within your VNet that segment your network further. You might create a subnet 10.0.1.0/24 for web servers and another subnet 10.0.2.0/24 for databases. Each subnet must have a smaller CIDR block than its parent VNet.
Key Design Principles
Think of a VNet as an office building and subnets as individual floors. Resources in the same VNet communicate with each other by default. Plan your IP address space carefully to avoid conflicts. You cannot change a VNet's address space after creation without significant reconfiguration.
Azure automatically creates route tables for subnets, enabling traffic to flow between them. Focus your study on the hierarchical relationship between address spaces, VNets, and subnets. Practice creating VNets with multiple subnets to understand IP addressing in practice.
Network Security Groups and Access Control
How NSGs Work
Network Security Groups (NSGs) act as stateful firewalls controlling inbound and outbound traffic to Azure resources. Each NSG contains security rules that allow or deny traffic based on source, destination, protocol, and port. Rules have priority numbers between 1 and 65,535, with lower numbers evaluated first.
Default Rules and Custom Rules
Azure provides default rules in every NSG:
- AllowVNetInBound (allows all traffic between resources in the same VNet)
- DenyAllInbound (denies all other inbound traffic)
When you create custom rules, allow specific traffic first, then rely on default deny rules. A rule allowing inbound traffic on port 443 (HTTPS) with priority 100 is evaluated before a lower-priority deny rule.
NSG Scope and Application Security Groups
Apply NSGs at the subnet level to protect all resources in that subnet, or at individual network interface levels for granular control. Application Security Groups (ASGs) provide additional organization, allowing you to group resources logically and apply NSG rules to those groups instead of individual IP addresses.
Inbound rules control traffic entering your resources. Outbound rules control traffic leaving your resources. This scaling approach works better for complex environments with many resources.
Azure Connectivity Options and Hybrid Scenarios
ExpressRoute for High-Performance Connections
ExpressRoute offers a dedicated, private connection to Azure with consistent bandwidth and lower latency compared to internet-based connections. This service suits organizations requiring high reliability and predictable network performance.
VPN Solutions for Cost-Effective Connectivity
Site-to-Site VPN uses encrypted tunnels over the public internet to connect your on-premises network to Azure. This provides a cost-effective solution for smaller deployments or as a backup connectivity option. Point-to-Site VPN allows individual computers to connect securely to Azure, perfect for remote workers or administrators.
Virtual Network Peering
Virtual Network Peering enables direct communication between two VNets in Azure, allowing resources in different networks to communicate as if they were in the same network. Regional peering (same region) offers lower latency. Global peering (different regions) enables organization-wide integration.
Choosing the Right Connectivity Option
Evaluate bandwidth requirements, acceptable latency, uptime needs, cost constraints, and whether you need hybrid connectivity. ExpressRoute requires more setup time and investment but provides superior performance. VPN solutions deploy faster and cost less but depend on internet connectivity. Many organizations use both, with ExpressRoute for primary traffic and VPN as a failover option.
IP Addressing, DNS, and Traffic Management
Public and Private IP Addresses
Public IP addresses allow resources to be accessed from the internet. Private IP addresses enable communication within your VNet. Public IPs can be static (unchanging) or dynamic (reassigned when the resource stops).
DNS and Domain Management
DNS in Azure is automatically managed for resources within a VNet. Configure custom DNS servers or use Azure DNS, a hosting service for DNS domains that integrates seamlessly with other Azure services.
Load Balancing at Different Layers
Azure Load Balancer operates at layer 4 (transport layer) and efficiently distributes traffic based on configured rules. Application Gateway operates at layer 7 (application layer), providing path-based routing, hostname-based routing, and SSL termination.
Traffic Manager performs DNS-level routing, directing users to appropriate endpoints based on performance, priority, or geographic location. This suits global applications or disaster recovery scenarios. Azure CDN accelerates content delivery by caching content at edge locations closer to users.
Practice scenarios involving traffic distribution. Create flashcards describing traffic management challenges and asking which Azure service best solves them.
Practical Study Tips and Exam Strategy for Azure Networking
Build Real Network Architecture
Start by creating a mental model of your own network design. Imagine deploying a three-tier application with web, business logic, and database layers in Azure. Work through how you would secure, connect, and manage traffic for each layer.
Use Azure free tier resources to build actual VNets, create subnets, configure NSGs, and test connectivity. Hands-on experience helps you internalize how networking components interact and reveals dependencies you might miss in pure study.
Strategic Flashcard Organization
Group related concepts into separate flashcard sets. Create one set for VNet architecture, another for security rules, and a third for connectivity options. This organization helps you study in focused sessions and prevents information overload.
When reviewing flashcards, actively recall answers before looking at them. Active recall strengthens memory far more than passive reading. Study the Azure documentation's decision trees and comparison tables, converting these visuals into flashcard questions.
Exam Preparation Strategies
Practice scenario-based questions because the AZ-900 exam presents realistic situations rather than isolated facts. Join study groups or online communities to discuss networking concepts. Explaining ideas to others reinforces your understanding.
Track which topics consistently challenge you and dedicate additional study time to those areas. Simulate exam conditions by taking practice tests under timed conditions. This builds confidence and helps you internalize information efficiently.
