D4 · Networking

Network Monitoring

Azure Network Watcher is the hub for network diagnostics and monitoring. The AZ-104 evaluates its diagnostic tools: IP Flow Verify, Next Hop, NSG Flow Logs, and Connection Monitor for connectivity troubleshooting.

Azure Network Watcher

Azure Network Watcher is a regional service for monitoring, diagnosing, and visualizing network metrics in Azure. It is enabled automatically per region when network resources are created. It provides tools to diagnose connectivity issues, capture packets, view routes, and analyze traffic.

Connectivity diagnostics

  • →IP Flow Verify — is this traffic blocked by an NSG?
  • →Next Hop — where does this packet go?
  • →Effective Security Rules — all applied NSG rules
  • →Connection Monitor — continuous connectivity monitoring
  • →Connectivity Check — tests a specific path

Capture and analysis

  • →Packet Capture — packet capture on the VM
  • →NSG Flow Logs — logs of accepted/rejected TCP/UDP flows
  • →Traffic Analytics — analysis of NSG Flow Logs with Log Analytics
  • →VPN Diagnostics — VPN Gateway diagnostics

Topology visualization

  • →Topology — visual map of network resources in a VNet
  • →Connection Troubleshoot — diagnostics for VM-to-VM or VM-to-URL connections
  • →Reachability Analysis — checks whether a destination is reachable

IP Flow Verify

IP Flow Verify answers the question: "Why can't I connect from this VM to this IP on this port?". It evaluates the rules applied to the VM's NIC and subnet, and tells you exactly which rule allows or blocks the traffic.

Required inputs

• VM and NIC: the source virtual machine

• Direction: Inbound or Outbound

• Protocol: TCP or UDP

• Local IP: the NIC's private IP

• Local port: source port

• Remote IP: destination IP of the traffic

• Remote port: destination port

Diagnostic output

Allow

Name of the NSG rule that allows the traffic. E.g.: AllowHTTPSFromInternet (priority 100)

Deny

Name of the NSG rule that blocks the traffic. E.g.: DenyAllInBound (priority 65500)

Only checks NSGs — does not check routing, Azure Firewall, or OS firewall.

Next Hop

Next Hop answers: "Where does traffic from this VM to this IP go out?". It evaluates the effective route table (system routes + UDRs) and shows the next hop — important for verifying that routing is as expected or for detecting incorrect routes.

Types of next hop it can show

VirtualNetworkTraffic within the same VNet — direct routing
InternetTraffic exits to the internet via the default route
VirtualNetworkGatewayTraffic goes to the or Gateway
VirtualApplianceTraffic goes to an NVA or (active UDR)
NoneNo route — traffic will be dropped (black hole)

When to use Next Hop

  • → A VM can't connect to the internet — check whether the 0.0.0.0/0 route goes to Internet or to None
  • → Verify that traffic passes through Azure Firewall (UDR correctly applied)
  • → Detect asymmetric routing in hub-spoke topologies
  • → Confirm the VPN gateway is receiving on-premises traffic
  • → Verify VNet peering has the correct routes propagated

Connection Monitor

Connection Monitor runs continuous connectivity tests (not one-shot like IP Flow Verify) and records , packet loss, and availability metrics. Ideal for detecting intermittent network degradation.

Supported sources

  • • Azure VMs (with the Network Watcher agent)
  • • Azure Arc machines
  • • On-premises machines (with the Log Analytics agent)

Supported destinations

  • • Private IPs (other VMs, endpoints)
  • • Public URLs / FQDNs
  • • Specific ports (TCP check)
  • • Azure services (Storage, SQL, etc.)

Metrics it provides

ChecksFailedPercent

% of checks that failed

RoundTripTimeMs

RTT latency in ms

ProbesFailedPercent

% of failed probes (legacy)

AvgRoundTripTimeMs

Average latency (legacy)

NSG Flow Logs

NSG Flow Logs record information about the IP traffic flowing through an NSG — including the 5-tuple (source IP, destination IP, source port, destination port, protocol), the action (Allow/Deny), and the connection state (TCP: Initiated, Established, Terminated).

Flow Log versions

Version 1

Records the basic 5-tuple + Allow/Deny. No throughput. For basic analysis.

Version 2

Everything from V1 + TCP connection state (INIT/SYN, SYN_ACK, FIN, RST) + bytes/packets per session. Recommended.

Storage and analysis

  • • Logs are stored in a Storage Account (JSON)
  • • Configurable retention (days on the Storage Account)
  • • Send to for KQL analysis
  • • Traffic Analytics: processes NSG Flow Logs in Log Analytics and generates dashboards of top talkers, geo-distribution, ports used, and detected malicious flows
  • • Latency: logs appear ~1 min after the traffic occurs

Packet Capture

Packet Capture captures network packets from a specific VM without needing to connect to it. Packets are saved in PCAP format (compatible with Wireshark) in a Storage Account or directly on the VM.

Available filters

  • • Protocol: TCP, UDP, Any
  • • Local IP (of the NIC)
  • • Remote IP
  • • Local and remote port
  • • Maximum capture duration (seconds)
  • • Maximum PCAP file size

Requirements

  • • VM Agent installed on the VM
  • • Network Watcher Agent extension installed
  • • A Storage Account or the VM's local disk as the destination
  • • The capture can be started/stopped from the Portal, CLI, or PowerShell
  • • Useful for troubleshooting applications (e.g. viewing HTTP headers, analyzing TCP retransmissions)

Additional diagnostic tools

Effective Security Rules

Shows all effective NSG rules (combination of subnet NSG + NIC NSG) for a specific NIC. Useful when you can't identify which NSG is blocking traffic.

Effective Routes

Shows the effective route table for a NIC: system routes + UDRs + propagated BGP routes. Complements Next Hop by showing the full table.

VPN Diagnostics

Runs diagnostics on a VPN Gateway or a specific VPN connection. Saves logs to a Storage Account for analysis. Identifies misconfigurations of IKE, PSK, etc.

Connection Troubleshoot

One-shot connectivity test between two endpoints. Shows whether there are NSG, routing, OS firewall issues, or whether the destination is unreachable. Different from Connection Monitor (which is continuous).

Diagnostic questionRight tool
Which NSG rule is blocking this traffic?IP Flow Verify
Where does this packet exit from this VM?Next Hop
Is the connection between VM-A and VM-B losing packets?Connection Monitor (continuous monitoring)
What combination of NSG rules applies to this NIC?Effective Security Rules
What traffic has passed through this NSG in the last 30 minutes?NSG Flow Logs + Traffic Analytics
What is this VM's full route table?Effective Routes
I need to capture packets to analyze in WiresharkPacket Capture
Why does the VPN tunnel between Azure and on-premises fail?VPN Diagnostics

Did you get this topic?

Test what you just learned

An administrator needs to know why a VM in Azure cannot connect to an on-premises IP on port 443. The VM has an NSG on both the subnet and the NIC. Which Network Watcher tool directly answers whether it is an NSG issue?

Ready to test "Network Monitoring"?

Put what you learned to the test with original AZ-104 exam questions.

Start AZ-104 mock exam

Unlimited mock exams with the Pro plan

Log in to track your progress.