-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Detaching OS disk #25812
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotaz vm/vmss/image/disk/snapshotact-observability-squadquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotaz vm/vmss/image/disk/snapshotact-observability-squadquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Related command
$ az vm disk detach -g $RG--vm-name $VM --name $OS_DISK
Describe the bug
Command errors with
No disk with the name '...' was found.To Reproduce
$ az vm disk detach -g $RG--vm-name $VM --name $OS_DISK
Expected behavior
Users may not know that detaching an OS disk is not allowed. The cli should check if the disk specified is an OS disk and return a different error message saying something along the lines of
Only detaching data disks is allowed. '...' is an OS disk.Environment summary
xplat
Additional context
n/a