Skip to content
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

Azure AAD App Credential Reset via AzCLI #23374

Closed
davidfranz001 opened this issue Jul 28, 2022 · 2 comments
Closed

Azure AAD App Credential Reset via AzCLI #23374

davidfranz001 opened this issue Jul 28, 2022 · 2 comments
Assignees
Labels
AAD Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. Graph az ad question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone

Comments

@davidfranz001
Copy link

davidfranz001 commented Jul 28, 2022

Related command
az ad sp credential reset
https://docs.microsoft.com/en-us/cli/azure/ad/sp/credential?view=azure-cli-latest

Describe the bug
After resetting the credential, the output shows that the credential is reset when using az ad sp credential list --id $AksApplicationID, but when viewing the changes the the Azure portal, they have not been reset.
This causes the SP account credential to be invalid.

To Reproduce
$AksApplicationSP = "myserviceprincipal"
$AksApplicationID = $(az ad sp create-for-rbac --skip-assignment --name $AksApplicationSP --query appId -o tsv)
az ad sp credential reset --id $AksApplicationID --end-date "2250-12-31" --display-name "MyNewDisplayName"

az ad sp credential list --id $AksApplicationID

Expected behavior
Both AzCLI and the Azure portal should have matching passwords display names, but this does not happen

Environment summary
Executed via Az CLI in PowerShell window

Additional context
Fix is to change from az ad sp credential reset to az ad app credential reset
https://docs.microsoft.com/en-us/cli/azure/ad/app/credential?view=azure-cli-latest

MS need to update their doco or fix this issue

@ghost ghost added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot Graph az ad labels Jul 28, 2022
@ghost ghost assigned jiasli Jul 28, 2022
@ghost ghost added this to the Backlog milestone Jul 28, 2022
@ghost ghost added the AAD label Jul 28, 2022
@yonzhan
Copy link
Collaborator

yonzhan commented Jul 28, 2022

@jiasli for awareness

@yonzhan yonzhan added Azure CLI Team The command of the issue is owned by Azure CLI team bug This issue requires a change to an existing behavior in the product in order to be resolved. labels Aug 14, 2022
@jiasli
Copy link
Member

jiasli commented Aug 24, 2022

Duplicate of #23566. See #23566 (comment) for detailed explanation.

@jiasli jiasli marked this as a duplicate of #23566 Aug 24, 2022
@jiasli jiasli closed this as completed Aug 24, 2022
@jiasli jiasli added question The issue doesn't require a change to the product in order to be resolved. Most issues start as that and removed bug This issue requires a change to an existing behavior in the product in order to be resolved. labels Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AAD Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. Graph az ad question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

3 participants