Skip to main content
JOELEARNs / AZ-104 / PHASE 04 / COURSE

Azure Networking. Follow the packet.

A green VM status says almost nothing about the network path. Configure effective-route and NSG repairs, restore Private Link DNS and verify load-balancer probes without confusing network reachability with application health.

04 / Virtual Networking11 instructional sections4 interactive workbenchesNo Azure account required
00 / EXAM DOMAIN

Prove where the connection succeeds or fails.

Implement and manage virtual networking represents 15–20% of AZ-104, based on the April 17, 2026 skills measured. This phase covers VNet configuration, secure access, name resolution and load balancing.

  • Design VNets, subnet ranges, private/public IP assignments and appropriate peering.
  • Interpret longest-prefix route selection, UDR next hops, NSG priorities and effective security rules.
  • Administer ASGs, Bastion, service endpoints and private endpoints without confusing authorization with routing.
  • Configure Azure public/private DNS and internal/public load balancers.
  • Build and validate three simulated repair plans: effective routes/NSGs, Private Link DNS and Standard Load Balancer health.
  • Use evidence to test the approved flow and preserve unrelated network restrictions.
Learning progression: Read the operational examples and predict each answer, investigate simulated network gates, configure the three new Build Labs, then complete separate assessed incidents in Practice. Each graded case is different from its worked lesson example.
01 / DESIGN / SUBNETS

Design VNets and their address boundaries

A VNet creates a logical network boundary in an Azure region. Its address spaces contain subnet prefixes, and each subnet hosts supported network interfaces or service resources. Plan for future growth, hybrid routes, peering and management subnets before attaching workloads. Azure reserves five IP addresses within each IPv4 subnet; raw CIDR address count is not the same as assignable VM interface count.

Address space first

Avoid overlapping CIDRs with networks that may be peered, connected by VPN or routed through a virtual appliance. A VNet can have multiple address-space prefixes when supported.

Subnets have jobs

Separate app, database, ingress, private endpoint and delegated-service subnets according to actual controls, service requirements and life cycle.

Reserved addresses

Azure reserves the first four and last IP address of every IPv4 subnet. A /27 provides 32 total IPv4 addresses but only 27 usable addresses.

Service-specific requirements

Bastion, GatewaySubnet and delegated services have naming, size, route-table and policy constraints that can differ from ordinary workload subnets.

Northstar walkthrough: Northstar's new monitoring spoke uses VNet 10.84.0.0/16. The app team wants a /27 monitoring subnet and assumes all 32 IPv4 addresses will be usable by Azure NICs. The design review corrects the estimate to 27 before approving capacity.
When planning a /27 Azure subnet for workload NICs, why is allocating exactly 32 IP-dependent instances unsafe? Reveal the explanation

Azure reserves five IPv4 addresses from each subnet, leaving only 27 assignable addresses in a /27. Capacity planning must also allow for future growth and service-specific requirements.

02 / ADDRESS ASSIGNMENT

Assign private and public IPs without exposing management

Azure NICs receive private addresses from their subnet, using dynamic assignment by default or static allocation when supported. Public IP resources provide inbound public reachability only when attached to an eligible resource and supported networking allows access. A public IP is not a requirement for RDP, SSH or every outbound connection. Public IP SKUs, zone behavior and allocation are deployment decisions.

NIC private IP

Identify the effective subnet, private IP allocation mode and any secondary configurations. Static private addresses should be managed in Azure rather than only configured inside the guest OS.

Public IP resource

A Standard public IP can be associated with supported frontend resources, depending on type and design. A public IP alone does not override NSG or guest firewall rules.

Secure administration

Prefer Azure Bastion, VPN or private connectivity for management. Do not add a public VM IP merely to test whether SSH or RDP works.

Outbound design

Understand NAT Gateway, supported Load Balancer outbound settings and other supported SNAT/egress patterns. An inbound public IP does not automatically define every outbound path.

Northstar walkthrough: A fictional Northstar Linux VM in subnet operations must be maintained without an inbound public IP. The operator checks Bastion or VPN availability and private RDP/SSH paths before making any public-IP change.
Does attaching an Azure public IP automatically allow inbound RDP to a Windows VM? Reveal the explanation

No. NSG rules, guest firewall, listening service, routing and appropriate authorization also matter. A public IP does not bypass those gates.

03 / CONNECT / PEERING

Evaluate VNet peering and nontransitive connectivity

VNet peering connects eligible Azure VNets over the Microsoft backbone, including across supported regions. A peering relationship is configured from both VNet sides to establish the connection. Peering does not automatically transit traffic from Spoke A through Hub to Spoke B; routed transit requires deliberate gateway or network virtual appliance design and appropriate settings.

Both peers count

Inspect each peering state, effective remote address spaces and permissions. A one-sided or disconnected peering relationship is not a working end-to-end link.

Address conflict

Overlapping VNet address spaces prevent ordinary peering; resolve addressing instead of assuming Azure can translate overlapping subnets automatically.

Allow forwarded traffic

Forwarding traffic from a hub NVA into a spoke requires deliberate routing and peering controls. Default direct VNet peering is not automatic spoke-to-spoke transit.

Gateway transit

Use gateway transit/remote gateway only with eligible gateway and peering configurations; avoid claiming the same VNet can consume multiple remote gateways without design review.

Northstar walkthrough: VNet-A and VNet-B both peer to VNet-Hub. An app owner assumes A can reach B because each can reach the hub. The engineer explains that direct connectivity between the spokes requires an explicit route/forwarding architecture.
Does peering both Spoke A and Spoke B with a hub automatically enable transparent A-to-B transit? Reveal the explanation

No. VNet peering is not transitive. Connectivity between spokes needs a deliberate direct peering or a routed transit design with suitable forwarding and security configuration.

04 / ROUTING / NEXT HOP

Read effective routes and user-defined routes

Azure creates system routes for VNet, peering and default destinations. A subnet can be associated with a route table containing user-defined routes (UDRs), including next-hop types such as virtual appliance, virtual network gateway, Internet and None. Evaluate longest-prefix match first, then route-source precedence where applicable. An NVA next hop requires that appliance to actually forward traffic.

Longest prefix wins

A route for 10.92.4.0/24 is more specific than 10.92.0.0/16. The most specific applicable destination prefix usually decides which path is used.

User-defined overrides

For equal prefix lengths, Azure generally prefers UDRs over BGP and system routes, subject to Azure service-specific preferred-route exceptions.

None is a blackhole

A UDR with next hop None discards matching traffic. It does not 'skip' the route table and fall back to a broader route.

Virtual appliance

A route to an NVA directs traffic to its private IP; actual success depends on NVA availability, IP forwarding, firewall policy and return route.

Northstar walkthrough: A fictional app subnet has an explicit 10.92.4.0/24 route to None and a broader 10.92.0.0/16 peering route. Traffic to 10.92.4.23 follows the more-specific blackhole, regardless of peering health.
Which route is selected for 10.92.4.23 when /24 directs to None and /16 directs to a peered VNet? Reveal the explanation

The /24 route is the longer prefix match, so matching traffic is dropped by the None next hop. Examine effective routes before changing NSGs.

05 / FILTERING / STATE

Analyze NSG priorities, effective rules and ASGs

Network security groups are stateful allow/deny filters for supported traffic at subnet and NIC associations. Rules include direction, protocol, source, destination, ports and priority, with lower numeric priority evaluated first. If an NSG applies at both subnet and NIC, inspect both effective rule sets; an allow in one place cannot automatically override a deny in another. Application security groups (ASGs) provide group-based addressing for eligible NIC-based rule scopes.

Priority is numeric

A rule at priority 200 takes precedence over a matching rule at 450 in the same NSG and direction. Once a rule matches, later rules in that NSG are not evaluated.

Stateful traffic

NSGs track flows; established return traffic is generally allowed for a permitted connection without a separate mirrored rule. New flows need correct direction-specific authorization.

Default rules

Default VNet and AzureLoadBalancer allows and deny-all rules exist with low precedence. Specific custom rules can override matching default behavior.

Effective view

Use effective security rules and IP flow verification, checking subnet and NIC associations plus ASG membership. NSGs don't authenticate applications.

Northstar walkthrough: An operations NIC allows inbound 443 in its NIC NSG, but an associated subnet NSG denies 443 at a higher-priority matching rule. Traffic is blocked. Review the complete effective security path instead of adding another NIC allow.
Can an inbound allow on a NIC NSG always override an inbound deny at the subnet NSG? Reveal the explanation

No. Both applicable NSGs are evaluated. A deny at the subnet boundary can block the flow despite a separate NIC-level allow.

BUILD LAB 01 / AZ-104 NETWORKING

Repair effective routes and NSG priorities

A VM in VNet-App (10.84.1.14) must connect to a directly peered app backend (10.84.4.25) over TCP 443. A new /24 UDR points the traffic to an unapproved appliance, and an NSG Deny at priority 300 shadows an Allow at 500.

NS-NET-041 / Client 10.84.1.14 → backend 10.84.4.25:443

Simulated evidence: NIC effective routes include 10.84.4.0/24 → Virtual appliance 10.84.99.4 (UDR). The directly peered VNet path exists but loses to that matching user route. On the backend, inbound Deny priority 300 blocks the intended subnet.

Configure the investigation or repair, then validate. Each incorrect choice receives actionable feedback.

Reveal effective-route and IP flow verification steps

Read Azure's effective route list on the source NIC, identify the route selected by longest prefix and route source, then inspect the combined subnet/NIC NSG rules. The test needs the specific source, destination, protocol and port; a passing effective route alone is insufficient.

az network nic show-effective-route-table --resource-group RG-Northstar --name nic-app-01 -o table
az network nic list-effective-nsg --resource-group RG-Northstar --name nic-app-01 -o json
# Verify the approved flow using Network Watcher IP flow verify/connection troubleshoot.
Microsoft: effective route diagnosis ↗Microsoft: NSG effective rules and IP flow verify ↗

Account-free educational simulation. These choices model a fictional environment; they do not query an Azure subscription, calculate actual effective routes/NSGs, resolve DNS, test application ports, or verify a real health probe. Test changes and permissions in an authorized Azure environment before operational use.

06 / OPERATIONS / DIAGNOSTICS

Troubleshoot connectivity with layered evidence

A timeout can result from DNS, route selection, peering, NSG, guest firewall, process listener, private endpoint or load-balancer health. Gather the source and target addresses, protocol, destination port and observed failure before changing a policy. Azure Network Watcher tools can expose effective routes, effective security rules, next hop and IP flow verification; Connection Monitor provides ongoing path observations.

Start with name and IP

Resolve the intended FQDN from the actual client. Test direct IP only when appropriate and record whether the symptom changes.

Check route and peer

Inspect effective routes, gateway propagation, peering state and intended return path. An NVA may be an intentional middle hop rather than a failure.

Check traffic rules

Use Network Watcher IP flow verify and effective security rules to locate an NSG deny; do not assume an NSG allow proves guest OS firewall is open.

Validate the listener

Verify target service, TLS, process binding and dependency health. An Azure VM can be Running while no process listens on the intended port.

Northstar walkthrough: A peered test API resolves to the correct private address and Network Watcher reports an allowed next hop, but TCP 8443 still times out. The next step is to inspect NSGs and application listeners, not delete the working peering.
If DNS and effective routes look correct, does that automatically prove that TCP 8443 is reachable? Reveal the explanation

No. NSG rules, guest firewalls, service listeners, downstream dependencies and path return traffic can still block the connection.

07 / SECURE MANAGEMENT

Administer VMs through Azure Bastion

Azure Bastion provides managed RDP/SSH access to eligible VMs by private IP and can reduce the need for public IP addresses on the VMs. Dedicated tiers use the appropriately named AzureBastionSubnet, compatible subnet size and supported host settings; actual requirements differ for Developer and private-only Premium architectures. Access still requires suitable Azure resource visibility, guest sign-in permissions, NSG paths and a healthy service.

No VM public IP required

A Bastion session uses private access to the target VM. Removing VM public IPs does not remove the need for secure management design.

SKU and subnet

Check current Bastion SKU feature support, AzureBastionSubnet requirements, public IP model and region capabilities; don't assume every tier supports every connection mode.

User permissions

Management-plane visibility and guest OS sign-in permissions remain necessary. Bastion is not a tenant-wide authorization bypass.

Security and monitoring

Review NSG rules for Bastion subnet/VM communication, session auditing where supported and whether private-only hosting is necessary.

Northstar walkthrough: Northstar plans a production jump-box alternative. Instead of attaching public IPs to each Windows VM, the team designs Bastion placement and documents which engineer roles can initiate the session.
Does deploying Bastion mean any employee can automatically sign in to every VM in the VNet? Reveal the explanation

No. Bastion provides an approved connection path, not unlimited Azure RBAC or guest OS credentials.

08 / PaaS / NETWORK BOUNDARY

Separate service endpoints from private endpoints

A virtual network service endpoint extends VNet identity to supported Azure PaaS service endpoints and works with service-side VNet access rules; the service generally still uses its public endpoint address. A private endpoint creates a private IP interface in your VNet for an approved subresource. They are different access patterns, and neither automatically grants application data permissions.

Service endpoint behavior

A subnet service endpoint plus matching service firewall virtual-network rule can restrict supported PaaS access without providing a private IP for the service itself.

Private endpoint behavior

An approved private endpoint maps a supported PaaS subresource, such as blob or file, to a private IP. Correct DNS resolution and routable path are crucial.

Separate subresources

For Azure Storage, blob and file subresources commonly need their own private endpoints to enable the corresponding private access path.

Access does not imply auth

Network reachability is one gate. Entra roles, SAS permissions or service-level authorization remain independently enforced.

Northstar walkthrough: An Azure SQL client is asked to use a private IP through Private Link. The design must use an appropriate private endpoint and name resolution; a service endpoint alone doesn't create that private IP.
Does enabling a VNet service endpoint turn an Azure Storage account's public Blob endpoint into a private IP on the client subnet? Reveal the explanation

No. Service endpoints use a service public endpoint plus VNet-aware access rules. Private endpoints provide a private IP within the VNet for the selected service resource.

09 / DNS / PRIVATE ZONES

Resolve Private Link names and Azure DNS correctly

Azure DNS hosts public DNS zones while Azure Private DNS zones serve associated virtual networks. With Private Link, clients should ordinarily continue using the service's regular FQDN, with records and links/forwarders leading to the intended private IP. A healthy private endpoint with a public-IP DNS answer can still leave a client blocked by disabled public network access. Custom DNS servers may require deliberate forwarding to Azure-provided DNS for private zones.

Public zones

Azure DNS can host authoritative public records for a delegated domain. It does not, by itself, configure your guest VM's DNS resolver or the correct private endpoint records.

Private zone links

Link the appropriate private DNS zone to querying VNets and confirm records for the correct service-specific Private Link subresource.

Custom DNS resolvers

When clients use custom DNS, plan forwarding/resolution for Azure private zones and validate from the actual client subnet.

Validate FQDN and path

Inspect nslookup/dig, intended target IP, resolved hostname, route and network rules before changing a data role or SAS.

Northstar walkthrough: A fictional Northstar storage account has a private endpoint for blob, but a remote management subnet resolves the storage hostname to its public IP. The engineer tests private zone linking/forwarding first, not an account-key rotation.
Can a private endpoint resource show Succeeded while a specific client still resolves the service hostname publicly? Reveal the explanation

Yes. Endpoint provisioning and client DNS resolution are separate. Verify private DNS zone links, records, custom DNS forwarding and client-side resolution.

BUILD LAB 02 / AZ-104 NETWORKING

Repair a Blob Private Link DNS chain

An approved application must reach a private Blob endpoint at 10.84.7.5 using the ordinary storage account hostname. Clients currently resolve a public address; no firewall or RBAC workaround is authorized.

NS-NET-052 / storage FQDN resolution

Client query: nstarchive.blob.core.windows.net. Expected resolution through the Private Link CNAME and private DNS zone: nstarchive.privatelink.blob.core.windows.net → 10.84.7.5. This scenario assumes a private endpoint approved for Blob and an application with valid data permissions.

Configure the investigation or repair, then validate. Each incorrect choice receives actionable feedback.

Reveal DNS investigation sequence

From the actual client, inspect the storage FQDN, the Private Link CNAME/A resolution, the private endpoint's network interface and its private DNS zone group. Verify the VNet link or supported custom/hybrid DNS forwarding route. Do not replace the public storage zone or turn on anonymous access to compensate for name-resolution errors.

nslookup nstarchive.blob.core.windows.net
az network private-endpoint show --resource-group RG-Northstar --name pe-nstarchive-blob
az network private-dns zone list --resource-group RG-Network
az network private-dns record-set a list --resource-group RG-Network --zone-name privatelink.blob.core.windows.net
# Follow with a client-side TCP 443 and authenticated Blob read test.
Microsoft: Private Endpoint DNS troubleshooting ↗Microsoft: Private Link reachability vs authorization ↗

Account-free educational simulation. These choices model a fictional environment; they do not query an Azure subscription, calculate actual effective routes/NSGs, resolve DNS, test application ports, or verify a real health probe. Test changes and permissions in an authorized Azure environment before operational use.

10 / L4 / BACKEND HEALTH

Operate internal and public Azure Load Balancers

Azure Load Balancer distributes eligible Layer 4 TCP/UDP flows across configured backend pools according to rules and health probes. A public load balancer exposes a public frontend address for intended traffic; an internal load balancer uses a private frontend within a VNet. A healthy VM power state does not ensure that a health probe succeeds or that app traffic works. Layer 7 features are the domain of other services such as Application Gateway.

Public and internal frontend

Choose a public IP frontend for intended internet-facing access, or a private IP frontend for private VNet traffic. Verify inbound and backend requirements.

Load-balancing rules

Check frontend port, backend port, protocol, backend pool, persistence behavior and configured health probe.

Health probes

A VM can be Running while a probe fails because the listener port, path, NSG or app readiness is wrong. An unhealthy backend typically won't receive new eligible flows.

SNAT and outbound

For workloads needing outbound connectivity, confirm the intended NAT Gateway or supported Load Balancer outbound plan and avoid depending on implicit internet access.

Northstar walkthrough: Northstar's internal API answers HTTP on port 8088 but its load balancer probe checks an old health path returning 404. The engineer checks the probe contract and listener before changing unrelated peering.
Does an Azure Load Balancer operate as a Layer 7 application proxy that automatically fixes wrong HTTP health endpoints? Reveal the explanation

No. Azure Load Balancer is a Layer 4 service with configurable probes/rules; inspect the actual probe, listener and backend health.

BUILD LAB 03 / AZ-104 NETWORKING

Restore a Standard Load Balancer backend pool

Northstar's internal service accepts client TLS on port 443, but the backend listens on 8443. The application exposes a separate HTTP /health check on port 8080. The pool reports unhealthy despite both VMs showing Running.

NS-NET-063 / Internal application gateway

Approved: private frontend, two existing backend VMs, frontend TCP 443 → backend TCP 8443, HTTP /health probe on TCP 8080. A new high-priority NSG Deny blocks Azure Load Balancer probes, and the previous probe still checks port 80.

Configure the investigation or repair, then validate. Each incorrect choice receives actionable feedback.

Reveal health probe troubleshooting checklist

Identify backend pool membership and the rule, confirm that each backend listens on the application and probe ports, then inspect probe protocol/path and effective NSGs. Azure Load Balancer probes use 168.63.129.16. A high-priority custom Deny can block probes despite the default service-tag Allow. Do not open the workload broadly to the Internet.

az network lb show --resource-group RG-Northstar --name lb-northstar-internal
az network lb probe list --resource-group RG-Northstar --lb-name lb-northstar-internal -o table
az network nic list-effective-nsg --resource-group RG-Northstar --name nic-api-01
# Validate HTTP 200 on the probe port from each backend, then test the real client path.
Microsoft: probe failure diagnosis ↗Microsoft: health probe behavior ↗

Account-free educational simulation. These choices model a fictional environment; they do not query an Azure subscription, calculate actual effective routes/NSGs, resolve DNS, test application ports, or verify a real health probe. Test changes and permissions in an authorized Azure environment before operational use.

11 / VERIFY / NON-REGRESSION

Close an Azure network change with evidence

Network changes can have a large blast radius because an NSG, UDR or DNS zone link affects more than one VM. Record the approved source, destination, protocol and exact resource scope. Validate effective routes, security rules, name resolution and application behavior. Repeat checks from a client that should remain blocked so remediation doesn't accidentally expose a service.

Trace the full path

Document source subnet/NIC, target FQDN and private/public IP, next hop, outbound/inbound policy, listener and successful response.

Capture the change scope

Record exactly which NSG rule, peering, route, DNS record, load-balancer probe or endpoint connection changed. Preserve rollback data.

Positive and negative tests

Check the allowed client and a deliberately unauthorized source. An allow-all rule can mask the original problem and weaken isolation.

Operational handoff

Include monitoring, failure impact, owner, maintenance window and evidence of both service recovery and unchanged adjacent paths.

Northstar walkthrough: A route change restores one application but sends unrelated database traffic through a different appliance. The change is not complete until the original app and critical adjacent network paths are both validated.
What makes an Azure network repair complete beyond one successful client connection? Reveal the explanation

Verify the intended service, keep approved isolation controls, test explicitly denied sources, inspect impacted adjacent paths and record route/NSG/DNS configuration plus rollback evidence.

12 / EXPLORE AN AZURE FLOW

Which gate actually blocks the path?

Test two different targets: a VM in a directly peered VNet and a Blob service reached through a private endpoint. The workbench deliberately treats DNS, routing and policy as distinct gates; it never claims that a valid Azure NSG alone proves successful application delivery.

INTERACTIVE / NORTHSTAR CONNECTION TRACE

Which gate blocks this connection?

Change a single control to see which part of the hypothetical path fails. The path is modeled, not connected to a real Azure tenant.

SOURCE / 10.84.1.14

Peer VNet database VM

Source: VNet-App 10.84.1.0/24 → VNet-Data 10.92.4.0/24

01
DNS / target

Hostname resolves to intended private target 10.92.4.23

PASS
02
VNet peering

Both directional peering connections established

PASS
03
Effective route

System route to peered address space selected

PASS
04
Source outbound NSG

Selected TCP flow has matching outbound allow

PASS
05
Destination inbound NSG

Matching inbound allow exists for this destination and protocol

PASS
06
Port / application

Application listener is responding in the simplified model

PASS
Path may succeed in this model

All simplified gates pass. Real application success also requires guest firewall, actual route, service authorization, TLS and platform state.

Four experiments to test your reasoning
  1. Choose the peered VM, then a more-specific UDR to None. Which evidence would Network Watcher Next hop provide?
  2. Restore the route, then deny TCP 443 in the destination NSG. Does changing DNS help?
  3. Switch to the Blob private endpoint and change the DNS answer to a public address. Why wouldn't adding an Azure data role solve the route?
  4. Restore all selected gates but choose an unavailable listener. Why isn't a green NSG result equivalent to a healthy application?

Teaching model limits: not a full Azure routing engine or packet capture. It models one source/destination and simplified known rules. Real NSG evaluation includes rule priorities, NIC/subnet associations, stateful flow tracking and private-endpoint network policy conditions. Azure service routing has exceptions; effective routes, private DNS, guest firewall, endpoint approval, authorization and return-path behavior must be independently checked. An NVA route is deliberately marked unresolved, not automatically allowed or denied.

Remember: Azure networking has both control-plane and data-plane evidence. A correct UDR is not a healthy appliance, and a reachable private endpoint does not grant Blob data access.
13 / INDEPENDENT INVESTIGATIONS

New tickets, new evidence, no repeated tasks.

Phase 04 Practice uses original Northstar cases to test VNet address planning, peering and routes, NSG effective rules, Bastion/private access, Azure DNS and load balancing. Solve each separate ticket from its own evidence after completing the three configuration labs and the packet-path explorer; no graded case repeats the walkthrough.

01 / Locate

Identify the right client, destination, port and failing gate.

02 / Remediate

Make the smallest authorized correction.

03 / Verify

Test the approved path and make sure unwanted paths stay blocked.

14 / OFFICIAL REFERENCES

Check service-specific behavior before production changes.

This course references the April 17, 2026 AZ-104 objective list; current region/SKU features and service limits can change. The path explorer is an educational simplified model and does not compute actual Azure SLA or effective route tables.

CONTINUE YOUR LEARNING PATH · AZ-104: AZURE ADMINISTRATOR

Complete the Practice milestone

You've reached the end of this written lesson. Your next step is practice: Networking · Independent Practice. Complete that milestone before moving to the following lesson. You can revisit the explanation whenever you need it. Next: milestone 8 of 11.

Your completion marks are saved in this browser only.