CmdID / az / az vm / az vm disk
az vm disk attach
Attach a managed persistent disk to a VM. Azure CLI reference
9 options Its page in the Azure CLI reference
Options
--disk-idsThe disk IDs of the managed disk (space-delimited).--disksOne or more names or IDs of the managed disk (space-delimited).--enable-write-acceleratorenable write accelerator--ids--name, -nThe name or ID of the managed disk--new-names-of-source-disk-restore-point, --new-names-of-rpThe name of create new data disk from a disk restore point.--new-names-of-source-snapshots-or-disks, --new-names-of-srThe name of create new data disk from a snapshot or another disk.--source-disk-restore-point, --source-disk-rpcreate a data disk from a disk restore point.--source-snapshots-or-disks, --source-resourceCreate a data disk from a snapshot or another disk.