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: error: argument --api-server-authorized-ip-ranges: expected one argument

See original GitHub issue

When running the aks update for authorized IP range i am getting the below error

az aks update --resource-group aks-poc-seab –name aksseabpoc ` –api-server-authorized-ip-ranges

az aks update: error: argument --api-server-authorized-ip-ranges: expected one argument

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
fengzhou-msftcommented, Mar 24, 2020

@nidiculageorge @pvasek Are you using Powershell? You can pass --api-server-authorized-ip-ranges= instead of --api-server-authorized-ip-ranges "" for empty string. Powershell has known issues to strip double quotes when passing parameters in a batch script which is what our az.cmd/az.bat does.

A more general workaround is to replace one double quotes with three double quotes --api-server-authorized-ip-ranges """""" or add stop-parsing symbol --% after az: az --% aks update --resource-group myResourceGroup --name myAKSCluster --api-server-authorized-ip-ranges "". More about quoting issues in our doc.

0reactions
nidiculageorgecommented, Apr 10, 2020

Hello Team,

The above command worked fine .Thanks team.

Read more comments on GitHub >

github_iconTop Results From Across the Web

API server authorized IP ranges in Azure Kubernetes ...
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 >
az network lb rule create: error: argument --resource-group/-g
One more question, when I set up Standard Loadbalancer for MultiAZ AKS, it creates two Backend Pool: "kubernetes" and "aksOutboundBackendPool".
Read more >
Ensure AKS API server defines authorized IP ranges
Error: AKS API server does not define authorized IP ranges Bridgecrew Policy ID: ... ContainerService/managedClusters; Argument: apiServerAuthorizedIPRanges.
Read more >
ArgumentUsageError -d expected one argument in release ...
Getting this error when trying to run a release pipeline in devops. Could someone point me in the right direction in getting it...
Read more >
Getting started with Terraform and Kubernetes on Azure AKS
Notice the required arguments for creating a cluster: the name and resource group. ... If needed, you can modify the cluster with the...
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