For system, network and cloud administrators

How to open a port on an Azure virtual machine using Azure CLI

If you need to open a port on your Azure virtual machine (in this case, port 80), you can use:

az vm open-port --port 80 --resource-group YourResourceGroup --name YourVMName