Skip to content

Commit 89a75d6

Browse files
authored
Updating on the troubleshooting section
The key that contains the expiration time is currently called endDateTime, not endDate. output example: ``` $ az ad app credential list --id $SP_ID [ { "customKeyIdentifier": "abcdefghijklmnopqrstuvxyz", "displayName": null, "endDateTime": "2299-12-31T00:00:00Z", "hint": "24b", "keyId": "abcd1234-ab12-ab12-ab12-abcdef123456", "secretText": null, "startDateTime": "2023-02-15T21:38:02.84925Z" } ] ```
1 parent 31023f7 commit 89a75d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/openshift/howto-service-principal-credential-rotation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ To check the expiration date of service principal credentials run the following:
8888
# Service principal expiry in ISO 8601 UTC format
8989
SP_ID=$(az aro show --name MyManagedCluster --resource-group MyResourceGroup \
9090
--query servicePrincipalProfile.clientId -o tsv)
91-
az ad app credential list --id $SP_ID --query "[].endDate" -o tsv
91+
az ad app credential list --id $SP_ID --query "[].endDateTime" -o tsv
9292
```
9393
If the service principal credentials are expired please update using one of the two credential rotation methods.
9494

0 commit comments

Comments
 (0)