diff --git a/pages/common/az-disk.md b/pages/common/az-disk.md new file mode 100644 index 00000000000000..e787e26765100a --- /dev/null +++ b/pages/common/az-disk.md @@ -0,0 +1,25 @@ +# az disk + +> Manage Azure Managed Disks. +> Part of `azure-cli` (also known as `az`). +> More information: . + +- Create a managed disk: + +`az disk create --resource-group {{resource_group}} --name {{disk_name}} --size-gb {{size_in_gb}}` + +- List managed disks in a resource group: + +`az disk list --resource-group {{resource_group}}` + +- Delete a managed disk: + +`az disk delete --resource-group {{resource_group}} --name {{disk_name}}` + +- Grant read or write access to a managed disk (for export): + +`az disk grant-access --resource-group {{resource_group}} --name {{disk_name}} --access-level {{Read|Write}} --duration-in-seconds {{seconds}}` + +- Update disk size: + +`az disk update --resource-group {{resource_group}} --name {{disk_name}} --size-gb {{new_size_in_gb}}`