azure-cli: az aks update --api-server-authorized-ip-ranges "" does not work on PowerShell
This is autogenerated. Please review and update as needed.
Describe the bug
According to your documentation, https://docs.microsoft.com/en-us/cli/azure/aks?view=azure-cli-latest#az-aks-update, using empty string for --api-server-authorized-ip-ranges should remove the ip range restrictions, it however just throws an error leaving cluster in undesired state
az aks update -g $resGrp -n $aks --api-server-authorized-ip-ranges “”
Errors:
az aks update: error: argument --api-server-authorized-ip-ranges: expected one argument
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
Expected Behavior
Environment Summary
Windows-10-10.0.17763-SP0
Python 3.6.6
Installer: MSI
azure-cli 2.3.1 *
Additional Context
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (7 by maintainers)
Ok, wrapping the double quotes in single quotes did work az aks update -g ${resGrp} -n $aks --api-server-authorized-ip-ranges ‘“”’ did remove clear out the previous values