CmdID / az / az vm / az vm disk
az vm disk detach
Detach a managed disk from a VM. Azure CLI reference
3 options Its page in the Azure CLI reference
Options
--disk-idsThe disk IDs of the managed disk (space-delimited).--force-detachForce detach managed data disks from a VM.--name, -nThe data disk name.