CmdID / az / az network / az network watcher
az network watcher show-security-group-view
Get detailed security information on a VM for the currently configured network security group. Azure CLI reference
3 options Its page in the Azure CLI reference
Options
--vmName or ID of the VM to target.--watcher-nameName of the network watcher.--watcher-rgName of the resource group the watcher is in.