Microsoft AZ-104: Azure Virtual Networking — Study Guide

Part of the Microsoft Azure Administrator Associate AZ-104 — Study Guide. Practice with verified answers in the Microsoft exam hub, or take timed practice tests on ExamRoll.io.

Overview

Azure Virtual Networking establishes the software-defined data center fabric for IaaS and PaaS workloads. You design an address plan with CIDR, carve subnets aligned to trust boundaries, secure east-west and north-south flows with Network Security Groups (NSGs) and Azure Firewall, connect environments using VNet peering, VPN Gateway, or ExpressRoute, shape traffic with user-defined routes, and provide reliable name resolution with Azure DNS. Getting these constructs right enables scalable hub-and-spoke designs, secure PaaS access via Private Endpoints, and predictable routing that satisfies compliance and performance requirements.

Addressing, Segmentation, and Policy (VNets, Subnets, NSGs, ASGs, UDR)

A virtual network defines one or more non-overlapping RFC1918 address spaces using CIDR notation (for example, 10.0.0.0/16). You can add additional address prefixes later if no conflicts exist with peers. Subnets segment the VNet into routable blocks (for example, 10.0.1.0/24 for web, 10.0.2.0/24 for app). Reserve a dedicated GatewaySubnet for VPN/ExpressRoute gateways; allocate generously (at least /27) to avoid future scaling limits. IP allocation is dynamic by default; you can set static private IPs on NICs when needed.

Default system routes allow intra-VNet traffic and send 0.0.0.0/0 to the internet (subject to public IP presence). User-defined routes (UDR) override these defaults at the subnet level. Create a route table and associate it with a subnet; entries include:

NSGs enforce stateful L3–L4 policy on NICs or subnets; both scopes can be used simultaneously and traffic must be allowed by all applicable NSGs. Rules evaluate by priority (100–4096; lower numbers first) and direction (inbound/outbound). Default rules include:

Application Security Groups (ASGs) decouple IP addressing from policy. Assign NICs to ASGs that represent roles (for example, Web, App, DB) and reference those ASGs in NSG rules. This allows policy changes without touching IPs or subnets and aids consistent role-based segmentation within a VNet.

Connectivity Options: Peering, VPN Gateway, and ExpressRoute

VNet peering connects VNets over the Microsoft backbone with low latency and high bandwidth. Local peering is within a region; global peering spans regions. Peering is non-transitive and requires non-overlapping address spaces. Key flags:

Azure VPN Gateway provides IPSec/IKE tunnels:

ExpressRoute delivers private, SLA-backed connectivity over a partner’s circuit into Microsoft’s edge:

Coexistence: A VNet can have both VPN and ExpressRoute gateways using the same GatewaySubnet; use gateway transit and UDRs to control flows. ExpressRoute is preferred for steady-state enterprise traffic; VPN serves as backup or for branch/small-office reach.

Name Resolution and Secure Access to PaaS (Azure DNS, Endpoints)

Azure DNS hosts public zones so your internet-facing records reside on Azure’s global DNS platform with high availability. For intra-VNet resolution, Azure DNS Private Zones provide split-horizon name service. Link VNets to a private zone to enable resolution; optionally enable auto-registration so VM A records register and update automatically upon NIC IP changes. For hybrid name resolution and conditional forwarding between Azure and on-premises, deploy Azure DNS Private Resolver with inbound/outbound endpoints and rule sets that forward selected domains (for example, corp.contoso.com to on-prem DNS, or privatelink.* back into Azure).

Service Endpoints extend your VNet’s identity to selected Azure services (for example, Storage, SQL) over the Microsoft backbone, retaining the service’s public IP. On the PaaS firewall, restrict access to specific VNet/subnet. They are easy to enable per subnet and per service, require no DNS changes, and work well for simple, Azure-only scenarios. However, the resource still has a public IP and is not addressable privately from on-prem without going through the public endpoint.

Private Endpoints place a NIC with a private IP from your subnet on the PaaS resource via Private Link. Traffic stays on the private network, enabling fine-grained data exfiltration control and access from on-prem over VPN/ExpressRoute. Proper DNS is essential: override the resource’s public FQDN to resolve to its privatelink FQDN, which points at your private IP. Use Azure Private DNS zones (for example, privatelink.blob.core.windows.net) linked to VNets. Choose Private Endpoints when you need true private addressing, cross-premises access, and strict egress controls.

Azure Firewall and Centralized Egress/Ingress Governance

Azure Firewall is a stateful, cloud-native firewall that scales elastically and provides central policy for hub-and-spoke designs. Deploy it into a dedicated AzureFirewallSubnet. For forced tunneling scenarios, add AzureFirewallManagementSubnet so management traffic uses the internet while data traffic follows your default route.

Rule collection types apply in this order and by rule collection priority:

Practical Problem Scenario

Adobe must modernize a hybrid network: a secure hub in Azure must provide centralized internet egress, on-prem connectivity with high availability, private access to Storage and SQL, and predictable name resolution across Azure and data centers. Remote developers also need P2S access to all spokes.

  1. Design address space and segmentation
  1. Establish hub-and-spoke connectivity
  1. Provide private, redundant on-prem connectivity
  1. Centralize egress and protect workloads
  1. Secure PaaS with true private access
  1. Implement hybrid name resolution and conditional forwarding
  1. Enable remote developer access to all spokes
  1. Harden with ASGs and NSGs

This architecture meets Adobe’s requirements with ExpressRoute redundancy, centralized Azure Firewall governance, private PaaS access, and coherent DNS, while ensuring remote users and on-prem systems can securely reach every workload through the hub.


Azure Virtual Machines and Compute · All domains · Azure Load Balancing and Traffic Management

Practice these questions → · Timed practice on ExamRoll.io →

Pass the whole exam — not just this question

You found this answer. Get every verified question and explanation in one place, and save hours of prep. Free to start.

Pass your exam →

Browse Microsoft →

Related guides

All-in-one access

One subscription. Every exam.

Every plan unlocks unlimited answer search, practice tests, AI explanations, and the full resource library — in 20+ languages.

Monthly
24.87
Just €0.83/day
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

Best value
12 months
179.87
Just €0.49/daySave 40%
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

✓ Free plan included · ✓ Cancel anytime · ✓ All plans unlock the full product