A disk shows on attached on VM. but Couldn't see it on VM.

shijin zen 40 Reputation points
2025-08-06T17:44:24.2166667+00:00

A disk shows on attached . but Couldn't see it on VM.User's image

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
{count} votes

Accepted answer
  1. TP 131.7K Reputation points Volunteer Moderator
    2025-08-07T17:03:44.7633333+00:00

    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

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.