-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamGraphaz adaz adcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-request
Milestone
Description
Related command
az ad app credential reset
The issue
Current implementation of az ad app credential reset drops some of the data that is returned by the MS Graph endpoint
Command output:
{
"appId": "xxxx-84e4c88e4a08",
"password": "yyyyyLMFQT2dt7",
"tenant": "cccccccc8236f"
}Endpoint payload:
{
"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#microsoft.graph.passwordCredential",
"customKeyIdentifier":null,
"displayName":"uhassagyasygasasgy",
"endDateTime":"2027-10-22T12:10:18Z",
"hint":"xxx",
"keyId":"xxxx-a7c6-fe8b991543a4",
"secretText":"xxxxxT2dt7",
"startDateTime":"2025-10-22T12:10:18Z"
}Output of the list command
[
{
"customKeyIdentifier": null,
"displayName": "uhassagyasygasasgy",
"endDateTime": "2027-10-22T12:10:18Z",
"hint": "xxx",
"keyId": "xxxx-b2f4-45a4-a7c6-fe8b991543a4",
"secretText": null,
"startDateTime": "2025-10-22T12:10:18Z"
}
]Describe the solution you'd like
The Command should return data in same format than az ad app credential list to make scripting easier.
There is comment about return value format on _reset_credential. On potential solution could be making a new format optional by adding control flag for output generation
Describe alternatives you've considered
- Calling Graph API directly.
- Not outputting exact enddate and keyId as scripting return values
Additional context
azure-cli/src/azure-cli/azure/cli/command_modules/role/custom.py
Lines 1745 to 1751 in ecf19d1
| # Keep backward compatibility | |
| # TODO: Should we return the passwordCredential or keyCredential directly? | |
| result = { | |
| 'appId': graph_object['appId'], | |
| # 'keyId': key_id, | |
| 'password': password | |
| } |
jikuja and DigiBanks99
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamGraphaz adaz adcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-request