CmdID / az / az network / az network watcher
az network watcher test-ip-flow
Test IP flow to/from a VM given the currently configured network security group rules. Azure CLI reference
12 options Its page in the Azure CLI reference
Options
--directionDirection of the packet relative to the VM.--local-ip-addressThe local IP address.--local-portThe local port.--localThe private IPv4 address for the VMs NIC and the port of the packet in X.X.X.X:PORT format.--nicName or ID of the NIC resource to test.--protocolProtocol to test.--remote-ip-addressThe remote IP address.--remote-portThe remote port.--remoteThe IPv4 address and port for the remote side of the packet X.X.X.X:PORT format.--vmName or ID of the VM to target.--watcher-nameName of the network watcher.--watcher-rgName of the resource group the watcher is in.