Forum Discussion
How to locate storage account belongs to azure VM disk
- Oct 15, 2017
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.
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 DesaiOct 14, 2017Brass 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 KaziukaOct 15, 2017Brass 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.
- Gary PaulishOct 15, 2017Copper Contributor
Alex, thanks for chiming in. I guess I had the same reaction, and to emphasize your point, it would be incredibly helpful if you could explain your underlying goal Suhag.