Disable a spot instance without losing the ip

henri 0 Reputation points
2023-03-27T09:17:38.18+00:00

Hello everyone,

I have a Spot Ubuntu VM running on a fixed ip. I need a permanent availability of the VM, so I need to upgrade this VM by disabling the spot instance.

How can I do this without losing the fixed ip ?

Thank you for your time.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,164 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Rohit Kumar Sinha 1,321 Reputation points
    2023-03-27T09:28:01.9366667+00:00

    HI ,

    There is no simplified ways to convert a SPOT VM to regular VM of a Regular VM to a SPOT VM , this can be achieved using CLI but may require Downtime and sometimes may result in failure.

    You need to take Snapshot for the OS Disk , then Delete the VM without deleting the IP and Disk attached.

    Once Done , you can recreate a Regular VM with the Snapshot of the OS Disk and attach the Disks and IP that was preserved from the earlier activity.

    0 comments No comments