-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resetting the app registration credentials with the sp object id does return a new password but does not save it #23843
Comments
@jiasli for awareness |
Facing same issue, reset not acting same after 2.37.0 when --name changed to -- id, customKeyIdentifier is not showing after 2.37.0 and reset is not working: after 2.37.0 az ad sp credential reset --name '$SP_ID' --query password -o tsvto renew the Service Principal secret, the command completes successfully and returns the password, but the secret is not renewed. |
Issue is the same when generating new certificates. @Azure:~$ az ad app credential reset --id xxxxxxxxxxxxxxxxxxxxxx --create-cert Azure AD is not updated. |
This is still a problem a year later. What's the point of providing a useful command for refreshing credentials if it silently fails? |
I think this is actually a duplicate of #23566. Resolution is to use |
@mthebridge is correct. This issue is a duplicate of #23566. |
@danielwuff, in AD Graph, https://learn.microsoft.com/en-us/graph/api/resources/passwordcredential?view=graph-rest-1.0
It was replaced by
|
Describe the bug
When using the credential reset command on the sp level with the sp object id, the password gets not resetted. The CLI does return a new passord but the Azure Portal does not show it in the app registration.
The documentation does say that it works with the spObjectId, which it did for a while.
The credential reset does work with the appId or with the
az ad app credential reset
command with either the appObjectId or the appId.Command Name
az ad sp credential reset
To Reproduce:
$applicationId = az ad app create --display-name "TMP_APP" --query appId -o tsv --only-show-errors
$spObjectId = az ad sp create --id $applicationId --query id -o tsv --only-show-errors
az ad sp credential reset --id "$spObjectId" --display-name {} --query {} -o {} --only-show-errors
Expected Behavior
A new password gets shown and it is visible in the azure portal in the app registration.
The actual behaviour is that a new password gets shown, but it is not visible in the azure portal in the app registration.
Environment Summary
Additional Context
The text was updated successfully, but these errors were encountered: