Modifying existing VMSS priority from Spot to Regular

Clay Redding 21 Reputation points
2021-02-06T15:38:29.743+00:00

Hi all,

I have an existing scale set, which was originally created to use Spot instances. I'd like to modify that scale set, to switch away from Spot VM instances, instead using Regular/Standard VM instances, so that I can avoid VM eviction for my customer.

I don't see a way to do this in the Azure Portal, so I've tried via the CLI. However, I'm experiencing failures of "Changing property 'priority' is not allowed" when trying to execute either of the following:

[azureuser@host scaleService]$ az vmss update --subscription MySub --resource-group MyRG --name MyVMSS --priority Regular
Changing property 'priority' is not allowed.

[azureuser@host scaleService]$ az vmss update --subscription MySub --resource-group MyRG --name MyVMSS --set virtualMachineProfile.priority=Regular
Changing property 'priority' is not allowed.

Is there a way to accomplish this modification, without having to resort to recreating a new VMSS that uses Regular instances? Long term, that is the solution, but I'm looking for a short term patch fix for a customer.

Thanks,
Clay

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,158 questions
Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
348 questions
{count} votes

Accepted answer
  1. prmanhas-MSFT 17,891 Reputation points Microsoft Employee
    2021-02-09T05:14:24.203+00:00

    @Clay Redding I had discussion with your Product Group Team and below is the response:

    We don’t have any way to switch an already created a Spot instances using VM Scale Set today to regular. You can only create a “Regular” or “Spot” only during time of creation of VM Scalesets today.

    Of course, we plan to support a scenario in the future were customers will be able to mix “Regular” and “Spot” instances within the same VM Scaleset.

    Hope it helps!!!

    Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Bruno Martins 0 Reputation points
    2023-12-05T16:57:16.16+00:00

    Hey,

    After a couple of years now... is it possible to change a spot VM to regular?

    0 comments No comments