Network Troubleshooting
IP flow verify · next hop · effective rules and routes · connection troubleshoot · issue types
By the tools4free.dev team · Last reviewed November 13, 2026
Practice questions for this topic →
Which tool answers which question
| Tool | Answers | Notes |
|---|---|---|
| IP flow verify | Is this one packet allowed or denied to or from a VM NIC, and by which rule? | Checks all NSGs that apply to the NIC (subnet and NIC) and Virtual Network Manager admin rules. TCP and UDP only. NSG rules only |
| Effective security rules | All rules that apply to a NIC | Aggregate of the subnet NSG and the NIC NSG |
| Next hop | Where does a packet to this destination IP go? | One destination at a time: returns next hop type, IP address and route table ID |
| Effective routes | The full route table for a NIC | Source (Default, User, VPN gateway), state (Active or Invalid), prefix, next hop |
| Connection troubleshoot | Can this source reach this destination, and where does it fail? | TCP or ICMP, full path, latency. Also finds UDR, DNS, guest firewall and CPU issues |
IP flow verify
- Input: direction, protocol, local IP, remote IP, local port, remote port. Output: Access allowed or denied, the rule name and the NSG. No link appears when a default rule decided.
- Requirements: a Network Watcher instance in the VM's subscription and region, the right permissions, and a running VM (stopped VMs aren't selectable).
- It tests TCP and UDP only. Use NSG diagnostics for ICMP and for scale sets. It evaluates the security and admin rules that apply to the VM's NIC (both subnet and NIC NSGs).
- Learn examples: outbound to a public IP allowed by
AllowInternetOutBound; to an IP in the vnet allowed byAllowVnetOutBound; to 10.10.10.10 denied byDenyAllOutBound; inbound denied byDenyAllInBound. - Allowed but still failing? Look at a firewall between the VM and the endpoint, the guest OS firewall, routes (NVA, forced tunneling) and whether something listens on the port.
- Fix a blocking rule by adding an Allow rule with a lower priority number in the right NSG or NSGs.
Effective security rules
- The VM must be running and at least one NSG must be associated with the NIC or subnet. The portal shows the first 50 rules: use Download for all.
- Output fields: NetworkSecurityGroup, Association (NetworkInterface or Subnet) and EffectiveSecurityRules. Service tags show an expanded destination prefix.
- Rule names starting
defaultSecurityRules/are platform defaults.securityRules/are custom rules. - When both a NIC NSG and a subnet NSG exist, the list shows both. A multi-NIC VM needs checking per NIC.
Next hop and effective routes
- Next hop types: Internet, VirtualAppliance, VirtualNetworkGateway, VirtualNetwork, VirtualNetworkPeering, VirtualNetworkServiceEndpoint, MicrosoftEdge, None.
- The route table ID is the table that holds the UDR, or "System Route".
- Examples: an internet IP gives Internet (System Route). An IP in the vnet gives VirtualNetwork. A private IP outside the vnet space but inside 10.0.0.0/8 gives None, so the packet is dropped. After a 0.0.0.0/0 UDR to an NVA you get VirtualAppliance.
- Fixes: correct the UDR, or enable IP forwarding on the NVA.
- Effective routes: VM › Networking › NIC › Help › Effective routes (running VM). State Invalid means the route was overridden.
- Confirm a peering at the routing layer: the NIC's effective routes must show next hop type Virtual network peering.
- Permissions:
networkInterfaces/effectiveRouteTable/actionandnetworkWatchers/nextHop/action. Assign the Network Contributor role or a custom role with these actions. Network Watcher must be enabled in the VM's region.
Connection troubleshoot
- Source: a VM, scale set, Bastion or Application Gateway v2. Destination: a VM, FQDN, URI or IP. Protocols: TCP or ICMP.
- Returns ConnectionStatus (Reachable or Unreachable), minimum, average and maximum latency, probes sent and failed (maximum 100), the hop-by-hop path and issues.
- It normally needs the Network Watcher agent extension on the source VM. An agentless mode is in preview.
| Issue type | Meaning |
|---|---|
| NetworkSecurityRule | An NSG rule blocks the traffic |
| UserDefinedRoute | A UDR sends traffic to None (a blackhole) |
| IPForwardingNotEnabled | Enable IP forwarding on the NVA NIC |
| VnetAccessNotAllowed | Peering has Allow virtual network access off |
| DIPProbeDown | The load balancer health probe says the backend is down |
| NoListenerOnDestination | Nothing listens on the destination port |
| StandardILBOutboundInternetNotAllowed | A Standard internal load balancer backend has no default internet access |
Learn also lists these issue types: UDRLoop, AllowGatewayTransitNotEnabled, UseRemoteGatewaysNotEnabled, BGPRoutePropogationDisabled and BasicILBNotSupportedWithGlobalPeering.
Order to work through
- IP flow verify for the flow (NSG and admin rules).
- Effective security rules for the NIC (which NSG and rule).
- Next hop and effective routes (UDR, NVA, None).
- Connection troubleshoot end to end (NSG, UDR, guest firewall, DNS, listener).
- OS firewall, NVA forwarding and peering settings.
CLI and PowerShell
| Task | Azure CLI | PowerShell |
|---|---|---|
| IP flow verify | az network watcher test-ip-flow -g MyResourceGroup --direction Outbound --protocol TCP --local 10.0.0.4:* --remote 10.1.0.4:80 --vm MyVm | not covered here |
| Next hop | az network watcher show-next-hop -g MyResourceGroup --vm MyVm --source-ip 10.0.0.4 --dest-ip 10.1.0.4 | Get-AzNetworkWatcherNextHop |
| Effective security rules | az network nic list-effective-nsg --name vm-nic --resource-group test-rg | Get-AzEffectiveNetworkSecurityGroup -NetworkInterfaceName vm-nic -ResourceGroupName test-rg |
| Effective routes | az network nic show-effective-route-table | Get-AzEffectiveRouteTable |
| Connectivity test (preview) | az network watcher test-connectivity -g MyResourceGroup --source-resource MyVmName1 --dest-resource MyVmName2 --dest-port 80 | not covered here |
| Enable Network Watcher in a region | az network watcher configure -g NetworkWatcherRG -l westus --enabled true | not covered here |
For test-ip-flow, --direction, --local, --protocol, --remote and --vm are required. * can be the local port when the direction is outbound and the remote port when it is inbound. --nic is required if the VM has several NICs and IP forwarding is enabled on any of them. NSG flow logs retire on Sep 30, 2027: use virtual network flow logs.
Limits
| Item | Value |
|---|---|
| Effective security rules shown in the portal | 50 (download for all) |
| Connection troubleshoot maximum probes | 100 |
| IP flow verify protocols | TCP and UDP |
| Connection troubleshoot protocols | TCP and ICMP |
Exam Tips
Tick each tip once you can answer it without looking.
“Find which NSG rule blocks traffic to a VM on port 443” → IP flow verify (it names the rule and the NSG). Trap: Next hop.
“See why traffic to an on-premises IP goes to an NVA” → Next hop, or the NIC's effective routes. Trap: IP flow verify.
“Next hop returns None for 10.1.0.5” → The packet is dropped: the IP is in the None system route (10.0.0.0/8) outside the vnet space; add the range to the vnet or fix the UDR. Trap: treating it as Internet.
“Next hop returns VirtualAppliance but traffic is dropped” → The NVA lacks IP forwarding or is not forwarding. Trap: an NSG on the NVA.
“IP flow verify cannot select the VM” → The VM is not running (or there is no Network Watcher in the region). Trap: a missing NSG.
“Test whether NSG rules allow ICMP” → NSG diagnostics. Trap: IP flow verify covers TCP and UDP only.
“Effective security rules show nothing” → No NSG is associated with the NIC or subnet, or the VM is not running. Trap: Network Watcher not being enabled.
“Rule names prefixed defaultSecurityRules/” → Platform default rules (securityRules/ are custom). Trap: reading them the other way round.
“NIC and subnet NSGs both exist and effective rules list both” → Expected: it aggregates both. Trap: treating it as a misconfiguration.
“IP flow verify says Allowed but the connection still fails” → Check the guest OS firewall, NVA or forced-tunnel routes and the listener on the port. Trap: the NSG still blocking.
“Connection troubleshoot reports UserDefinedRoute” → A UDR sends traffic to None (blackhole). Trap: an NSG block.
“Connection troubleshoot reports IPForwardingNotEnabled” → Enable IP forwarding on the NVA NIC. Trap: adding a route.
“Connection troubleshoot reports VnetAccessNotAllowed” → The peering has Allow virtual network access turned off. Trap: an NSG block.
“Connection troubleshoot reports DIPProbeDown” → The load balancer health probe says the backend is down. Trap: a UDR problem.
“Which tool tests reachability to an FQDN or URI and reports latency” → Connection troubleshoot. Trap: Next hop.
“Which tool shows aggregated NSG rules from the subnet and the NIC” → Effective security rules. Trap: the NSG overview page shows only one NSG.
“Confirm a peering works at the routing layer” → Effective routes show next hop type Virtual network peering. Trap: peering status alone.
“Effective route state Invalid” → Overridden by another route (for example a UDR). Trap: the route being broken.
“Troubleshooting after NSG flow logs retire (Sep 30, 2027)” → Use virtual network flow logs. Trap: creating new NSG flow logs.
Sources
- IP flow verify overview
- Next hop overview
- Connection troubleshoot overview
- Diagnose a VM network routing problem
- Diagnose a VM traffic filter problem (quickstart)
- Diagnose a VM network traffic filter problem
- Create, change, or delete a route table
- Azure virtual network traffic routing
- Network security groups overview
- Virtual network peering overview
- az network watcher
Checked against Microsoft Learn on November 13, 2026.