Unable to change VM Size D2ds_v5 to D2ds_v6

Sean Bernard 5 Reputation points
2025-02-18T16:17:44.83+00:00

Hi,

I try to change the size of a vm in Germany West Central from Standard_D2ds_v5 to Standard_D2ds_v6. But I receive the following error:

Update-AzVM: Unable to resize the VM 'VMNAME' since changing from resource disk to non-resource disk VM size and vice-versa is not allowed. Please refer to https://aka.ms/AAah4sj for more details.

ErrorCode: OperationNotAllowed

ErrorMessage: Unable to resize the VM 'RemotePC01' since changing from resource disk to non-resource disk VM size and vice-versa is not allowed. Please refer to https://aka.ms/AAah4sj for more details.

ErrorTarget:

StatusCode: 409

ReasonPhrase:

OperationID : 520a14a5-3379-4255-bd97-6b5fa84bbe73

I don't know why. Because I change from an size with temp disk to an vm size also with an temp disk.

Could you help me?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,033 questions
{count} vote

1 answer

Sort by: Most helpful
  1. TP 125.7K Reputation points Volunteer Moderator
    2025-02-27T14:39:44.2333333+00:00

    Hi Sean,

    Unfortunately you cannot directly resize VM from Standard_D2ds_v5 to Standard_D2ds_v6 because Standard_D2ds_v6 effectively does not have a local temporary disk.

    Please see screenshot below where Standard_D2ds_v6 shows 0 for ResourceDiskSizeInMB and Standard_D2ds_v5 shows 76800:

    User's image

    Yes, Standard_D2ds_v6 does have a local temporary disk, however, it is NVMe, and is presented to the VM as a raw disk each first time the VM boots after being allocated to a physical host. Since the disk is raw, the OS won't be able to initialize paging file on it during startup.

    This is different than Standard_D2ds_v5, in which the local temporary disk is presented as NTFS/ext4 drive, ready for use by paging/swap file.

    Azure prevents the resize in order to avoid potential issues since the current size (Standard_D2ds_v5) is likely configured with paging file on temporary disk.

    Please see article below for things to consider when using VM sizes with temporary NVMe drives:

    https://learn.microsoft.com/en-us/azure/virtual-machines/enable-nvme-temp-faqs#what-changes-should-i-prepare-for-when-configuring-my-vms-with-temp-nvme-disks-

    Workaround/Solution:

    You can follow steps in article below to manually migrate your VM to the new size:

    https://learn.microsoft.com/en-us/azure/virtual-machines/azure-vms-no-temp-disk#how-do-i-migrate-from-a-vm-size-with-local-temp-disk-to-a-vm-size-with-no-local-temp-disk---

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

    Thanks.

    -TP

    1 person found this answer 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.