Skip to content

az ad app list --all returns some secret names as null #27734

Description

@skingd

Describe the bug

Running az ad app list --all will return all of the secrets, but older secrets null for names. Everything else is correct. This is causing some issues when trying to automatically notify app owners of expiring secrets. Confirmed with my coworker that she had the same exact results when running command.

Related command

az ad app --list all | ConvertFrom-Json

Errors

No error message, older secret names just don't populate and are $null instead.
appregsecret

Issue script & Debug output

This would take way too long to remove all secrets data from all returned ad apps in the log

Expected behavior

All secret names should appear under passwordCredential.displayName.

Environment Summary

azure-cli 2.53.1

core 2.53.1
telemetry 1.1.0

Extensions:
account 0.2.5
resource-graph 2.1.0

Dependencies:
msal 1.24.0b2
azure-mgmt-resource 23.1.0b2

Additional context

No response

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamGraph(doesn't work with label-triggered comments; use Graph.Microsoft instead) az adact-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions