Can I migrate a running vm/vm scale set from Pay-as-you-go to Spot-pricing?

Marino Souza 1 Reputation point
2021-07-21T14:42:00.117+00:00

So, I have a RG with 2 instances of VMSS type Standard_D8s_v3 and 1 instance of VM Standard D4s_v4 (4 vcpus, 16 GiB memory) under the Pay-as-you-go pricing. If it is possible to migrate instead of create a new one from zero, how to I proceed with this?

Can I also revert this, in case the experience went not as expected?

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

1 answer

Sort by: Most helpful
  1. Karl Tremain 86 Reputation points Microsoft Employee
    2021-08-20T11:02:52.263+00:00

    There is no direct migration path - you would have to delete the VM and re-create
    As a possible workaround, you could investigate deletion of the original VM, retaining the disk, and create a new Spot VM using that disk.
    Sorry, but i cannot find any article that i can link you that would give steps to do this though. It would have to be done via cli/powershell/arm template though, this functionality is not available via the portal.
    Hope this helps! :)

    0 comments No comments

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.