Azure / Azure/azure-cli

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

Open
#27,734 2 comments 0 reactions 1 assignee Claimed by @jiasli View on GitHub
act-identity-squad Auto-Assign Azure CLI Team customer-reported Graph question
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### 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](https://github.com/Azure/azure-cli/assets/16614868/82c1ff15-afb8-41af-9f59-15731a915775)

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.