Tag: Network Security Group

Learn how to Create an NSG and Associate to Subnet

Learn to Create a Network Security Group

Create Network Security Group (NSG) and Associate a Subnet

Creating Network Security Group

Azure Network Security Group (NSG) is a fundamental component of Azure’s network security offering, providing a flexible and scalable way to control traffic flow to and from Azure resources. It acts as a virtual firewall that filters network traffic at the subnet or virtual machine level based on user-defined rules.

Create network security group

To create a network security group in the Azure portal

  1. Sign in to the Azure Portal.
  2. In the Search box, search for Network Security Group. The Network security group pane appears.
  3. Click + Create. The Create network security group pane appears.
  4. In the Basics pane, under Project details, do the following:
    1. In the Subscription list box, choose the required subscription.
    2. In the Resource group list box, choose the required resource group.
    3. If you do not have one, click Create new, enter the name, and click OK.
  5. Click Next : Tags >. The Tags pane appears.
  6. In the Tags pane, type the name and value in the respective boxes, and then click Review + create.
  7. The Review + create pane appears.
  8. Once the validation is passed, click Create.

The new Network security group appears in the Network security group pane.

Create network security group

Associating NSG to Subnet

Security rules within network security groups filter network traffic based on IP address, port, and protocol. When a subnet is associated with a network security group, the security rules are enforced on resources deployed in that particular subnet. To associate NSG to a subnet in the Azure portal, follow the instructions:

To associate NSG to subnet

  1. Sign in to the Azure Portal.
  2. In the Search box, search for Network Security Group.  The Network security group pane appears.
  3. Choose the required NSG to associate a subnet.
  4. In the left pane, under Settings, click Subnet. The Subnets pane appears.
  5. Click + Associate. The Associate pane appears.
  6. In the Virtual network and Subnet list box, choose the required virtual network and subnet respectively.
  7. Click OK.

The associated subnet appears in the Subnets pane.

Associating a Network Security Group with Subnet

Take the Next Step: Embrace the Power of Cloud Services

Ready to take your organization to the next level with cloud services? Our team of experts can help you navigate the cloud landscape and find the solutions that best meet your needs. Contact us today to learn more and schedule a consultation.