For system, network and cloud administrators

How to view Azure virtual machine details using Azure CLI

After creating your Azure virtual machine, you might want to view as much information about it. You can do this by using:

az vm show --name YourVMName --resource-group YourResourceGroup

How to list the public and private IP of an Azure virtual machine using Azure CLI

After creating an Azure virtual machine, you can view its public and private IP by using:

az vm list-ip-addresses --name YourVMName -o table


How to resize an existing Azure virtual machine using Azure CLI

In order to resize your Azure virtual machine, you’ll first need to check the available resizing options:

az vm list-vm-resize-options --resource-group YourResourceGroup --name YourVMName -o table


How to view available Azure predefined virtual machine sizes using Azure CLI

Depending on the purpose of your Azure virtual machine, you’ll need to choose a size for it when you’re creating it. Plus, the availability of Azure resources depends on the region you’ll want to use them. You can list available Azure predefined virtual machine sizes by using:

az vm list-sizes --location westeurope -o table

How to list available Azure virtual machine images using Azure CLI

For example, if you need to view all available virtual machine images published by Microsoft, you can use:

az vm image list --publisher Microsoft -o table


Follow BusyNetwork