VM SKU unavailable on CLI
See original GitHub issueDescribe 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:
- Created 2 years ago
- Comments:13 (5 by maintainers)
Top GitHub Comments
Compute
any news yet?