有没有办法以编程方式获取 Azure AD 客户端密钥的描述?

Is there a way to programmatically get the description of Azure AD client keys?

我使用 powershell 的 AzureRm 模块使用命令 "Get-AzureRmADAppCredential" 检索 Azure AD 应用程序的密钥列表,但返回的对象仅包含 StartDate、EndDate、KeyId 和 Type,据我所知与申请清单。但是,当您从 Azure 门户网站转到设置 -> 密钥时,还有一个 "Description" 字段。我也想知道有没有办法得到这个描述字段。

非常感谢任何帮助:)

PowerShell 命令实际上使用的是 Azure AD Graph REST,但是该字段在 Azure AD Graph 中不是 public。请检查关于 PasswordCredential:

的元数据

如果您有此要求,此字段也不会从 Microsoft Graph-PasswordCredential. So I am afraid, you are not able to get the description field at present. You may submit the feedback about the Graph API from this site 公开。