Share via

Expanding an OS disk on an Azure VM

Anonymous
2022-05-09T15:23:15.727+00:00

Hi.

We have 2 virtual machines in Azure that were spec'd incorrectly by the vendor and we find we are running out of disk space on the OS disk. Is there a way to increase the size of the OS disk without having to recreate the VM?

These are both production VMs. They can be shut down for a small period of time but whatever has been installed on the OS disk, has to remain installed. Is this even possible?

Azure Disk Storage
Azure Disk Storage

A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.


2 answers

Sort by: Most helpful
  1. guillaume v 11 Reputation points
    2022-05-09T16:09:11.957+00:00

    Hello,

    This should be the process:

    1. Stop the VM
    2. Go to Disks
    3. Select the disk
    4. Click Size + performance
    5. Select the SKU
    6. Restart the VM
    2 people found this answer helpful.
    0 comments No comments

  2. Ravi Kanth Koppala 3,471 Reputation points Microsoft Employee Moderator
    2022-05-10T05:52:49.81+00:00

    @Anonymous ,

    Thank you for reaching out to the Microsoft Q&A platform. Happy to answer your question. Expanding the OS disk on the Azure VM is a two-step process.

    1. You will need to expand the managed disk size in the Azure Portal: https://learn.microsoft.com/en-us/azure/virtual-machines/windows/expand-os-disk#resize-a-managed-disk-in-the-azure-portal
    2. Once that is complete you will need to expand the volume in the operating system: https://learn.microsoft.com/en-us/azure/virtual-machines/windows/expand-os-disk#expand-the-volume-in-the-operating-system

    Please suggest if you have any questions. Happy to assist you. Thanks.

    ----------

    Please "Accept as Answer" and Upvote if any of the above helped so that, it can help others in the community looking for remediation for similar issues.

    1 person found this answer helpful.

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.