How to do it...


To create a new NSG allow rule using the Azure portal, we must follow these steps:

  1. In the NSG blade, locate the Inbound security rules option under Settings.
  2. Click on the Add button at the top of the page and wait for the new blade to open:

  1. In the new blade, we need to provide information for Source (location and port), Destination (location and port), Protocol, Action, Priority, Name, and Description. If you want to allow traffic, make sure you select Allow for Action. An example of how to create a rule to allow traffic over the 443 port (allowing traffic to the web server) is shown in the following screenshot:

Get Azure Networking Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.