question

AntoninJelinekCZ-5049 avatar image
0 Votes"
AntoninJelinekCZ-5049 asked AntoninJelinekCZ-5049 commented

Keep getting SKU not avilable despite az vm list-skus lists no restrictions

I'm using Visual Studio MSDN License subscription I got from my employer. I'm trying to start a SPOT Standard_D4s_v4 VM in northeurope location. Command az vm list-skus --location northeurope --size Standard_D4 --all --output table lists no restriction however I'm still getting validation error:

The requested size for resource '/subscriptions/<subscription-id>/resourceGroups/TestDevopsDeploy/providers/Microsoft.Compute/virtualMachines/<vm-name>' is currently not available in location 'northeurope' zones '' for subscription <subscription-id>

I've also tried in other locations with the same result.

Just wondering whether this is caused by some settings on my subscription?

azure-virtual-machines-images
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.

1 Answer

shivapatpi-MSFT avatar image
1 Vote"
shivapatpi-MSFT answered AntoninJelinekCZ-5049 commented

Hello @AntoninJelinekCZ-5049 ,
Thanks for reaching out to Microsoft Q&A.
Probably that VM is not available for your subscription under SPOT instances. Did you try by un-checking the SPOT instance flag ? Also try deploying the same SKU by removing zones.

What is the error Key code you were getting ?
As per the document , search for the error key codes here : https://docs.microsoft.com/en-us/azure/virtual-machines/error-codes-spot
Check out the SPOT VM limitations: https://docs.microsoft.com/en-us/azure/virtual-machines/spot-vms


Regards,
Shiva.

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

Hello @shivapatpi-MSFT ,

thank you for your response. The error code I get when trying to deploy SPOT instance is "InvalidTemplateDeployment", which unfortunately is not listed on error codes page. The closest to my question seems to be this conversation https://docs.microsoft.com/en-us/answers/questions/62612/spot-instances-fail-validation-with-invalidtemplat.html , although I'm not quite sure what the outcome is. As I mentioned, I'm using MSDN License subscription, so it may be subject of some restrictions, especially for SPOT instances.

Anyway, when I created my instance without SPOT flag, it created ok. It is fine for now, I only need this for experimental purposes.

With regards,

Antonin

0 Votes 0 ·