Home > other >  How to identify drive of Azure Virtual Machine with how it is shown at Azure Portal?
How to identify drive of Azure Virtual Machine with how it is shown at Azure Portal?

Time:01-23

I am trying to identify which drive matches from Azure Virtual Machine with what is shown on the Azure Portal site.

I am trying to increase the size of one drive (H:\ drive) in VM from Azure Portal site.

This is how it shows up in VM: enter image description here

This is how it shows up in Azure Portal site: enter image description here

Where do I go about finding the right one to upgrade (from Azure Portal site)?

Currently, H:\ drive has 2 TB for the capacity, and I am trying to increase to 4 TB.

Modified/Added this later (after I got the feedback): enter image description here

Modified/Added this later (after I got the feedback): enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

Thanks.

CodePudding user response:

The following solution might help you with finding out which LUN number correlates to your 'H' partition. It is not very optimized but after a quick test should yield the desired result.

The commands are:

Get-Disk
Get-Partition -DiskNumber 2
$mydisk = Get-Disk 2
$mydisk.Location

The output should provide the LUN. DiskNumber 2 was arbitrarily chosen and you might have to try all disk numbers provided by "Get-Disk" to obtain the disk with the correct partition (or of course use some other method).

See the image below for my results: enter image description here

This MS Learn article provides more information about the commands. Hopefully this helps.

Kind regards

CodePudding user response:

I tried to reproduce the same in my environment to identify which drive matches from Azure Virtual Machine

I have created azure virtual machine and attached a new disk like below.

enter image description here

In Disk management to make understand on your disk -> right click -> properties -> you can see LUN number -> in my case LUN8 is represent as disk 5

enter image description here

enter image description here

My disk 4 is identify in E drive as LUN 7

enter image description here

Now in disk click on virtual disk. suppose You want to increase size of azure8 (my disk name)

enter image description here

If you click on 5 -> 5 is represent as disk 5 (G)drive as location on LUN 8 in my portal LUN 8 is azure8 disk name this way u can identify which drive is represent on which disk

enter image description here

Additionally, To note the drives while allocating volume I have added to remember 2s for disk2 for particular LUN enter image description here

  • Related