Skip to content

Commit b2e9b54

Browse files
author
Rick Rainey, CKA,CKS,CKAD,KCNA
authored
Update register-application-cli-rest.md
This updates the command for adding a secret to use the `--display-name` parameter instead of `--credential-description` for the secret name. Using `--credential-description` results in the following error: ``` ERROR: unrecognized arguments: --credential-description ``` Tested on Azure CLI v2.39.
1 parent 8e3bbd8 commit b2e9b54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/healthcare-apis/register-application-cli-rest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Choose a name for the secret and specify the expiration duration. The default is
8989
###Add client secret with expiration. The default is one year.
9090
clientsecretname=mycert2
9191
clientsecretduration=2
92-
clientsecret=$(az ad app credential reset --id $clientid --append --credential-description $clientsecretname --years $clientsecretduration --query password --output tsv)
92+
clientsecret=$(az ad app credential reset --id $clientid --append --display-name $clientsecretname --years $clientsecretduration --query password --output tsv)
9393
echo $clientsecret
9494
```
9595

0 commit comments

Comments
 (0)