O'Reilly logo

Hands-On Networking with Azure by Mohamed Waly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding an inbound or outbound rule to an Azure VM using Azure CLI 2.0

The same process that we discussed earlier also applies here, although there is one difference: it can be done using the following single command:

az network nsg rule create --resource-group PacktPub --nsg-name CLINSG --name allow-https --description "Allow access to port 80 for HTTP"--access Allow --protocol Tcp --direction Inbound --priority 1030 --source-address-prefix "*" --source-port-range "*"--destination-address-prefix "*" --destination-port-range "80"

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required