{
  "id": 21700427,
  "title": "Building an Azure Network Security Lab with NSGs and Network Watcher",
  "url": "https://urgent.news/2026/11/25/building-an-azure-network-security-lab-with-nsgs-and-network-watcher",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-25T00:15:01.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/shahcloudeng/building-an-azure-network-security-lab-with-nsgs-and-network-watcher-3ng5"
  },
  "original_language": "en",
  "account": "In the context of my 90-project Cloud Engineering challenge, I completed a hands-on project centered on Azure Network Security and Traffic Control. The main objective was to deploy a Linux virtual machine, set up network security rules, regulate inbound traffic, and validate those rules using Azure Network Watcher.\n\n1. Establishing the Azure Virtual Network: I initiated the project by establishing an Azure Virtual Network (VNet) called nsg-vnet. I defined two components within this VNet: a subnet named web-subnet with an address range of 10.0.0.0/24 and the Network Security Group (NSG) named nsg-web-security.\n\n2. Establishing Network Security Group (NSG): The NSG serves as a network traffic filter, outlined by security rules that decide whether inbound or outbound traffic will be permitted or denied. I established the following inbound rules:\n- An HTTP rule permitting port 80 and TCP protocol, allowing any source.\n- An HTTPS rule permitting port 443 and TCP protocol, likewise allowing any source.\n- An SSH rule permitting port 22 and TCP protocol, but only allowing traffic from my public IP address.\n- A rule denying port 8080 for TCP protocol and any source.\n\n3. Linking NSG to Subnet: I linked the NSG with the previously established web-subnet. This association enabled the security rules to apply to both incoming and outgoing network traffic from resources connected to that subnet.\n\n4. Launching an Ubuntu Linux Virtual Machine: Post configuration, I deployed an Ubuntu Linux virtual machine. Access to the machine was granted via SSH using the permitted public IP address. Upon access, I updated the package lists and installed Nginx using the commands `sudo apt update` and `sudo apt install nginx -y`.\n\n5. Evaluating the Network Security Rules: Configuring the security rules was merely the first step. To ensure these rules were working as intended, I utilized Azure Network Watcher's IP Flow Verify feature.\n\n- The first test was on TCP port 8080, which confirmed that the connection was denied by the customized NSG rule.\n- On port 80, TCP traffic was permitted, confirming the correctness of the HTTP rule.\n- Finally, I tested SSH access from my own public IP address. The connection was successfully established, verifying that the SSH restriction was functioning as intended.\n\n6. Lessons Learned: This project provided a profound understanding of several critical Azure networking concepts including Virtual Networks and subnet architecture, Network Security Groups and security rule priorities, Inbound traffic filtering, Restricting SSH access using source IP addresses, Associating NSGs with subnets, Deploying and managing an Ubuntu Linux VM, and leveraging Azure Network Watcher for traffic verification. The most significant takeaway was the understanding of the discrepancy between merely configuring a security rule and validating its actual behavior.\n\nOne essential lesson was that the mere allowance of a port through an NSG does not automatically set up HTTPS - additional steps, such as obtaining and correctly configuring an SSL certificate, are necessary.\n\nIn conclusion, Project 5 of my 90-project challenge provided practical exposure to Azure network security, Linux administration, and traffic filtering. I'm continuing this challenge to further hone my Cloud Engineering skills through hands-on projects rather than theoretical learning. This marks 5/90 projects completed, with 85 more to go!",
  "summary": "Project 5/90 — My Cloud Engineering Journey As part of my 90-project Cloud Engineering challenge, I completed a hands-on project focused on Azure Network Security and Traffic Control. The goal was to deploy a Linux virtual machine, configure network security rules, control inbound traffic, and verify those rules using Azure Network Watcher. 1. Creating the Azure Virtual Network I started by…",
  "key_points": [
    "Established Azure Virtual Network named nsg-vnet with web-subnet subnet and nsg-web-security NSG",
    "Configured NSG with inbound rules for HTTP, HTTPS, SSH, and denied port 8080",
    "Linked NSG to web-subnet to apply security rules to connected resources"
  ],
  "editors_take": "Integrating Network Watcher for traffic verification transforms security configuration from a theoretical exercise into a validated defense strategy that ensures specific access rules function as intended.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}