Skip to content

Commit 0eafaa2

Browse files
authored
Commands are outdated & not working
az ad sp credential list --id $spid is not working any more Updated command should be az ad app credential list --id $spid ////////////////////////// az ad sp credential reset --id $spid is not working any more Updated command should be: az ad app credential reset --id $spid (I have tested locally and have the screen shots ready to justify the above statements, customers are facing issues with those stale commands) Please approve the changes
1 parent 10df7f5 commit 0eafaa2

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
@@ -37,7 +37,7 @@ To check the expiration date of your service principal, use the [az ad sp creden
3737
```azurecli
3838
SP_ID=$(az aks show --resource-group myResourceGroup --name myAKSCluster \
3939
--query servicePrincipalProfile.clientId -o tsv)
40-
az ad sp credential list --id "$SP_ID" --query "[].endDateTime" -o tsv
40+
az ad app credential list --id "$SP_ID" --query "[].endDateTime" -o tsv
4141
```
4242

4343
### Reset the existing service principal credential
@@ -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 --id "$SP_ID" --query password -o tsv)
58+
SP_SECRET=$(az ad app 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.

0 commit comments

Comments
 (0)