Hi I would like to change a disk on Azure from 128 GiB Premium SSD to a 512gb Standard SSD.

Vassily Scepanovic 20 Reputation points
2024-10-09T02:53:36.6766667+00:00

Firstly is it possible to do so, secondly will it carry over my data?

When selecting the plan and storage I want I do receive this warning.

"Changes to the disk size can be made only when the disk is unattached or the managing virtual machine(s) are deallocated."

To my understanding all that means is the Virtual machine needs to be shut down and and stopped Via Azure portal.

Any help would be greatly appreciated.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,021 questions
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
647 questions
0 comments No comments
{count} votes

Accepted answer
  1. TP 98,411 Reputation points
    2024-10-09T03:21:30.7333333+00:00

    Hi Vassily,

    Firstly is it possible to do so, secondly will it carry over my data?

    A: Yes, it is possible to change an existing managed disk from 128 GiB Premium SSD to 512 GiB Standard SSD. Yes, it will carry over your data.

    When selecting the plan and storage I want I do receive this warning. "Changes to the disk size can be made only when the disk is unattached or the managing virtual machine(s) are deallocated." To my understanding all that means is the Virtual machine needs to be shut down and and stopped Via Azure portal.

    A: The VM needs to be either Deallocated or the disk needs to be unattached. For OS disk, you would Deallocate the VM. For Data disk, if no applications are using it you could Detach it from the VM, make the change, then re-Attach it to the VM. Or you could Deallocate the VM for Data disk, your choice.

    What I recommend is you first Deallocate the VM (click Stop button in portal), wait for it to finish deallocating, take snapshot of the disk (for backup), change the size and type of disk, Start the VM, connect to VM (via Remote Desktop or ssh), and finally resize/create partition(s) as needed.

    After several days or whenever you feel comfortable, delete the snapshot.

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

    Thanks.

    -TP


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.