-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
az ad sp credential list does not show the same as the Azure portal #23717
Comments
@jiasli for awareness |
I've done a bit more experimentation. Created a brand new app registration and reset its secret with So I think it's simply that the docs are wrong: To be precise, this page says:
The same text is visible in the output of So it appears that enterprise applications/service principals have their own set of secrets, that are not visible anywhere in the Azure portal. A fun place to stash away backdoor credentials! |
@yrro Thank you for reaching out, we will look into it. |
@yrro Thank you for reaching out to us. As you pointed out they are used for different purposes. az ad app credential list uses application api for ad graph and az ad sp credential list uses the application api. We will get the document updated to use better words to avoid confusion. |
Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you! |
I don't think there's any feedback required from me? |
@yrro No we do not need it. Thank you. I will close this thread, if you have no further questions. |
Is there a link to the issue # for the doc update? |
@yrro No yet. We will get it updated soon. |
Thank you for your feedback. This has been routed to the support team for assistance. |
https://learn.microsoft.com/en-us/cli/azure/ad/sp/credential?view=azure-cli-latest no longer has text similar to 'The credential update will be applied on the Application object the service principal is associated with. In other words, you can accomplish the same thing using "az ad app credential".' so I am closing this issue. |
Duplicate of #23566 |
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az ad sp credential list --id ID
Errors:
The output shows me the credential reset with
az ad sp credential reset --id ID
. But in the Azure portal, looking at the app registration's secrets, there is a different secret displayed with a different (shorter) expiry date.To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az ad sp credential list --id ID
outputs nothing. The secret created in the Azure portal cannot be seen in the CLIaz ad sp credential reset --id ID --years 100
az ad sp credential list --id ID
will show the new 100 year secret.Expected Behavior
Environment Summary
Additional Context
The text was updated successfully, but these errors were encountered: