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"
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset