Hi,
There are some limitations for spot VM.
Are you comply with them?
Hope this helps!
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.'.'."
}
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
Why is the Azure returned error so bad, should it not mention that SPOT is not available for whatever reason.
rather than
The requested VM size for resource 'Following SKUs have failed for Capacity Restrictions: