question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
feiskyercommented, Mar 20, 2020

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

1reaction
yungezzcommented, Mar 19, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found