Forum Discussion
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 http://pipe2text.com/?page_id=2596. If you need to see the disks for backup, you can perform a backup in many ways: - - Create a snapshot (more about it https://docs.microsoft.com/en-us/azure/virtual-machines/windows/snapshot-copy-managed-disk) - - 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 https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps. 
8 Replies
- Gary PaulishCopper ContributorIs 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 DesaiBrass ContributorYou 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 KaziukaBrass ContributorHey Suhag, What is the purpose to 'see' that vhd's? To list vhd's attached to VM you can simply use PS commands http://pipe2text.com/?page_id=2596. If you need to see the disks for backup, you can perform a backup in many ways: - Create a snapshot (more about it https://docs.microsoft.com/en-us/azure/virtual-machines/windows/snapshot-copy-managed-disk) - 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 https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps.