az-disk
Manage Azure managed disks
TLDR
Create a managed disk
SYNOPSIS
az disk subcommand [options]
DESCRIPTION
az disk manages Azure managed disks. Managed disks are block-level storage volumes managed by Azure and used with Azure Virtual Machines. They simplify disk management by handling storage account management automatically.
Supported storage types include Standard HDD (StandardLRS), Standard SSD (StandardSSDLRS), Premium SSD (PremiumLRS), Premium SSD v2 (PremiumV2LRS), and Ultra Disk (UltraSSD_LRS).
PARAMETERS
--name -n
The name of the managed disk.--resource-group -g
Name of resource group.--size-gb -z
Size in GB of the managed disk.--source
Source disk, snapshot, or URI to create the disk from.--sku
Storage type: StandardLRS, PremiumLRS, StandardSSDLRS, UltraSSDLRS, PremiumZRS, StandardSSDZRS.--location -l
Location of the disk.
SUBCOMMANDS
create
Create a managed disk.delete
Delete a managed disk.list
List managed disks.show
Get information about a managed disk.update
Update a managed disk.grant-access
Grant read or read-write access to a disk.revoke-access
Revoke access to a disk.wait
Wait for a disk to reach a specific state.
CAVEATS
Requires Azure CLI to be installed and authenticated with az login. Disks can only be attached to VMs in the same region. Resizing a disk requires the VM to be deallocated or the disk to be unattached.
SEE ALSO
az(1), az-image(1), az-snapshot(1)
