Home › Studies › AZ-104 › Monitor & Maintain › Network Watcher

Network Watcher

Diagnostic tools · Connection Monitor · flow logs · packet capture · permissions

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

Network Watcher monitors and diagnoses Azure IaaS resources: VMs, virtual networks, application gateways and load balancers. It isn't for PaaS monitoring or web analytics.

Diagnostic tools

ToolAnswersNotes
IP flow verifyIs a packet to or from an IP allowed or denied at VM level, and which security rule decides it?Check a specific direction, protocol, local and remote address and port
NSG diagnosticsThe same allow or deny check, for a VM, scale set or application gatewayAlso works for an IP prefix or service tag. Can add a higher-priority rule
Next hopIs there a routing problem?Returns the next hop type, IP address and route table ID for a destination IP
Effective security rulesWhich rules apply to a NIC?NIC NSG, subnet NSG and the aggregate
Connection troubleshootCan this source reach this destination right now?Point-in-time test from a VM, scale set, application gateway or Bastion to a VM, FQDN, URI or IPv4 address. Connection monitor does it continuously
Packet captureWhat is on the wire?Remote capture sessions on a VM or scale set
VPN troubleshootWhy is this gateway or connection failing?Diagnoses virtual network gateways and connections. One operation per subscription at a time

Flow logs record traffic metadata. Packet capture captures the packets themselves.

Connection Monitor

Test stateMeaning
PassWithin thresholds
FailWithout a threshold, 100% of checks failed
WarningAutomatic warning thresholds: RTT 750 ms (TCP and ICMP), checks failed 10%
IndeterminateNo data
Not RunningThe test group is disabled

Flow logs

Storage requirementNSG flow logsVNet flow logs
RegionSame region as the NSGSame region as the VNet
Account typeStandard (not Premium). Retention rules need general-purpose v2Standard
RetentionAuto-delete up to 1 year (general-purpose v2 only)100 retention rules per account, 10 blob prefixes each
OtherSame subscription (or same Microsoft Entra tenant). Needs the Microsoft.Insights resource provider registered, otherwise AuthorizationFailed. Rotating the storage keys stops the flow log until you disable and re-enable it

Packet capture

Permissions and limits

ItemValue
Network Watcher instances per region per subscription1
Connection monitors per region per subscription100
Test groups per connection monitor20
Sources plus destinations per connection monitor100
Test configurations per connection monitor20
Packet capture sessions per region per subscription10,000
VPN troubleshoot operations per subscription at once1

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 MyVmTest-AzNetworkWatcherIPFlow
Next hopaz network watcher show-next-hop --dest-ip <ip> --source-ip <ip> --vm <vm>Get-AzNetworkWatcherNextHop -NetworkWatcher $nw -TargetVirtualMachineId $VM.Id -SourceIPAddress <ip> -DestinationIPAddress <ip>
Create a connection monitorNot named on the Connection Monitor overview pagePowerShell is supported, as are the portal and ARMClient
Stateful inbound TCP flow timeoutNot covered on the page$vnet.FlowTimeoutInMinutes = 4; $vnet | Set-AzVirtualNetwork

Exam Tips

Tick each tip once you can answer it without looking.

“Which security rule blocks inbound TCP 3389 to a VM?” → IP flow verify. Trap: Next hop checks routing, not security rules.

“Check allow or deny for an application gateway, or for a service tag” → NSG diagnostics. Trap: IP flow verify works at VM level.

“Traffic from a VM doesn't reach on-premises and you suspect a user-defined route” → Next hop. Trap: IP flow verify checks security rules, not routing.

“See every NSG rule (subnet and NIC) that affects a NIC” → Effective security rules.

“Test connectivity to an FQDN from a VM right now, once” → Connection troubleshoot. Trap: Connection monitor is the continuous version.

“Continuously monitor latency and packet loss between two VMs and alert on it” → Connection monitor, with a metric alert on ChecksFailedPercent or RoundTripTimeMs. Trap: Packet capture is not continuous monitoring.

“Capture packets on a VM for analysis” → Packet capture. Trap: Flow logs record traffic metadata, not packets.

“Diagnose a site-to-site VPN gateway problem” → VPN troubleshoot. Trap: Connection troubleshoot is a point-in-time test from a VM, application gateway or Bastion.

“Packet capture needs an agent on the VM” → AzureNetworkWatcherExtension. Trap: Azure Monitor Agent is not the extension packet capture uses.

“How long can a continuous packet capture (preview) run?” → At most seven days (604,800 seconds). Trap: A standard capture session defaults to a 5-hour (18,000 second) limit.

“Create a new NSG flow log in 2026” → Not possible: NSG flow logs retire Sep 30, 2027 and no longer allow new ones. Use virtual network flow logs.

“Flow log storage account in a different region than the VNet” → Not supported: same region as the VNet. Trap: The paired region isn't an exception.

“An NSG flow log stopped after the storage account access keys were rotated” → Disable and re-enable the flow log. Trap: You don't need to recreate the storage account.

“Compliance wants flow logs kept for one year” → Standard general-purpose v2 storage with retention. Trap: Premium storage isn't supported, and retention rules need general-purpose v2.

“Connection monitor source is an on-premises machine” → Azure Arc agent plus Azure Monitor Agent. Trap: The Log Analytics agent is no longer supported for Connection Monitor.

“Connection monitor source is an Azure VM” → Network Watcher extension. Trap: Azure Monitor Agent is the on-premises path, together with Azure Arc.

“Connection monitor test shows Indeterminate” → No data (check the workspace and metrics). Trap: A breached threshold shows Fail or Warning, not Indeterminate.

“4 sources, 3 destinations and 2 test configurations” → 24 tests. Trap: The count multiplies; it doesn't add.

“Network contributor can't configure flow logs to storage” → The role has no Microsoft.Storage actions: add storage permissions or use Contributor.

Sources

Checked against Microsoft Learn on November 13, 2026.

← InsightsBackup Vaults →