az aks scale fails with "The value of parameter imageReference.version is invalid"
See original GitHub issueDescribe the bug
Following command fails to scale the windows node pool. However, scaling operation from the portal succeeds.
AKS Version: 1.16.10 Windows Nodepool Version: 1.16.10
Command
az aks scale -g <cluster-rg> -n <clustername> --node-count 2 --nodepool-name <windows node pool> --debug
Errors:
Operation failed with status: 'Bad Request'. Details: Provisioning of resource(s) for container service <clustername> in resource group <clustername-rg> failed. Message: Resource 'aksf3aa10e1-0cb9-4505-9b0b-6cf5e8f049ba' has invalid parameters. Details: The value of parameter imageReference.version is invalid.. Details:
To Reproduce:
Deploy an AKS cluster version 1.16.10 using portal Add a windows nodepool with one node Scale with above command
Expected Behavior
The nodepool should scale to 2 nodes
Environment Summary
AKS Version: 1.16.10
Windows Nodepool Version: 1.16.10
CLI details:
Linux-4.15.0-1092-azure-x86_64-with-debian-stretch-sid (Cloud Shell)
Python 3.6.10
Installer: DEB
azure-cli 2.9.0 *
Additional Context
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
Troubleshoot the InvalidParameter error code - Azure
Learn how to troubleshoot the InvalidParameter error when you try to create and deploy an Azure Kubernetes Service (AKS) cluster.
Read more >Receiving a 'Invalid Parameter' SKU error when trying to ...
I am a beginner learning Terraform and need some advice. I am trying to create a Linux VM Scale Set in ...
Read more >azure-cli · PyPI
A great cloud needs great tools; we're excited to introduce Azure CLI, our next generation multi-platform command line experience for Azure. Usage. $...
Read more >Resource logs in Virtual Machine Scale Sets should be enabled
Resource logs in Virtual Machine Scale Sets should be enabled ... imageReference.sku properties.creationData.imageReference.id, false false false ...
Read more >Is version mandatory while creating an Azure VM using ...
Yeah they do have versions but it is not attached as it is for Microsoft Platform ... value of parameter imageReference.version is invalid....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Turns out this is a known CLI issue and fix is ready and pending deployment. To work around the issue, you may use az aks nodepool scale, same as the API used by Azure portal.
Thanks @TomGeske I have opened a support case.