azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

az aks update --api-server-authorized-ip-ranges {} results in "Changing enablePrivateCluster is not allowed. It can only be set while creating the cluster."

Open kevinwedwards opened this issue 6 years ago • 8 comments

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

kevinwedwards avatar Mar 19 '20 14:03 kevinwedwards

thanks for reporting, we're routing to appropriate team to have a look.

yungezz avatar Mar 19 '20 14:03 yungezz

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/aks-pm.

ghost avatar Mar 19 '20 14:03 ghost

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.

kevinwedwards avatar Mar 19 '20 15:03 kevinwedwards

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.

kevinwedwards avatar Mar 19 '20 15:03 kevinwedwards

Thanks @kevinwedwards for the report, we're looking into it. cc @feiskyer

jluk avatar Mar 19 '20 19:03 jluk

Fixed by https://github.com/Azure/azure-cli/pull/12589, pending a new release of CLI

feiskyer avatar Mar 20 '20 00:03 feiskyer

If you install teh 0.4.35 aks-extension first (how-to here) , then the original command will work with CLI 2.2

kevinwedwards avatar Mar 20 '20 03:03 kevinwedwards

Looks like it's been fixed with the new CLI release. Closing for now.

Jen7714 avatar May 29 '20 16:05 Jen7714