Microsoft Azure
Network Security Group (NSG)
A basic Azure firewall that filters network traffic to and from Azure resources within a VNet. It contains inbound and outbound rules that allow or deny traffic based on IP, port, and protocol.
On the exam
Fundamental for network security in AZ-104. It can be attached to subnets or individual network interfaces. Rules have a numeric priority (lower number = higher priority). Roughly equivalent to an AWS security group, but with a different deny model.
Related terms
- Azure Virtual Network (VNet)A private network in Azure that lets Azure resources communicate with each other, with the internet, and with on-premises networks. It provides isolation, segmentation, and traffic control.
- Security group (AWS)An instance-level virtual firewall on EC2 that controls inbound and outbound traffic. It works as an allow-only rule list — there are no explicit deny rules. Stateful: if you allow inbound traffic, the response is automatically allowed out.