question

JonathanRaganKelley-8061 avatar image
0 Votes"
JonathanRaganKelley-8061 asked prmanhas-MSFT commented

Spot instances fail validation with InvalidTemplateDeployment

My first attempts to create spot VMs (using the web UI) are universally failing at the final validation step with:

{"code":"InvalidTemplateDeployment","message":"The template deployment failed with error: 'The resource with id: '/subscriptions/.../resourceGroups/builder_group/providers/Microsoft.Compute/virtualMachines/builder' failed validation with message: 'The requested size for resource '/subscriptions/.../resourceGroups/builder_group/providers/Microsoft.Compute/virtualMachines/builder' is currently not available in location 'eastus' zones '' for subscription '...'. Please try another size or deploy to a different location or zones. See https://aka.ms/azureskunotavailable for details.'.'."}

This applies in every zone I have tried. My quota listings show 350 vCPUs for nearly all VM types (including all I am trying), and 350 "spot CPUs" (these don't seem to be broken out by VM type). This validation failure does not occur using otherwise identical settings but with a non-spot instance.

What else do I need to check? What other quotas or subscription changes might I need to request from support to be able to create spot instances?

azure-virtual-machinesazure-spot
· 2
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.

@JonathanRaganKelley-8061 Any update on the issue?

If the suggested response helped you resolve your issue, do click on "Accept as Answer" and "Up-Vote" for the answer that helped you for benefit of the community.

Thanks.


1 Vote 1 ·

@JonathanRaganKelley-8061 Can you confirm if you still have any queries or the below responses answered your query?

Do let us know if you have any more queries.

If the suggested response helped you resolve your issue, do click on "Accept as Answer" and "Up-Vote" for the answer that helped you for benefit of the community.

Thanks.

0 Votes 0 ·
didier3001 avatar image
0 Votes"
didier3001 answered pituach edited

Hi @JonathanRaganKelley-8061

You were right, Quota is the first thing to check. With Azure Spot VMs there are few more limitations that are not all visible and clear.


  1. Which type of Azure Subscriptions are you using? For example, it won't work with MSDN subscriptions. For CSP, you need to contact your Partner so that they can enable this for you. You can identify the details under "Subscription", then look for "Offer ID" and match it here: https://azure.microsoft.com/en-us/support/legal/offer-details/

  2. Some VMs are not available, B Series and any VM on "sales" (promo)

Just to be 100% clear, how did you try to deploy them on the Azure Portal? Using a Template or just by going to "create a VM" on the portal?

--I hope this helps. Please Accept it as an answer and "Up-Vote" the answer or message(s) that helped you so that it can help others in the community looking for help on similar topics

Regards,
Didier3001

· 3
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.

My offer number (0143P) doesn’t exist in that list. This is an academic donation, which I believe is a custom deal with my university.

To be clear: what exactly do you believe I need to request from whom (“Partner”) to enable spot instances? Is this just a quota request (it looks like the quota is fine), or something else? Is this a support request, or does it need to go through someone else?

Finally: I was just going through the “create a VM” flow on the portal. Flipping the Spot flag on the first page is the difference between working and this error, for every VM variant and region I try.

0 Votes 0 ·
didier3001 avatar image didier3001 JonathanRaganKelley-8061 ·

See my full response below

0 Votes 0 ·
pituach avatar image pituach JonathanRaganKelley-8061 ·

Hi,

According to my understanding the Microsoft Azure Sponsorship award (MS-AZR-0143P) has the exact same limitations as the Microsoft Azure Sponsorship award (MS-AZR-0036P), but I cannot guarantee that I did not miss something.

Sponsored subscriptions should be supported

16734-image.png

custom deal with my university.

Anyway, this is not a custom deal with you specific university, but a deal which is given to universities in general (for example it is used for research as much as I understood).



0 Votes 0 ·
image.png (9.0 KiB)
didier3001 avatar image
0 Votes"
didier3001 answered pituach edited

Only a couple of subscriptions are supported for spot VM and I can't be 100% 0143p is one of them. Its a sponsored subscription so maybe. As you can see below, sponsored subscription seems to be supported:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/spot-vms#limitations

https://azure.microsoft.com/en-us/offers/ms-azr-0143p/


I would open a case using that link:
https://azure.microsoft.com/en-us/support/create-ticket/

And provide
1. Azure subscription number
2. Offer id : 0143p
3. Both links I provided


--I hope this helps. Please Accept it as an answer and "Up-Vote" the answer or message(s) that helped you so that it can help others in the community looking for help on similar topics

Regards,
Didier3001



· 1
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.

Hi,

Only a couple of subscriptions are supported for spot VM and I can't be 100% 0143p is one of them.

Sponsored subscriptions should be supported as I posted the image of the screenshot above from the doc. In fact, I personally confirmed that offer MS-AZR-0036P works well with spot Virtual Machine (I created it using this type of subscription). I cannot confirm about the offer MS-AZR-0143P at this time, but I was sure that their limitation is the same



0 Votes 0 ·