Create a security rule
In this we will learn about creating security rules with understanding various other functions of security rules. This includes viewing, changing and deleting the security rules.
However, there’s a limit to how many rules per network security group you can create for each Azure location and subscription. Let’s understand about creating security rule:
- Firstly, go to the Azure portal to view your network security groups. And, there, search for and select Network security groups.
- Secondly, select the name of the network security group you want to add a security rule to.
- Then, in the network security group’s menu bar, choose Inbound security rules or Outbound security rules.
- Here, several existing rules are listed, including some you may not have added. And, when you create a network security group, several default security rules are created in it.
- Then, select Add. Select or add values for the following settings, and then select OK:
![](https://www.testpreptraining.com/tutorial/wp-content/uploads/2020/12/source-496x400.png)
![](https://www.testpreptraining.com/tutorial/wp-content/uploads/2020/12/source-1-429x400.png)
![](https://www.testpreptraining.com/tutorial/wp-content/uploads/2020/12/source-2-570x400.png)
Viewing all security rules
A network security group contains zero or more rules. T
- Firstly, go to the Azure portal to view the rules of a network security group. Search for and select Network security groups.
- Then, select the name of the network security group that you want to view the rules for.
- Lastly, in the network security group’s menu bar, choose Inbound security rules or Outbound security rules.
![](https://www.testpreptraining.com/tutorial/wp-content/uploads/2020/12/commands-750x186.png)
View details of a security rule
- Firstly, go to the Azure portal to view the rules of a network security group. Search for and select Network security groups.
- Then, select the name of the network security group that you want to view the details of a rule for.
- After that, in the network security group’s menu bar, choose Inbound security rules or Outbound security rules.
- Lastly, select the rule you want to view details for. For an explanation of all settings, see Security rule settings.
![view details](https://www.testpreptraining.com/tutorial/wp-content/uploads/2020/12/commands-1-750x190.png)
Change a security rule
- Firstly, complete the steps in View details of a security rule.
- Then, change the settings as needed, and then select Save. For an explanation of all settings, see Security rule settings.
![change security rule](https://www.testpreptraining.com/tutorial/wp-content/uploads/2020/12/commands-2-750x193.png)
Delete a security rule
- Firstly, complete the steps in View details of a security rule.
- Then, select Delete, and then select Yes.
![delete security rule](https://www.testpreptraining.com/tutorial/wp-content/uploads/2020/12/commands-3-750x189.png)
Reference: Microsoft Documentation
Prepare for Assured Success
Want to pass Microsoft Azure Administrator Associate (AZ-104) Exam? Learn MoreAre you preparing for Microsoft Azure Administrator Associate (AZ-104) Exam?Take a Quiz