Share via

Need help increaseing the disk size of my VM running linux

Menno Weijling 0 Reputation points
2026-03-24T13:39:53.0666667+00:00

I need assistance in increasing disk size of the disk attatched to my VM running linux.
Since it's a live production environment, I can't stop the instance. I had had issues before while trying to upgrage disk space.

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.


1 answer

Sort by: Most helpful
  1. TP 155.4K Reputation points Volunteer Moderator
    2026-03-24T14:03:12.7533333+00:00

    Hi Menno,

    Is the disk you want to increase a managed data disk? If it is OS disk you cannot increase the size without first Deallocating the VM. As always make sure you have backup of your VM and all its disks before making changes.

    To increase size of managed data disk, navigate to the VM in portal -- on left click Settings -- Disks, click on data disk you would like to increase. Next, on the Disk screen click Settings -- Size + performance. Select the new size and click Save. Wait for notification that says it successfully updated disk.

    Now that you have increased the size of the disk, you need to expand the partition and filesystem within the VM. Please see article below for instructions on identifying disk within the operating system and then expanding partition and filesystem.

    Expand virtual hard disks on a Linux VM

    https://learn.microsoft.com/en-us/azure/virtual-machines/linux/expand-disks

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP


Your answer

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