Lesson 1 of 2 Azure Network Watcher

Diagnosing Networks with Network Watcher

This lesson explains the Network Watcher diagnostic tools, VNet flow logs and traffic analytics.

Learning outcomes

After completing this lesson, you will be able to:

  • Identify the question each Network Watcher tool answers.
  • Describe VNet flow logs and the retirement of NSG flow logs.
  • Choose the diagnostic tool for a troubleshooting scenario.

Enabling Network Watcher

Network Watcher is enabled automatically in a region when a virtual network is created or updated there, as a resource named NetworkWatcher_<region> in the NetworkWatcherRG resource group. Some tools need the Network Watcher Agent VM extension (packet capture, connection troubleshoot from VMs, Connection monitor), which the portal installs when required. The tools are reached from Network Watcher in the portal or from a VM's Connection troubleshoot and network pages.

True or false

Turning on Network Watcher

Exam skills 5.1.6

Check how Network Watcher is enabled and what its tools need.

Log in to try this activity Interactive activities are free with an account.

Diagnostic tools

Each tool answers a specific question about traffic. The following table maps them, and the paragraphs after it explain the most tested ones.

ToolQuestion it answers
IP flow verifyIs a specific packet to or from a VM allowed, and which NSG rule decides?
NSG diagnosticsHow does each NSG along a path treat a flow between a source and destination?
Next hopWhat is the next hop type and IP for a packet from a VM, and which route decides?
Effective security rulesWhich NSG rules apply to a NIC, combined and expanded?
Connection troubleshootCan a source reach a destination right now, with which latency, and where does it fail?
Packet captureWhat exactly is on the wire to or from a VM or scale set instance?
VPN troubleshootWhy is a VPN gateway or connection unhealthy?
TopologyWhich resources exist in the network and how are they connected?

IP flow verify takes a VM, NIC, direction, protocol, local and remote IP and port, and returns Access allowed or Access denied with the name of the NSG rule that decided. Next hop takes a VM and destination IP and returns the next hop type (such as Internet, VirtualAppliance, VirtualNetworkGateway, VnetLocal or None), its IP address and the route table responsible, which exposes misconfigured UDRs. Connection troubleshoot tests a TCP or ICMP connection from a VM, scale set instance, Application Gateway or Bastion host to a VM, FQDN, URI or IP, and reports reachability, latency, hops and fault types such as NSG blocks, UDR issues, DNS failures or high CPU on the source. Packet capture records traffic with filters and limits (time and size) to a storage account or the VM's disk for analysis in tools such as Wireshark.

The following diagram matches two questions about a VM that cannot reach an address to the Network Watcher tool that answers each.

Two Network Watcher tools for a VM that cannot reach 192.168.10.5. Next hop shows where packets go, for example VirtualAppliance with the firewall's IP instead of VirtualNetworkGateway, and names the route table responsible. IP flow verify, or NSG diagnostics, shows whether an NSG rule allows or denies the outbound flow.
The scenario is illustrative.
Match the pairs

Which Network Watcher tool?

Exam skills 5.1.6

Match each question with the Network Watcher tool that answers it.

Log in to try this activity Interactive activities are free with an account.

Flow logs and traffic analytics

VNet flow logs record information about IP traffic flowing through a virtual network, subnet or NIC (source and destination, ports, protocol, whether allowed or denied, bytes and packets) and write it as JSON to a storage account. They replace NSG flow logs: new NSG flow logs cannot be created since 30 June 2025, and NSG flow logs retire on 30 September 2027. VNet flow logs also capture traffic for resources without NSGs and evaluate Azure Virtual Network Manager security admin rules. Traffic analytics processes flow logs into a Log Analytics workspace and provides dashboards of top talkers, open ports, malicious IPs, traffic between regions and blocked flows.

Scenario questions

Flow logs and traffic analytics

Exam skills 5.1.6

Choose how to record and analyse traffic in a virtual network.

Log in to try this activity Interactive activities are free with an account.
Worked example

Choosing the tool

A VM cannot reach an on-premises server at 192.168.10.5. The administrator suspects a route table that sends this traffic to a firewall. Which Network Watcher tool confirms where packets go, and which tool would confirm that an NSG is not blocking them?

Use next hop from the VM to 192.168.10.5: it shows the next hop type (for example VirtualAppliance with the firewall's IP instead of VirtualNetworkGateway) and the route table responsible. Use IP flow verify (or NSG diagnostics) for the outbound flow to confirm whether an NSG rule allows it. Packet capture would show traffic leaving the VM but not explain the routing decision.

Check yourself

Can new NSG flow logs still be created?

Show answer

No. Creation was blocked on 30 June 2025; use VNet flow logs. NSG flow logs retire on 30 September 2027.

Exam Tips

Remember for the exam

  • Which rule blocks a packet: IP flow verify. Where a packet goes: next hop.
  • Test a connection end to end now: connection troubleshoot.
  • Record traffic flows: VNet flow logs; new NSG flow logs cannot be created.
  • Network Watcher is enabled automatically per region in NetworkWatcherRG.