Azure network security group contains security rules that allow or deny inbound network traffic to, or outbound network traffic from, several types of Azure resources. For each rule, you can specify source and destination, port, and protocol.
Following Azure CLI command lists rules associated with Network Security Groups in Azure.
az network nsg rule list \
--resource-group "RESOURCE_GROUP_NAME" \
--nsg-name "NETWORK_SECURITY_GROUP_NAME"
Similar Articles