Network Security Group (NSG) is like a firewall or filter that contains inbound and outbound rules based on source or destination IP address, port, and protocol. 

It can be associated with a subnet or with the network interfaces of a virtual machine. Its main task is to filter network traffic to and from the Azure resources for any Azure virtual machine. 

In this blog, we will look at how to create a Network Security Group in Azure.

Without further ado, let’s check out how to do it. 

How to Create a Network Security Group in Azure

Follow these steps to create a Network Security Group!  

Step 1: Search for Network Security Group in the search bar and click on create. 

Step 2: Provide the Resource group, Network Security Group Name, and Region, and click on Review + Create.  

create network security group
Entering the details like Resource group, Network Security Group Name, Region. 

Step 3: Once you have created the Network Security Group, go to Resources. Over there, you can configure inbound and outbound rules. 

Step 4: To create an inbound rule for allowing RDP in a subnet, click on Add inbound rule. Below are the parameters: 

SourceSelect IP addresses and provide your IP(You can choose any source as per your requirements) 
Source port rangesEnter “*”(wildcard) to support any source 
DestinationSelect “Any” from the dropdown 
ServiceSelect RDP (Remote Desktop Protocol) service
NameProvide a name

Step 5: Click on add, and Azure will create the inbound rule. 

Creating an inbound rule for RDP

Step 6: To associate this Network Security Group to a subnet, go to the subnet menu from NSG >> Select network & subnet >> Click OK. Once it is associated, The rule will apply to that particular subnet.

Wrapping up

With this simple 6-step process, you can create a variety of inbound and outbound rules. Using these rules, you can protect the underlying virtual machine from network-level attacks. 

At SysAlly, we experiment with Cloud and the most useful information is passed on to the world as blogs. Signup for the updates.

Until later, here’s SysAlly signing off!

Get new insights right to your inbox

How can our experts help you?

Schedule your consultation

You may also like

  • By admin
  • in DevOps

Agile vs DevOps: What’s the difference

  • Nov 18, 2022 .
  • 9 min min
Read More
  • By admin
  • in DevOps

DevOps as a Service: All You Should Know

  • Aug 9, 2022 .
  • 9 min min
Read More
  • By admin
  • in Containerization

Containerization VS Virtualization: Understanding the Differences

  • Aug 4, 2022 .
  • 8 min min
Read More

Be in the know

Techno tips served hot! Subscribe now and stay atop.