Home › Studies › AZ-104 › Virtual Networking › Network Troubleshooting

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

ToolAnswersNotes
IP flow verifyIs 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 rulesAll rules that apply to a NICAggregate of the subnet NSG and the NIC NSG
Next hopWhere does a packet to this destination IP go?One destination at a time: returns next hop type, IP address and route table ID
Effective routesThe full route table for a NICSource (Default, User, VPN gateway), state (Active or Invalid), prefix, next hop
Connection troubleshootCan 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

Effective security rules

Next hop and effective routes

Connection troubleshoot

Issue typeMeaning
NetworkSecurityRuleAn NSG rule blocks the traffic
UserDefinedRouteA UDR sends traffic to None (a blackhole)
IPForwardingNotEnabledEnable IP forwarding on the NVA NIC
VnetAccessNotAllowedPeering has Allow virtual network access off
DIPProbeDownThe load balancer health probe says the backend is down
NoListenerOnDestinationNothing listens on the destination port
StandardILBOutboundInternetNotAllowedA 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

  1. IP flow verify for the flow (NSG and admin rules).
  2. Effective security rules for the NIC (which NSG and rule).
  3. Next hop and effective routes (UDR, NVA, None).
  4. Connection troubleshoot end to end (NSG, UDR, guest firewall, DNS, listener).
  5. OS firewall, NVA forwarding and peering settings.

CLI and PowerShell

TaskAzure CLIPowerShell
IP flow verifyaz network watcher test-ip-flow -g MyResourceGroup --direction Outbound --protocol TCP --local 10.0.0.4:* --remote 10.1.0.4:80 --vm MyVmnot covered here
Next hopaz network watcher show-next-hop -g MyResourceGroup --vm MyVm --source-ip 10.0.0.4 --dest-ip 10.1.0.4Get-AzNetworkWatcherNextHop
Effective security rulesaz network nic list-effective-nsg --name vm-nic --resource-group test-rgGet-AzEffectiveNetworkSecurityGroup -NetworkInterfaceName vm-nic -ResourceGroupName test-rg
Effective routesaz network nic show-effective-route-tableGet-AzEffectiveRouteTable
Connectivity test (preview)az network watcher test-connectivity -g MyResourceGroup --source-resource MyVmName1 --dest-resource MyVmName2 --dest-port 80not covered here
Enable Network Watcher in a regionaz network watcher configure -g NetworkWatcherRG -l westus --enabled truenot 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

ItemValue
Effective security rules shown in the portal50 (download for all)
Connection troubleshoot maximum probes100
IP flow verify protocolsTCP and UDP
Connection troubleshoot protocolsTCP 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

Checked against Microsoft Learn on November 13, 2026.

← Load BalancerVirtual Networking overview →