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
- Create a resource group
- List resource groups
- Delete a resource group
- Create a Linux VM
- List VMs and their IPs
- Stop and deallocate a VM
All resource groups and vms commands · Azure CLI 2 cheatsheet