Creating a new deny rule in an NSG
When a new NSG is created, only the default rules are present. The default rules allow all outbound traffic and block all inbound traffic. To change this, additional rules need to be created. Now, we are going to show you how to create a new outbound rule to deny traffic.
Getting ready
Before you start, open your browser and go to the Azure portal at https://portal.azure.com. Locate the previously created NSG.
How to do it...
To create a new NSG deny rule using the Azure portal, we must follow these steps:
- In the NSG pane, locate the Outbound security rules option under Settings.
- Click on the Add button at the top of the page and wait for the new pane to open:
Figure 3.4: Creating a new NSG deny rule using the Azure portal
- In the new pane, we need to provide information for Source (location and port range), Destination (location and port range), Protocol, Action, Priority, Name, and Description. If you want to deny traffic...