extending data disk size in azure vm

Arif Usman 496 Reputation points
2025-06-11T12:35:58.3066667+00:00

folks. I have a virtual machine in Azure with three attached data disks. One of the disks, named obdsqllogs01, needed to be extended to 128 GB, which I have successfully completed through the Azure portal (as shown in pic)

However, after logging into the VM, I noticed it created disk2 with 2 partition and has unallocated partition. it should show on Disk 5 (LUN 1 in Azure) with unallocated partitions as a result, I'm unable to directly extend the volume (as shown in pic).Azure portal

vm screen shot diskmanagervm_partition

What is the recommended method to extend this disk at the OS level, given the presence of multiple partitions on the disk?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,013 questions
{count} votes

Accepted answer
  1. Aslam Mohammad 400 Reputation points Microsoft External Staff Moderator
    2025-06-12T08:14:10.1766667+00:00

    Hi Arif Usman,

    As I understand, three disks were attached to the virtual machine. One of these disks had its size extended. A new partition may have been created on that extended space, but no new disk was added it is still part of the existing disk, not a separate one

    Modifying size is updating an existing disk's properties (no new LUN).

    Adding disk is attaching a new disk (creates new LUN and appears as new disk in OS).

    If you expand an existing disk (ex: from 64 GB to 128 GB), you are increasing the size of the existing virtual disk attached to the same LUN (LUN1 in this case).

    So, Disk remains the same (ex: Disk 2, LUN 1)

    No new disk is created

    No new LUN is added

    The partition on that disk can be extended to use the newly available space or a new partition can be created on the same disk.

    It will not show up as a new disk (ex: Disk 5) or get another LUN - unless you attach a separate new disk from the VM management interface.

    My Lab test:

    User's image

    User's image

    it will create partition on the same disk (LUN1) But it does not create a new disk User's image

    please refer this document:
    https://learn.microsoft.com/en-us/azure/virtual-machines/windows/expand-disks

    If you have any further queries, let me know. If the information is helpful, please click on "Upvote and Accept answer".
    User's image

    Thank you.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Arif Usman 496 Reputation points
    2025-06-13T14:20:58.3433333+00:00

    Hi Aslam Mohammad, You have been very helpful and I am really thankful to you.

    Since these vms are sql instances, I really don't want to take a risk.

    So, I attach two different different disk, and map in sql to point to new created disk.

    once db copied over, i had offline and detach the disk.

    Again, thank you so much for responding...

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.