Implement Network Security Groups (NSGs) and Application Security Groups (ASGs) in Azure

Beginner
4.6Rating
1,256Deployments
60 mDuration

Secure Azure VMs using Network Security Groups and Application Security Groups. Create rules, control traffic flow, and implement least privilege access.

Skills Validated

Application Security GroupsNetwork Security Groups

Lab Overview & Objectives

Network Security Groups (NSGs) act as cloud-based firewalls that control network traffic to Azure resources. Application Security Groups (ASGs) let you group virtual machines by application role, making security rules easier to manage and scale. Together, they help you implement secure multi-tier architectures without managing individual IP addresses.

In this lab, you will secure a two-tier web application using NSGs and ASGs. You'll create application security groups for web and database tiers, configure network security rules, and test how priority-based rule evaluation controls traffic between application layers.

Objectives

Upon completion of this beginner level lab, you will be able to:

  • Create and assign Application Security Groups to organize VMs by application tier
  • Deploy a Network Security Group and associate it with virtual network subnets
  • Configure custom inbound security rules using priority-based evaluation
  • Implement least privilege security by combining allow and deny rules with ASGs
  • Test and validate security configurations to verify allowed and blocked traffic flows

Who is this lab for?

This lab is designed for:

  • Azure Administrators managing virtual network security
  • Cloud Security Engineers implementing network-level controls
  • IT Professionals preparing for Azure certifications (AZ-104, AZ-500)
  • DevOps Engineers maintaining scalable security policies
  • Anyone new to Azure networking and security concepts

Real-Time Validation

Our platform uses an automated validation engine to verify your configurations as you work through the lab modules. No multiple choice—just real-world proficiency.

[SYSTEM] VALIDATION_ACTIVEv2.4.0
Checking resource: vpc-ingress-01...
Scanning security policy: allow-ssh...
Modules
5
Duration
60 m

Lab Curriculum

01

Logging into Azure Account using Azure Portal

02

Introduction and Lab Overview

03

Creating and Assigning Application Security Groups (ASGs)

04

Creating and Associating Network Security Groups (NSGs)

05

Creating and Testing Security Rules