Study guide

10.1 Network Watcher Diagnostic Tools

Designing and Implementing Microsoft Azure Networking Solutions AZ-700

Track your progress as you read

Finished sections get a check mark.

1 Introduction & AZ-700 Exam Overview

0.1 About the AZ-700 Exam: Format, Scoring & Skills Measured

2 Chapter 1: Azure Virtual Networks, Addressing & Subnet Architecture

1.1 VNet Planning, IP Addressing & Subnet Design 1.2 Virtual Network Peering & Global Peering 1.3 Azure NAT Gateway & Outbound Connectivity 1.4 Azure Virtual Network Manager (AVNM) & Network Groups 1.5 Public IP Addresses, Public IP Prefixes & Custom IP Prefixes (BYOIP)

3 Chapter 2: Azure Name Resolution & Core Routing

2.1 Azure DNS & Private DNS Zones 2.2 Azure Private DNS Resolver & Hybrid Name Resolution 2.3 System Routes & User-Defined Routes (UDR) 2.4 BGP & Custom Route Propagation 2.5 Azure Route Server & Dynamic NVA Route Exchange

4 Chapter 3: Hybrid Connectivity with Azure VPN Gateway

3.1 Azure VPN Gateway Architecture & SKUs 3.2 Site-to-Site (S2S) VPN & High Availability 3.3 Point-to-Site (P2S) VPN & Client Authentication 3.4 Azure Extended Network, Always On VPN & Azure Network Adapter

5 Chapter 4: Azure ExpressRoute & Virtual WAN

4.1 Azure ExpressRoute Architecture & Peering Models 4.2 ExpressRoute Routing, Resiliency & Global Reach 4.3 Azure Virtual WAN Architecture & Hub Routing 4.4 ExpressRoute BFD, Monitoring & Connection Troubleshooting

6 Chapter 5: Regional Load Balancing & Application Gateway

5.1 Azure Load Balancer Architecture & Rules 5.2 Azure Application Gateway Architecture & Routing 5.3 Web Application Firewall (WAF) on Application Gateway 5.4 Inbound NAT Rules, Port Forwarding & Health Probe Design

7 Chapter 6: Global Traffic Management & Azure Front Door

6.1 Azure Front Door Architecture & Routing 6.2 Azure Traffic Manager & DNS Load Balancing 6.3 Load Balancing Decision Matrix & Multi-Tier Design 6.4 Web Application Firewall on Azure Front Door

8 Chapter 7: Azure Private Link & Service Endpoints

7.1 Virtual Network Service Endpoints & Policies 7.2 Azure Private Endpoints & Private Link Architecture 7.3 Private Endpoint DNS Integration & Hybrid Resolution 7.4 Azure Private Link Service for Multi-Tenant Solutions

9 Chapter 8: Network Security Groups & Azure Bastion

8.1 Network Security Groups (NSGs) & Application Security Groups (ASGs) 8.2 Azure Bastion Architecture & Secure Remote Access 8.3 Azure Virtual Network Manager Security Admin Rules

10 Chapter 9: Azure Firewall & Security Policies

9.1 Azure Firewall Architecture & Rule Processing 9.2 Azure Firewall Manager & DDoS Protection

11 Chapter 10: Azure Network Observability & Troubleshooting

10.1 Network Watcher Diagnostic Tools 10.2 NSG Flow Logs, VNet Flow Logs & Traffic Analytics 10.3 Network Troubleshooting Scenarios & End-to-End Connectivity 10.4 Azure Monitor Network Insights & Defender for Cloud Network Posture

10.1 Network Watcher Diagnostic Tools

Key Takeaways Explain This Topic AI

Azure Network Watcher is enabled automatically on a per-region basis and deployed into the default 'NetworkWatcherRG' resource group under the 'Microsoft.Network/networkWatchers' resource provider.

IP Flow Verify uses the 5-tuple (source/destination IP, source/destination port, protocol) to validate whether an NSG rule permits or denies traffic, returning the exact matching rule name.

Next Hop diagnoses routing path divergence by returning the NextHopType (VirtualAppliance, VirtualNetworkGateway, VnetLocal, Internet, None) and target IP based on longest prefix match route evaluation.

Effective Security Rules and Effective Routes evaluate the consolidated NIC-level state, aggregating subnet and NIC NSGs and merging system, UDR, and BGP routes to uncover hidden conflicts.

Packet Capture runs on Azure VMs and VMSS via the Network Watcher VM Agent extension, capturing raw .cap traces to an Azure Storage account or local disk with configurable protocol, port, byte, and duration limits.

Last updated: August 2026

Network Watcher Diagnostic Tools

Azure Network Watcher is a regional, cloud-native monitoring and network diagnostic service designed to inspect, monitor, and diagnose conditions in Azure Software-Defined Networking (SDN) infrastructure. In modern enterprise environments, diagnosing connectivity failures requires distinguishing between software-defined network boundary drops (NSGs), routing path misconfigurations (UDRs and BGP propagation), platform-level translation barriers (NAT/Firewalls), and in-guest operating system faults.

Understanding which Network Watcher diagnostic tool to apply at each phase of a troubleshooting workflow—and whether a given capability requires a dedicated VM extension or operates purely against the Azure management control plane—is a core objective for the AZ-700 exam.

1. Network Watcher Architecture & Regional Enablement

Unlike global management services such as Azure Monitor, Azure Network Watcher operates within a strict regional boundary :

Automatic Regional Enablement: Azure automatically creates a Network Watcher instance whenever a virtual network is created in an Azure subscription and region. These instances reside in a system-managed resource group named NetworkWatcherRG (for example, NetworkWatcher_eastus in the NetworkWatcherRG resource group).

Resource Provider: Network Watcher relies on the Microsoft.Network/networkWatchers resource provider. If this resource provider is disabled or deregistered, Network Watcher tools cannot interact with virtual networks in that region.

Regional Scope Constraint: Network Watcher diagnostic tools can only target resources (VMs, NICs, subnets, VNets) located in the same geographic region as the Network Watcher instance.

Agentless vs. Agent-Based Tools:

Agentless (Control-Plane / SDN-based): Tools such as IP Flow Verify , Next Hop , Effective Security Rules , and Effective Routes query Azure's underlying SDN fabric directly. They do not require any software agent inside the virtual machine, and they function even if the VM is deallocated or the guest OS is unresponsive.

Agent-Based (Data-Plane / In-Guest): Tools such as Packet Capture and Connection Monitor require the Azure Network Watcher Agent VM Extension ( AzureNetworkWatcherExtension on Windows or NetworkWatcherAgentLinux on Linux) to capture raw frame buffers and generate synthetic Layer 4/7 test traffic.

Loading diagram... Azure Network Watcher Control-Plane vs In-Guest Diagnostic Architecture

2. IP Flow Verify & Next Hop Deep Dive

When a network engineer needs to determine whether a traffic flow is failing due to security filtering or incorrect routing, IP Flow Verify and Next Hop represent the first line of rapid diagnosis.

IP Flow Verify

IP Flow Verify tests whether a packet is permitted or denied based on the complete Layer 3/4 5-tuple parameters. It evaluates all Network Security Groups (NSGs) applied at both the Subnet level and the Network Interface (NIC) level, alongside Azure default rules. +-----------------------------------------------------------------------------+

  • | IP FLOW VERIFY INPUT & OUTPUT |
  • | |
  • | INPUT PARAMETERS: |
  • | - Target Resource: Target VM / Target Network Interface (NIC) |
  • | - Direction: Inbound OR Outbound |
  • | - Protocol: TCP OR UDP |
  • | - Local IP & Port: e.g., 10.1.0.4 : 443 |
  • | - Remote IP & Port: e.g., 198.51.100.25 : 51234 |
  • | |
  • | EVALUATION ENGINE: |
  • | - Subnet NSG Inbound/Outbound Rules (Priority 100-4096) |
  • | - NIC NSG Inbound/Outbound Rules (Priority 100-4096) |
  • | - Default Platform Rules (Priority 65000-65500) |
  • | |
  • | OUTPUT RESULT: |
  • | - Access: 'Access Allowed' OR 'Access Denied' |
  • | - Matched Rule: Exact name of the NSG rule that made the decision |
  • | - Resource Group / NSG Name: Exact resource ID of the enforcing NSG |
  • +-----------------------------------------------------------------------------+

Important

Scope Limitations of IP Flow Verify: IP Flow Verify only evaluates NSG security rules. It does not evaluate Azure Firewall policies, User-Defined Routes (UDRs), OS-level firewalls (such as Windows Defender Firewall or Linux iptables/nftables), or Load Balancer NAT rules. A result of Access Allowed means the packet passes Azure NSG filters, but it does not guarantee end-to-end delivery if an OS firewall or route table drops the packet.

Next Hop

Next Hop determines the next hop type and IP address for traffic destined to a specific target IP from a source virtual machine. Azure evaluates routes using the Longest Prefix Match (LPM) algorithm across three route sources: User-Defined Routes (UDRs), BGP-propagated routes (ExpressRoute / VPN Gateway), and System Default routes.

NextHopType Architectural Meaning Common Diagnostic Indicator

VirtualAppliance Routed to a Network Virtual Appliance (NVA) or Azure Firewall private IP. Confirms UDR is actively redirecting traffic through a firewall cluster.

VirtualNetworkGateway Routed to an Azure VPN Gateway or ExpressRoute Gateway. Confirms cross-premises hybrid transit or inter-VNet gateway transit.

VnetLocal Routed directly within the VNet, peered VNet, or connected Private Endpoint. Traffic stays within the Azure SDN fabric without leaving the virtual network.

Internet Routed to the public Internet via Azure default outbound routing or NAT Gateway. Confirms traffic is egressing directly without traversing an on-premises proxy.

None Traffic is blackholed (dropped). Indicates an intentional or misconfigured drop route ( 0.0.0.0/0 -> None ). # Azure CLI: Verifying Next Hop for a VM targeting an on-premises database

  • az network watcher show-next-hop \
  • -resource-group RG-Networking \
  • -vm VM-Frontend-01 \
  • -source-ip 10.1.0.4 \
  • -dest-ip 192.168.100.50

3. Effective Security Rules & Effective Routes

Complex enterprise networks often feature multi-tier NSGs (applied to both subnets and individual NICs) alongside multiple route tables and BGP route advertisements. Diagnosing configuration drift across these layers requires inspecting the Effective state as computed by Azure SDN. +-----------------------------------------------------------------------------+

  • | EFFECTIVE SECURITY RULES EVALUATION MODEL |
  • | |
  • | [ INBOUND TRAFFIC FLOW ] |
  • | 1. Evaluates Subnet NSG Rules (Ordered by Priority: 100 -> 4096) |
  • | - If explicitly DENIED -> Packet Dropped Immediately |
  • | - If explicitly ALLOWED -> Moves to Step 2 |
  • | 2. Evaluates NIC NSG Rules (Ordered by Priority: 100 -> 4096) |
  • | - If explicitly DENIED -> Packet Dropped Immediately |
  • | - If explicitly ALLOWED -> Packet Reaches VM NIC |
  • | |
  • | [ OUTBOUND TRAFFIC FLOW ] |
  • | 1. Evaluates NIC NSG Rules (Ordered by Priority: 100 -> 4096) |
  • | - If explicitly DENIED -> Packet Dropped Immediately |
  • | - If explicitly ALLOWED -> Moves to Step 2 |
  • | 2. Evaluates Subnet NSG Rules (Ordered by Priority: 100 -> 4096) |
  • | - If explicitly DENIED -> Packet Dropped Immediately |
  • | - If explicitly ALLOWED -> Packet Egresses Subnet |
  • +-----------------------------------------------------------------------------+
  • Effective Security Rules Inspection

Consolidated View: Displays all security rules impacting a specific NIC, grouping them by Subnet association, NIC association, and Default rules.

Overriding Logic: Identifies when an NSG rule at the subnet level is nullified or blocked by an NSG rule at the NIC level (or vice versa).

Expanded ASGs: Automatically resolves Application Security Groups (ASGs) into their underlying private IP addresses, showing exact matching criteria.

Effective Routes Inspection

Active Forwarding Table: Displays the live Forwarding Information Base (FIB) of the target NIC.

State Flags:

Active : The route currently in effect for traffic matching the prefix.

Invalid : A route that is overridden by a more specific prefix (Longest Prefix Match) or disabled due to an invalid next hop IP (e.g., an NVA IP that is unreachable or outside the subnet).

BGP Propagation Verification: If Propagate gateway routes is disabled on a route table, BGP routes will be absent from Effective Routes, explaining why on-premises subnets are unreachable.

4. Connection Troubleshoot & Connection Monitor

While IP Flow Verify and Next Hop test static SDN policy and route tables, Connection Troubleshoot and Connection Monitor test dynamic, active data-plane packet delivery. +-----------------------------------------------------------------------------+

  • | CONNECTION TROUBLESHOOT VS CONNECTION MONITOR |
  • | |
  • | Capability Connection Troubleshoot Connection Monitor |
  • | -------------------- ----------------------- ------------------ |
  • | Execution Model Ad-hoc / Instantaneous Continuous / Scheduled |
  • | Probing Protocols TCP, ICMP TCP, ICMP, HTTP, HTTPS |
  • | Multi-Cloud / On-Prem No (Azure VM source only) Yes (Hybrid Agents) |
  • | Hop-by-Hop Topology Yes (Single trace) Yes (Historical graphs) |
  • | Automated Alerting No Yes (Azure Monitor) |
  • | Configuration Storage None (Ephemeral test) ARM Resource / Workspace|
  • +-----------------------------------------------------------------------------+
  • Connection Troubleshoot

Instantaneous Point-in-Time Test: Probes Layer 4 connectivity from a source Azure VM (with Network Watcher Agent) to a destination (Azure VM, FQDN, URI, or IPv4 address).

Diagnostic Output:

Status: Reachable or Unreachable .

Round-Trip Latency: Minimum, average, and maximum latency in milliseconds.

Hop-by-Hop Breakdown: Identifies every intermediate network hop, including virtual network peering, Azure Firewall, NVAs, and gateway endpoints.

Root Cause Detection: Returns explicit fault reasons such as UserDefinedRouteReason , NetworkSecurityRuleReason , or GuestFirewallReason (detecting when an OS-level firewall blocks SYN packets).

Connection Monitor (V2 Unified Architecture)

Connection Monitor provides unified, continuous connectivity monitoring across hybrid, multi-cloud, and Azure cloud networks.

Test Groups: Logical groupings of sources, destinations, and test configurations.

Test Configurations: Specifies protocol (TCP, ICMP, HTTP/HTTPS), test frequency (e.g., every 30 seconds), target port, and performance thresholds (acceptable latency and packet loss %).

Diagnostic Alerts: Directly triggers Azure Monitor action groups when round-trip latency exceeds baseline SLAs or packet loss exceeds threshold limits.

5. Packet Capture on Virtual Machines and Scale Sets

When packet loss, protocol negotiation failures, or payload corruption cannot be identified through high-level logs, Network Watcher Packet Capture allows security and network engineers to capture raw network frames directly on Azure VMs and Virtual Machine Scale Sets (VMSS). +-----------------------------------------------------------------------------+

  • | PACKET CAPTURE CONFIGURATION MODEL |
  • | |
  • | [ Target VM / VMSS Instance ] <--- Network Watcher Agent VM Extension |
  • | | |
  • | |--- Captures Raw Frames (.cap) |
  • | | |
  • | +-----------------------------------+ |
  • | | | |
  • | v v |
  • | [ Azure Storage Account ] [ Local VM Disk Path ] |
  • | - Blob Container: 'network-captures' - Windows: C:\captures\trace.cap |
  • | - URI: https://mystorage.blob... - Linux: /var/captures/trace.cap |
  • | - Centralized SecOps analysis - Rapid local debugging |
  • +-----------------------------------------------------------------------------+
  • Core Configuration Parameters & Safeguards

Storage Destination:

Azure Storage Account: Writes .cap files directly to a designated blob container. Recommended for multi-VM captures and centralized Wireshark analysis.

Local File: Writes to a local file system path on the target VM.

Dual Storage: Both blob storage and local file paths can be configured simultaneously.

Capture Filters (Protocol, IP, and Port):

Protocol: Filter by TCP , UDP , or Any .

Local / Remote IP Address: Limit captures to specific communication partners.

Local / Remote Port: Limit capture to target ports (e.g., port 443 or 1433 ) to prevent capturing massive background traffic.

Safety & Resource Safeguards:

Maximum Duration (seconds): Default is 18,000 seconds (5 hours); session stops automatically once reached.

Maximum Capture Size (bytes): Default is 1,073,741,824 bytes (1 GB); capture terminates when limit is reached to protect disk and storage quotas.

Bytes Per Packet (Truncation / Slicing): Limits the number of bytes captured per frame (e.g., capturing the first 128 bytes captures L3/L4 headers while omitting sensitive payload data and conserving storage).