For system, network and cloud administrators

How to check an Azure disk performance SKU using Azure CLI

In order to view current disk performance SKU in Azure, type:

az disk show --resource-group yourresourcegroup --name yourdiskname --query sku


How to retrieve properties of a newly created Azure managed disk using Azure CLl

In order to view all properties of a managed disk in Azure type:

az disk show --resource-group yourresourcegroup --name yourdiskname


How to update the disk size of an Azure managed disk using Azure CLI

After an initial deployment, you might find yourself in need to change the size of the Azure managed disk you’ve just deployed. For example, if you want to change the size of it to 64GB, type:

az disk update --resource-group yourresourcegroup --name yourdiskname --size-gb 64


How to create an Azure managed disk using Azure CLI

The following command helps you create a basic Standard_LRS managed disk in Azure:

az disk create --resource-group yourresourcegroup --name yourdiskname --sku "Standard_LRS" --size-gb 32