Skip to content

Commit ad909d7

Browse files
Merge pull request #230745 from schaffererin/ip-range-aks
Updating append command per feedback from GitIssue
2 parents 956cb6e + 8b3955f commit ad909d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/aks/api-server-authorized-ip-ranges.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,13 @@ To add another IP address to the approved ranges, use the following commands.
164164
CURRENT_IP=$(dig +short "myip.opendns.com" "@resolver1.opendns.com")
165165
````
166166

167-
```azurelci
167+
```azurecli
168168
# Add to AKS approved list
169-
az aks update -g $RG -n $AKSNAME --api-server-authorized-ip-ranges $CURRENT_IP/32
169+
az aks update -g $RG -n $AKSNAME --api-server-authorized-ip-ranges $CURRENT_IP/24,73.140.245.0/24
170170
```
171171

172172
> [!NOTE]
173-
> The above example appends the API server authorized IP ranges on the cluster. To disable authorized IP ranges, use `az aks update` and specify an empty range "".
173+
> The above example adds another IP address to the approved ranges. Note that it still includes the IP address from [Update a cluster's API server authorized IP ranges](#update-a-clusters-api-server-authorized-ip-ranges). If you don't include your existing IP address, this command will replace it with the new one instead of adding it to the authorized ranges. To disable authorized IP ranges, use `az aks update` and specify an empty range "".
174174

175175
Another option is to use the following command on Windows systems to get the public IPv4 address, or you can follow the steps in [Find your IP address](https://support.microsoft.com/en-gb/help/4026518/windows-10-find-your-ip-address).
176176

0 commit comments

Comments
 (0)