Is there a configuration to automatically allocate a spot instance in azure?

Gustavo Morales 1 Reputation point

I'm running a VM on Azure that is on spot instance by capacity - just wondering if once it gets evicted (deallocated) is there any way to make it allocate back again when capacity is available

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

1 answer

Sort by: Most helpful
  1. dashanan13 930 Reputation points
    Hei [@](/users/na/?userid=7912536a-8b9f-42b7-9a84-616823e1a619) Are you looking to allocate the same spot VM again?
    Ideally Azure Spot Virtual Machine instances are great for workloads that can handle interruptions like batch processing jobs, dev/test environments, large compute workloads, and more, ie Stateless Workloads.
    The VM does not come back automatically after being deallocated/stopped or deleted (the 2 choices given during creation.)
    It is possible that you create a VM scale set with spot vm and in that case Azure will try to maintain the number of VM by allocating another spot vm, if one or more current vm goes down.
    You can create spot vm scale set as described [here](
    Please "mark this as answer if it helped"