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

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

About this issue

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

Commits related to this issue

Most upvoted comments

@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.