AKS command update not working with --api-server-authorized-ip-ranges parameter set to ""
az feedbackauto-generates most of the information requested below, as of CLI version 2.0.62
Describe the bug Currently, the parameter for removing authorized ip ranges for the Kubernetes API Server in the AZ CLI does not work. The public and CLI documentation state to set the parameter --api-server-authorized-ip-ranges to "" and that will set the authorizedIpRanges field to null. Performing this just causes a bad syntax error to occur. The only way to get around this is to directly set the parameter to "" using an = sign
To Reproduce
- Create or already have an AKS cluster with API Server Authorized IP Ranges set
- Try to remove these ranges using the documented syntax below. The following error should occur:
Expected behavior
Documented way that fails -> az aks update -g rgName -n clusterName --api-server-authorized-ip-ranges ""
Way that succeeds -> az aks update -g rgName -n clsuterName --api-server-authorized-ip-ranges=""
Environment summary Running from Windows PowerShell with the following CLI version:
{ "azure-cli": "2.17.1", "azure-cli-core": "2.17.1", "azure-cli-telemetry": "1.0.6", "extensions": { "alertsmanagement": "0.1.0", "azure-devops": "0.18.0", "azure-iot": "0.10.8", "costmanagement": "0.1.0", "interactive": "0.4.4", "resource-graph": "1.1.0" } }
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/aks-pm.
Issue Details
az feedbackauto-generates most of the information requested below, as of CLI version 2.0.62
Describe the bug Currently, the parameter for removing authorized ip ranges for the Kubernetes API Server in the AZ CLI does not work. The public and CLI documentation state to set the parameter --api-server-authorized-ip-ranges to "" and that will set the authorizedIpRanges field to null. Performing this just causes a bad syntax error to occur. The only way to get around this is to directly set the parameter to "" using an = sign
To Reproduce
- Create or already have an AKS cluster with API Server Authorized IP Ranges set
- Try to remove these ranges using the documented syntax below. The following error should occur:
Expected behavior
Documented way that fails -> az aks update -g rgName -n clusterName --api-server-authorized-ip-ranges ""
Way that succeeds -> az aks update -g rgName -n clsuterName --api-server-authorized-ip-ranges=""
Environment summary Running from Windows PowerShell with the following CLI version:
{ "azure-cli": "2.17.1", "azure-cli-core": "2.17.1", "azure-cli-telemetry": "1.0.6", "extensions": { "alertsmanagement": "0.1.0", "azure-devops": "0.18.0", "azure-iot": "0.10.8", "costmanagement": "0.1.0", "interactive": "0.4.4", "resource-graph": "1.1.0" } }
| Author: | niswitze |
|---|---|
| Assignees: | - |
| Labels: |
|
| Milestone: | - |
aks
@Azure/aks-pm @yonzhan
Has there been any update on this issue? Still facing this after updating to the latest AZ CLI version, 2.18.0.
This issue should be looked into by AKS service team.
This issue should be looked into by AKS service team.
Got it, would it be possible to assign the issue to the team directly?
routing this to the appropriate team for follow-up. cc @Azure/aks-pm
Hey @niswitze, is this issue still occurring? Where it doesn't work without the =?