Question: how nsg works in azure?
Answer: A network security group (NSG) in Azure is the way to activate a rule or access control list (ACL), which will allow or deny network traffic to your virtual machine instances in a virtual network. ... When an NSG is associated with a subnet, the ACL rules apply to all Virtual Machine instances of that subnet.