Network Security Group (NSG) basics
An NSG filters inbound and outbound traffic for subnets and NICs. Network Security Group (NSG) equals traffic filtering rules. Rules apply inbound and outbound. Attach to a subnet and/or a Network Interface (NIC). Public endpoint still needs allowed inbound rules.

