UPDATE: From the screenshot we can see the disk is pending detachment for some reason. The solution was to use force-detach option to detach the disk, similar to below:
For more details please see comments below.
az vm disk detach -g MyResourceGroup --vm-name new-CA-vm --name CADataTransferTemp --force-detach
Hi,
1. What Operating System is running in VM?
2. What VM size is this disk attached to? You can see size on VM's Overview blade, (e.g. Standard_D2s_v3)
3. If you navigate in portal to the VM -- Settings -- Disks, does the disk show as being Attached there? It should, but in rare cases there can be issue where resources are not properly linked.
4. Have you tried Detaching/Attaching the disk, and checking inside VM if the disk device is visible? This shouldn't be necessary, but it is quick thing to try.
Please click Accept Answer and upvote to close up this thread.
Thanks.
-TP