Azure / Azure/azure-cli

Disable authorized IP ranges command fails(Cloud Shell PowerShell): az aks update --api-server-authorized-ip-ranges ""

Open
#17,585 6 comments 0 reactions 0 assignees View on GitHub
act-observability-squad AKS Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

Command from docs:
`az aks update --api-server-authorized-ip-ranges ""`

In Cloud Shell PowerShell fails with:
`argument --api-server-authorized-ip-ranges: expected one argument`

Same exact command works in Cloud Shell bash.

Not sure if this is a docs issue, where the command should look different in PS, or whether it's a bug in the az client when running from PowerShell (possibly a Windows vs Linux issue).

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: d75c3a8d-1187-bea1-a7d4-7ebba71c1790
* Version Independent ID: 75b0c352-762e-16ae-5cc6-d807ffc1dc3f
* Content: [az aks](https://docs.microsoft.com/en-us/cli/azure/aks?view=azure-cli-latest)
* Content Source: [latest/docs-ref-autogen/aks.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/master/latest/docs-ref-autogen/aks.yml)
* Service: **container-service**
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.