简体   繁体   中英

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

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: 在此处输入图像描述

This is how it shows up in Azure Portal site: 在此处输入图像描述

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) : 在此处输入图像描述

Modified/Added this later (after I got the feedback) : 在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

Thanks.

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: 在此处输入图像描述

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

Kind regards

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.

在此处输入图像描述

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

在此处输入图像描述

在此处输入图像描述

My disk 4 is identify in E drive as LUN 7

在此处输入图像描述

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

在此处输入图像描述

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

在此处输入图像描述

Additionally, To note the drives while allocating volume I have added to remember 2s for disk2 for particular LUN在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM