How to resize my Azure instance size to D2s_v5

eMagicJamesOng-5127 0 Reputation points
2025-02-28T07:51:03.4166667+00:00

We want to upgrade our virtual machine from D2s_v3 to D2s_v5(which we can find in reserved VM pricing), but we cannot locate it in my Virtual Machine Resize option.

Thank you.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,434 questions
0 comments No comments
{count} votes

Accepted answer
  1. TP 106K Reputation points
    2025-02-28T08:28:18.5666667+00:00

    Hi,

    Reason you are not seeing D2sv5 is because it does not include temporary disk whereas the current size does include temporary disk. When using resize capability, you are limited to sizes with temporary disk since your current VM size has a temporary disk. Please see FAQ, excerpt below:

    Can I resize a VM size that has a local temp disk to a VM size with no local temp disk? No. The only combinations allowed for resizing are:

    1. VM (with local temp disk) -> VM (with local temp disk); and
    2. VM (with no local temp disk) -> VM (with no local temp disk). If interested in a work around, please see next question.

    Workaround/Solution:

    Excerpt from FAQ article below:

    How do I migrate from a VM size with local temp disk to a VM size with no local temp disk?

    You can migrate by following these steps:

    1. Connect to your Virtual Machine that has a local temporary disk (for example, a D: Drive) as a local admin.

    2. Follow the guidelines on the "Temporarily move pagefile.sys to C drive" section of Use the D: drive as a data drive on a Windows VM to move the page file from the local temporary disk (D: drive) to the C: drive.

    Note Follow the guidelines on the "Temporarily move pagefile.sys to C drive" section of Use the D: drive as a data drive on a Windows VM to move page file from the local temporary disk (D: drive) to C: drive. Deviation from the steps outlined will lead to the error message - "Unable to resize the VM since changing from resource disk to non-resource disk VM size and vice-versa is not allowed.

    3. Take a snapshot of the VM by following the steps outlined in Create a snapshot using the portal or Azure CLI.

    4. Use snapshot to create a new diskless VM (such as, Dv5, Dsv5, Dasv5, Ev5, Esv5, Easv5 series) by following the steps outlined in Create a virtual machine from a snapshot with CLI.

    Please click Accept Answer and upvote if the above was helpful. If you are unsure about how to perform the steps above and/or still need assistance, add a comment below.

    Thanks.

    -TP

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Shikha Ghildiyal 3,580 Reputation points Microsoft Employee
    2025-02-28T08:31:16.89+00:00

    Hi eMagicJamesOng-5127,

    Thanks for reaching out to Microsoft Q&A.

    If your VM is still running and you don't see the size you want in the list, stopping the virtual machine may reveal more sizes.

    Please note Deallocating the VM also releases any dynamic IP addresses assigned to the VM. The OS and data disks are not affected.

    If you are resizing a production VM, consider using Azure Capacity Reservations to reserve Compute capacity in the region.

    For more guidance on limitations and considerations while resizing, please check this document : https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/resize-vm?tabs=portal

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

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.