Any pointers on setting up a spot instance VM with...
# azure
k
Any pointers on setting up a spot instance VM with azure-native? Adding the below to a VM
Copy code
billingProfile: {
                maxPrice: 0.03,
            },
            evictionPolicy: "Deallocate",
gives the error
Copy code
error: Code="InvalidParameter" Message="Eviction policy can be set only on Azure Spot Virtual Machines. For more information, see <http://aka.ms/AzureSpot/errormessages>." Target="billingProfile"
Docs don't really mention much apart from those two elements around spot instances
t
Do you have this set?
Copy code
priority: "Spot",
k
No I didnt, thank you
It's right there in the docs, I just didnt scroll down far enough in my find for spot 😞
should a change in that trigger a replace as it errors?
Copy code
error: Code="BadRequest" Message="The specified priority value 'Spot' cannot be applied to the Virtual Machine 'ed-dev-admin-vm5e9acebc' since no priority was specified when the Virtual Machine was created. For more information, see <http://aka.ms/AzureSpot/errormessages>."
I can log an issue if so
t
Ideally it should replace. Probably, an annotation is missing in Azure Open API specs.
👍 1