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! :)
Can I migrate a running vm/vm scale set from Pay-as-you-go to Spot-pricing?
Marino Souza
1
Reputation point
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?
1 answer
Sort by: Most helpful
-
Karl Tremain 86 Reputation points Microsoft Employee
2021-08-20T11:02:52.263+00:00