question

Jens-3067 avatar image
0 Votes"
Jens-3067 asked Jens-3067 commented

Spot VM validation fails

No matter which region, size, eviction policy - I can't get a Spot VM request validated through the portal. See the detailed error below.

Spot VMs should be available for my subscription type (Pay-As-You-Go, MS-AZR-0044P).
I'm not over any vCPU quotas and I have confirmed availability in the region using az CLI as suggested in the rror message (https://aka.ms/azureskunotavailable)

When I go back, untick the Spot option the request validates and the machine is created.

Any help or suggestion appreciated!





{
"code": "InvalidTemplateDeployment",
"message": "The template deployment failed with error: 'The resource with id: '/subscriptions/67a6d7bd-a7fd-4dc5-bcf7-ff698bb224d1/resourceGroups/strawberry_group_08160226/providers/Microsoft.Compute/virtualMachines/strawberry' failed validation with message: 'The requested size for resource '/subscriptions/67a6d7bd-a7fd-4dc5-bcf7-ff698bb224d1/resourceGroups/strawberry_group_08160226/providers/Microsoft.Compute/virtualMachines/strawberry' is currently not available in location 'germanywestcentral' zones '' for subscription '67a6d7bd-a7fd-4dc5-bcf7-ff698bb224d1'. Please try another size or deploy to a different location or zones. See https://aka.ms/azureskunotavailable for details.'.'."
}








azure-virtual-machinesazure-spot
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

CristianSPIRIDON72 avatar image
1 Vote"
CristianSPIRIDON72 answered CristianSPIRIDON72 edited

Hi,

There are some limitations for spot VM.
Are you comply with them?

Hope this helps!


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ktremain avatar image
0 Votes"
ktremain answered Jens-3067 commented

As your error doesn't give the size you were attempting to deploy, giving an accurate answer is difficult.
Be aware that some VM sizes aren't available in all regions, maybe you can check the VM size you requested here:
https://azure.microsoft.com/en-us/pricing/details/virtual-machines/linux/#pricing
I note your error gives region as "germanywestcentral" where Da-v4 isnt available in that region for example

· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

i have currently also problems find any available spot VM, can you try for yourself if it is possible for you?

0 Votes 0 ·

Interesting, I also had issues trying to deploy spot last week, but have just re-tried again today, and was able to do it. Can you please re-try this again now?

0 Votes 0 ·

yea now it works again

0 Votes 0 ·

As I said, I tried this with many regions and sizes, all of them verified to be available. All of them passing the review. Selection of region/size/price/policies/etc certainly wasn't the problem.

The next day, I added a second subscription and was able to create spot instances without any issues. I then tried my original subscription and to my surprise all issues had gone, even after disabling the second subscription. It may have been related to upgrading my free trial to PAYG the day before, but I logged out the portal and did "all the usual things", switched from Chrome to Edge, etc. I doubt it was any client side caching issue.

A few days later, creating spot instances through the portal was broken again. Different this time, i.e. it wouldn't offer me any spot instance size in any region on the first tab. There were also issues with loading prices. At the same time, creating the exactly same spot instances using ARM templates and az cli worked just fine.

0 Votes 0 ·