Azure AAD App Credential Reset via AzCLI #23374
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
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
toaz 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
The text was updated successfully, but these errors were encountered: