Network Troubleshooting and Monitoring: Network Watcher, Connection Monitor, Flow Logs, Packet Capture and Diagnostics
A Simple Troubleshooting Method
- Define the problem: from where to where, which port, since when
- Check the resources are running and have the right IPs
- Check NSGs on both NIC and subnet
- Check routes (system routes, UDRs, peering)
- Check DNS resolution
- Check the OS firewall and the app listening port
- Check gateways, firewalls and load balancer probes in the path
Network Watcher Tools
| Tool | Question it answers |
|---|---|
| IP flow verify | Is a packet allowed or denied, and by which NSG rule? |
| Next hop | Where does traffic from this VM go next? |
| Effective security rules | What is the final NSG result on a NIC? |
| Effective routes | What routes apply to a NIC? |
| Connection troubleshoot | Can source reach destination and port, and where does it fail? |
| Connection Monitor | Continuous tests with latency and loss over time |
| Packet capture | Capture packets on a VM for deep analysis |
| NSG / VNet flow logs and Traffic Analytics | Who talks to whom, allowed or denied |
| Topology | Diagram of the network |
| VPN diagnostics | Gateway and tunnel health |
bash
az network watcher configure -g NetworkWatcherRG --locations centralindia --enabled true
az network watcher test-ip-flow -g rg-vm --vm web01 --direction Inbound --protocol TCP --local 10.20.1.4:443 --remote 203.0.113.50:50000
az network watcher show-next-hop -g rg-vm --vm web01 --source-ip 10.20.1.4 --dest-ip 8.8.8.8
az network watcher test-connectivity -g rg-vm --source-resource web01 --dest-address 10.20.2.4 --dest-port 1433
az network nic list-effective-nsg -g rg-vm -n web01VMNic
az network nic show-effective-route-table -g rg-vm -n web01VMNic -o table
- Network Watcher is enabled per region automatically in most cases
- Connection troubleshoot and packet capture need the Network Watcher agent extension on the VM
Flow Logs and Traffic Analytics
- Send flow logs to a storage account and optionally to Log Analytics for Traffic Analytics
- Use them to find blocked flows, top talkers and unexpected internet access
- Check current guidance: VNet flow logs are replacing NSG flow logs
Common Problems
| Symptom | Likely cause |
|---|---|
| Cannot SSH or RDP | NSG deny, no public IP, OS firewall, wrong port |
| VM cannot reach the internet | UDR to a firewall that blocks, no outbound path, DNS |
| Peered VMs cannot talk | Peering not both ways, NSG, overlapping spaces, forwarded traffic off |
| Load balancer shows unhealthy | Probe path wrong, NSG blocking probe, app down |
| Name does not resolve | DNS server settings, private zone link missing, privatelink zone not linked |
Practice
- Break connectivity with an NSG deny rule and find it with IP flow verify
- Use next hop to confirm traffic goes to a firewall
- Create a Connection Monitor between two VMs
- Capture packets for 60 seconds on a VM
Conclusion
Troubleshoot networks in a fixed order: resources, NSGs, routes, DNS, OS and path devices. Network Watcher tools answer each question quickly, and flow logs give history.
Quick Summary: method; tools; commands; flow logs; common problems.

