Finding capacity for Spot VM's in my subscription

AirGordon 7,150 Reputation points
2023-07-09T11:13:57.16+00:00

I have a Kubernetes cluster that I'm trying to add a new node pool to.

I want to use Spot Instances, however I have tried about 6 different VM SKU's and validation always fails with;

The resource with id: '/subscriptions/REDACTED/resourceGroups/MC_innerloop_aks-az-k8s-kanp_westeurope/providers/Microsoft.Compute/virtualMachineScaleSets/aks-npuser01-41715184-vmss' failed validation with message: 'The requested size for resource '/subscriptions/REDACTED/resourceGroups/MC_innerloop_aks-az-k8s-kanp_westeurope/providers/Microsoft.Compute/virtualMachineScaleSets/aks-npuser01-41715184-vmss' is currently not available in location 'westeurope' zones '' for subscription 'REDACTED'. Please try another size or deploy to a different location or zones.

I have looked at the az vm list-skus feature of the Azure CLI - however it doesn't seem to cater for Spot Instances.

I have verified that;

  1. I have Quota available in WestEurope for the VM SKU's as per the Portal Quota screen
  2. I have Spot Instance Quota available in the subscription (20 unused).
  3. I've tried with AZ's and Without.
  4. I've tried EastUs region as well as WestEurope
  5. I have tried using the Azure Portal to create the pool, as well as bicep
  6. Creating a Node Pool of the same SKU + Region + Zone config (but without Spot) works fine

Whilst I can write a script to pull all available SKU's in Azure (from az vm list-skus), and iteratively try creating my Spot Node Pool it feels like there must be a better way.

Can someone advise a better method of finding an available Spot VM?

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,447 questions
{count} votes

Accepted answer
  1. TP 124.7K Reputation points Volunteer Moderator
    2023-07-09T11:56:47.47+00:00

    Hi,

    Please confirm you are attempting to create Spot instance with a subscription offer type that is allowed to created Spot? For example, Pay-As-You-Go and Enterprise Agreement are two that I know are allowed to create Spot instances. Common types that are not allowed to create Spot are Visual Studio Enterprise/Professional subscriptions and Azure in Open.

    https://learn.microsoft.com/en-us/azure/virtual-machines/spot-vms#limitations

    Thanks.

    -TP

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.