Skip to content

Commit 4f0118b

Browse files
Update update-credentials.md
azure cli changed some Parmenter of "az ad sp credential reset" from --name to --id hence do that modification
1 parent ba2064b commit 4f0118b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/aks/update-credentials.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ SP_ID=$(az aks show --resource-group myResourceGroup --name myAKSCluster \
5555
With a variable set that contains the service principal ID, now reset the credentials using [az ad sp credential reset][az-ad-sp-credential-reset]. The following example lets the Azure platform generate a new secure secret for the service principal. This new secure secret is also stored as a variable.
5656

5757
```azurecli-interactive
58-
SP_SECRET=$(az ad sp credential reset --name "$SP_ID" --query password -o tsv)
58+
SP_SECRET=$(az ad sp credential reset --id "$SP_ID" --query password -o tsv)
5959
```
6060

6161
Now continue on to [update AKS cluster with new service principal credentials](#update-aks-cluster-with-new-service-principal-credentials). This step is necessary for the Service Principal changes to reflect on the AKS cluster.
@@ -141,4 +141,4 @@ In this article, the service principal for the AKS cluster itself and the Azure
141141
[az-ad-sp-credential-list]: /cli/azure/ad/sp/credential#az_ad_sp_credential_list
142142
[az-ad-sp-credential-reset]: /cli/azure/ad/sp/credential#az_ad_sp_credential_reset
143143
[node-image-upgrade]: ./node-image-upgrade.md
144-
[node-surge-upgrade]: upgrade-cluster.md#customize-node-surge-upgrade
144+
[node-surge-upgrade]: upgrade-cluster.md#customize-node-surge-upgrade

0 commit comments

Comments
 (0)