How to increase default disk size,

Chandrakanth Gaikwad 0 Reputation points
2023-02-03T11:18:16.17+00:00

User's image

while increasing the disk size, save button is greyed out and it is is Changes to the disk size can be made only when the disk is unattached or the managing virtual machine(s) are deallocated. which is also I am unable to unattached it. Kindly assist

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

3 answers

Sort by: Most helpful
  1. Prrudram-MSFT 21,966 Reputation points
    2023-02-07T19:26:59.43+00:00

    Hello @Chandrakanth Gaikwad

    Thank you for reaching out to the Microsoft Q&A platform. Happy to answer your question.

    As mentioned in other answers and in document, to increase the disk size of a virtual machine, the disk must be unattached, or the managing virtual machine(s) must be deallocated. This is because the disk size can only be changed when the disk is not in use.

    To deallocate the virtual machine, you can use the Azure portal or Azure PowerShell. In the Azure portal, navigate to the virtual machine and select "Deallocate" from the "Overview" page. In Azure PowerShell, you can use the Stop-AzVM command to deallocate the virtual machine.

    Once the virtual machine is deallocated, you can then increase the disk size by following the steps outlined in the documentation. In the Azure portal, navigate to the "Disks" section under "Settings" and select the disk you want to expand. Then, select "Size + performance" and choose the new disk size. Finally, select "Resize" to save the changes.

    In case you are unable to deallocate the virtual machine, you can try to detach the disk from the virtual machine. In the Azure portal, navigate to the "Disks" section under "Settings" and select the disk you want to detach. Then, select "Detach" to detach the disk from the virtual machine. Once the disk is detached, you can then increase the disk size as outlined above.

    Hope this helps!

    Please let me know if you have any further queries.

    If the answer provided by has helped, please 'Accept as Answer' and Upvote using "Thumbs-up" so that the relevancy of this post will improve when anyone in the community search for a similar query.

    1 person found this answer helpful.
    0 comments No comments

  2. Rafael da Rocha 5,076 Reputation points
    2023-02-03T11:47:56.67+00:00

    Hello,

    this is expected. Changes to the OS disk can only happen on unattached disks, or when the VM is de-allocated.

    https://learn.microsoft.com/en-us/azure/virtual-machines/windows/expand-os-disk

    0 comments No comments

  3. Ryan P 6 Reputation points
    2024-01-11T11:57:03.6233333+00:00

    I had this exact situation with a VM that I had shutdown via Start > Shutdown. However just shutting down is not enough. It has to be "stopped" via the Azure control panel or else you won't be able to modify the disk as described by the OP.

    0 comments No comments