Azure Disks and Storage

Hi,

I have a VM on Azure which has multiple disks. How do I identify which data disk is mounted to which volume in Azure VM ?

Regards
Mahesh BadgeAsked:
Who is Participating?
 
David Johnson, CD, MVPOwnerCommented:
 Get-AzureRmDisk | Select-Object name,ID

Name                                                Id                                                                                                                                                                
----                                                --                                                                                                                                                                
DataDisk1                                           /subscriptions/d77de785-04d2-469b-98b5-b6481e9a5742/resourceGroups/VMTEST/providers/Microsoft.Compute/disks/DataDisk1                                             
DataDisk2                                           /subscriptions/d77de785-04d2-469b-98b5-b6481e9a5742/resourceGroups/VMTEST/providers/Microsoft.Compute/disks/DataDisk2                                             
TestVMdwj_OsDisk_1_6fb868a9dee645238eae22f2762315e0 /subscriptions/d77de785-04d2-469b-98b5-b6481e9a5742/resourceGroups/VMTEST/providers/Microsoft.Compute/disks/TestVMdwj_OsDisk_1_6fb868a9dee645238eae22f2762315e0   
disk2                                               /subscriptions/d77de785-04d2-469b-98b5-b6481e9a5742/resourceGroups/TESTVMDWJ/providers/Microsoft.Compute/disks/disk2                                              
disk3                                               /subscriptions/d77de785-04d2-469b-98b5-b6481e9a5742/resourceGroups/TESTVMDWJ/providers/Microsoft.Compute/disks/disk3                                              
testvmdwj_OsDisk_1_e7bcf862263e406eb0dbedb4313d663c /subscriptions/d77de785-04d2-469b-98b5-b6481e9a5742/resourceGroups/TESTVMDWJ/providers/Microsoft.Compute/disks/testvmdwj_OsDisk_1_e7bcf862263e406eb0dbedb4313d663c

Open in new window

0
 
Philip ElderTechnical Architect - HA/Compute/StorageCommented:
VM properties should have a GUID associated with each disk.
Look in the storage account for the GUID.
0
 
Philip ElderTechnical Architect - HA/Compute/StorageCommented:
@David Johnson Even better! :)
0
 
David Johnson, CD, MVPOwnerCommented:
no response from asker points split
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.