az aks update --api-server-authorized-ip-ranges {} results in "Changing enablePrivateCluster is not allowed. It can only be set while creating the cluster."
See original GitHub issueThis 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
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
API server authorized IP ranges in Azure Kubernetes Service ...
Create a cluster using the az aks create and specify the --api-server-authorized-ip-ranges parameter to provide a list of authorized IP address ...
Read more >Fully private AKS clusters — without any public ips — finally!
It is possible that the api server endpoint ip of a private cluster can change during internal failover/ maintenance operations and it can...
Read more >Managed Clusters (AKS) - The Cluster API Provider Azure Book
A clusterctl flavor exists to deploy an AKS cluster with CAPZ. ... Note: these configurations can not be updated after a node pool...
Read more >Securing Azure Kubernetes and workloads - Marius Sandbu
This configuration can be added when you are creating a cluster or you can update the configuration az aks update \ --resource-group ...
Read more >azure.containerservice.KubernetesCluster - Pulumi
Changing this forces a new resource to be created. kubernetesVersion string. Version of Kubernetes specified when creating the AKS managed cluster. If not...
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 Free
Top 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

Fixed by https://github.com/Azure/azure-cli/pull/12589, pending a new release of CLI
thanks for reporting, we’re routing to appropriate team to have a look.