Forum Discussion

Suhag Desai's avatar
Suhag Desai
Brass Contributor
Oct 12, 2017

How to locate storage account belongs to azure VM disk

Hi,

 

When i click on azure virtual machine --> disk --> OS disk, i can see storage account type is general purpose (LRS) but how do i find out which storage accout it is using and where actually VHD is being stored on the backend ?

 

Regards,

  • Hey Suhag,

     

    What is the purpose to 'see' that vhd's? To list vhd's attached to VM you can simply use PS commands described here. If you need to see the disks for backup, you can perform a backup in many ways:

    - Create a snapshot (more about it here)

    - Use Azure Backup service

    - Copy vhd to a local disk or another storage account (VM should be shut down and the target disk detached). Attaching disk back to VM is well described here.

  • Gary Paulish's avatar
    Gary Paulish
    Copper Contributor

    Is the VM utilizing managed disks? If so, managed disks handle storage for you so they no longer rely on a storage account. You may still see a storage account associated with your VM, but it's used for storing files other than the VMs disks, e.g., screenshot.bmp and serialconsole.log if you have boot diagnostics enabled.

    • Suhag Desai's avatar
      Suhag Desai
      Brass Contributor

      You are right, it was managed disk. Thanks,

       

      So there is no way we can see the managed VHD. the only way we can export is through restore...right?

       

       

      • Alex Kaziuka's avatar
        Alex Kaziuka
        Brass Contributor

        Hey Suhag,

         

        What is the purpose to 'see' that vhd's? To list vhd's attached to VM you can simply use PS commands described here. If you need to see the disks for backup, you can perform a backup in many ways:

        - Create a snapshot (more about it here)

        - Use Azure Backup service

        - Copy vhd to a local disk or another storage account (VM should be shut down and the target disk detached). Attaching disk back to VM is well described here.

Resources