Skill 2.3.1

Implement and manage network security groups (NSGs) and application security groups (ASGs)

Key Concepts

NSG rules are evaluated by priority from 100 to 4,096, with lower numbers first, and processing stops at the first match. Rules are stateful, so return traffic is allowed. Inbound traffic passes the subnet NSG and then the NIC NSG, and outbound traffic passes in the reverse order.

An ASG groups network interfaces. A rule can then allow, for example, web-tier ASG to app-tier ASG on one port, with no IP addresses. All NICs in an ASG must be in the same virtual network as the first NIC.