If I can extend VM's disk size when VM is running

Xiwei Zhang 20 Reputation points
2025-03-19T05:42:34.0533333+00:00

Dear,

I have a VM hosted by Azure Local (Azure Stack HCI), I want to extend it's D drive from 200 GB to 300 GB.

The question is, If I can extend VM's disk size without reboot it.

Thanks

Azure Local
{count} votes

Accepted answer
  1. Alex Burlachenko 9,780 Reputation points
    2025-03-19T17:50:16.9233333+00:00

    Hi Xiwei,

    Yes, you can extend the disk size of a VM without rebooting it, but there are a few steps and considerations

    Increase the Disk Size in Azure:

    • Go to the Azure portal, navigate to the VM, and resize the disk under Disks.
    • For Azure Stack HCI, use the appropriate management tools to resize the disk.

    Extend the Partition in the OS

    • For Windows: Open Disk Management (diskmgmt.msc). Locate the disk, right-click the partition (e.g., D: drive), and select Extend Volume.
    • For Linux:
      • Use tools like fdisk or resize2fs to extend the partition.
    • Ensure the disk has unallocated space after resizing in Azure.

    Backup: Always take a backup before resizing disks.

    Links for OS (Windows or Linux)

    Extend a Windows VM OS Disk

    Extend a Linux VM OS Disk

    Best regards,

    Alex

    P.S. If my answer help to you, please Accept my answer

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.