Azure CLI 2 · Resource groups and VMs

Open a port on a VM

Allow inbound traffic to a VM's port.

az vm open-port --resource-group my-rg --name my-vm --port 443

Official Azure CLI 2 documentation

More resource groups and vms commands

All resource groups and vms commands · Azure CLI 2 cheatsheet

Was this page helpful?