Azure Network Security Groups and Application Security Groups
Overview
This lab demonstrates the design and enforcement of network-level security controls in Azure using Network Security Groups (NSGs) and Application Security Groups (ASGs). The objective was to segment workloads, apply least-privilege access, and validate traffic filtering based on workload roles rather than IP addresses.
Lab Scenario
An organization required secure network access for two distinct server roles:
- Web Servers β publicly accessible over HTTP/HTTPS
- Management Servers β accessible only via RDP
Traffic control needed to be enforced using NSG rules, while ASGs were used to logically group virtual machines by function.
Architecture & Design
- Azure Virtual Network with a single subnet
- Network Security Group applied at the subnet level
- Two Application Security Groups:
- Web Servers ASG
- Management Servers ASG
- Two Windows Server virtual machines:
- Web VM (IIS installed)
- Management VM (RDP access only)
Security Controls Implemented
- Inbound NSG Rules
- Allowed TCP 80/443 only to the Web Servers ASG
- Allowed TCP 3389 (RDP) only to the Management Servers ASG
- Implicit Deny
- All other inbound traffic was blocked by default
- ASG-Based Filtering
- NSG rules targeted ASGs instead of IP addresses, improving scalability and manageability
Validation & Testing
- Successfully established RDP access to the management server
- Confirmed RDP access was blocked to the web server
- Verified public access to the web server via HTTP by loading the IIS default page
- Validated that NSG rules were enforced correctly based on ASG membership
Key Takeaways
- Application Security Groups simplify NSG rule management by grouping workloads instead of hardcoding IPs
- Least-privilege network access reduces attack surface
- Subnet-level NSGs provide centralized traffic enforcement
- ASGs scale cleanly as workloads grow without modifying security rules
Tools & Technologies
- Azure Virtual Network
- Network Security Groups (NSG)
- Application Security Groups (ASG)
- Azure Virtual Machines (Windows Server)
- IIS Web Server
Full Technical Report
π Detailed Step-by-Step Lab Report