question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VM SKU unavailable on CLI

See original GitHub issue

Describe the bug This may be an API bug, but I don’t know where to report it, definitely not on Azure’s Terraform provider repo. I’m trying to use Terraform to create an extra nodepool for AKS using Standard_NC6s_v3 SKU. It throws an error saying that the SKU is not available, except that the subscription has the necessary quota on that region. The error message:

Code="PreconditionFailed" Message="Provisioning of resource(s) for Agent Pool gpunode failed. Error: {\n  \"code\": \"InvalidTemplateDeployment\",\n  \"message\": \"The template deployment failed with error: 'The resource with id: '/subsc
riptions/<subscription_id>/resourceGroups/MC_core-infra-dev_dev-cluster_eastus2/providers/Microsoft.Compute/virtualMachineScaleSets/aks-gpunode-25771213-vmss' failed validation with message: 'The requested size for reso
urce '/subscriptions/<subscription_id>/resourceGroups/MC_core-infra-dev_dev-cluster_eastus2/providers/Microsoft.Compute/virtualMachineScaleSets/aks-gpunode-25771213-vmss' is currently not available in location 'eastus2'
 zones '1' for subscription '<subscription_id>'. Please try another size or deploy to a different location or zones. See https://aka.ms/azureskunotavailable for details.'.'.\"\n }"

Trying to check with az vm list-skus --location eastus --size Standard_N --all --output table reports the same (NotAvailableForSubscription), both on East US and East US 2.

---------------  -----------  ----------------  -------  ----------------------------------------------------------------------------------------------------------------------------------------------
virtualMachines  eastus       Standard_NC6s_v3  1,2,3    ['NotAvailableForSubscription, type: Location, locations: eastus', 'NotAvailableForSubscription, type: Zone, locations: eastus, zones: 1,2,3']
------------------------------------------------------------------------------------------------------------------------------------------------
virtualMachines  eastus2      Standard_NC6s_v3  1,2      ['NotAvailableForSubscription, type: Location, locations: eastus2', 'NotAvailableForSubscription, type: Zone, locations: eastus2, zones: 1,2,3']

All that would be fine, but creating this extra nodepool on Azure Portal works fine. After it was created, I imported it to Terraform using the resource ID and no changes were reported.

To Reproduce Try to verify availability of a NC6s_v3 SKU using CLI. On Portal it works fine.

Expected behavior Show the SKU’s status as available and let me create it using Terraform.

Environment summary Linux Fedora 34 Azure CLI { "azure-cli": "2.23.0", "azure-cli-core": "2.23.0", "azure-cli-telemetry": "1.0.6", "extensions": {} } Terraform 1.1.5 Azure Terraform provider 2.95

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
yonzhancommented, Feb 16, 2022

Compute

2reactions
jcavalieri8619commented, Mar 8, 2022

any news yet?

Read more comments on GitHub >

github_iconTop Results From Across the Web

SKU not available errors - Azure Resource Manager
When a VM is deployed for a SKU that's not available, an error occurs. Azure CLI and Azure PowerShell deployment commands display an...
Read more >
How to check the available VM Sizes (SKUs) by Azure Region
Here is how you can find out which Azure VM (virtual machine) sizes are available in an Azure region? Check it out right...
Read more >
Is there way I can find the available VM SKU's at ... - Server Fault
I'm sure there is a similar Powershell cmdlet, but I would use this through the Azure CLI: az vm list-sizes --location "your region"....
Read more >
Resize vmss in azure using azure cli - Stack Overflow
hello @KomalNagada, the command seems to be working fine in my environment . May i know what it the az cli version you...
Read more >
How to create a virtual machine using Azure CLI
How to create a virtual machine using the Azure CLI. Overview. With UKCloud for Microsoft Azure, you can leverage the ... Offer Publisher...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found