Creating a new NSG in the Azure portal
As a first step to more effectively control network traffic, we are going to create a new NSG.
Getting ready
Before you start, open your browser and go to the Azure portal, at https://portal.azure.com.
How to do it...
To create a new NSG using the Azure portal, we must follow these steps:
- In the Azure portal, select Create a resource and choose Network security group under Networking (or search for
network security group
in the search bar). - The parameters we need to define for the deployment are Subscription, Resource group, Name, and Region. An example of the required parameters is shown in Figure 3.1:
Figure 3.1: Creating a new NSG using the Azure portal
After the deployment has been validated and started (it takes a few moments to complete), the NSG is ready for use.
How it works...
The NSG deployment can be initiated during a VM deployment. This will associate the NSG to the NIC associated with the...