azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

AKS command update not working with --api-server-authorized-ip-ranges parameter set to ""

Open niswitze opened this issue 5 years ago • 7 comments

az feedback auto-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

  1. Create or already have an AKS cluster with API Server Authorized IP Ranges set
  2. 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" } }

niswitze avatar Jan 12 '21 19:01 niswitze

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/aks-pm.

Issue Details

az feedback auto-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

  1. Create or already have an AKS cluster with API Server Authorized IP Ranges set
  2. 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:

AKS, Service Attention, needs-triage

Milestone: -

ghost avatar Jan 12 '21 23:01 ghost

aks

yonzhan avatar Jan 12 '21 23:01 yonzhan

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

niswitze avatar Jan 26 '21 19:01 niswitze

This issue should be looked into by AKS service team.

yonzhan avatar Jan 27 '21 00:01 yonzhan

This issue should be looked into by AKS service team.

Got it, would it be possible to assign the issue to the team directly?

niswitze avatar Jan 27 '21 02:01 niswitze

routing this to the appropriate team for follow-up. cc @Azure/aks-pm

yonzhan avatar Jan 27 '21 04:01 yonzhan

Hey @niswitze, is this issue still occurring? Where it doesn't work without the =?

mbifeld avatar Dec 10 '25 18:12 mbifeld