az aks update --api-server-authorized-ip-ranges {} results in "Changing enablePrivateCluster is not allowed. It can only be set while creating the cluster."
This is autogenerated. Please review and update as needed.
Describe the bug
Since Private AKS clusters went GA, we're unable to set --api-server-authorized-ip-ranges. upon doing so we get an error saying we can't enablePrivateCluster. Our cluster is public, and we're not attempting to enable a private cluster.
Command Name
az aks update
Errors:
Operation failed with status: 'Bad Request'. Details: Changing enablePrivateCluster is not allowed. It can only be set while creating the cluster.
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Put any pre-requisite steps here...
az aks update -g {} -n {} --api-server-authorized-ip-ranges {} --verbose
Expected Behavior
Environment Summary
Windows-10-10.0.17134-SP0
Python 3.6.6
azure-cli 2.2.0
Additional Context
thanks for reporting, we're routing to appropriate team to have a look.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/aks-pm.
My boss jun ran this with CLI v 2.1.0 and it didn't fail, succeeded and returned JSON. I'd upgraded my CLI on Monday morning, to test out creating a Private AKS cluster.... I'm near certain it's related to v2.2.0 CLI.
We first noticed it on the 18.04 build agent in AzDevOps,
18hrs ago the 'included software' documentation was updated (see here)
About as close to 100% sure as I can be that it's a bug with CLI 2.2 issue and the "az aks update" command.
Thanks @kevinwedwards for the report, we're looking into it. cc @feiskyer
Fixed by https://github.com/Azure/azure-cli/pull/12589, pending a new release of CLI
If you install teh 0.4.35 aks-extension first (how-to here) , then the original command will work with CLI 2.2
Looks like it's been fixed with the new CLI release. Closing for now.