Search code examples
powershellazureazure-active-directoryazureportalazure-ad-powershell-v2

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


I used powershell's AzureRm module to retrieve a list of keys for an Azure AD application using the command "Get-AzureRmADAppCredential" but the object returned only contains the StartDate, EndDate, KeyId and Type which I understand matches up with the application manifest. However, when you go to settings -> Keys from the Azure web portal there is also a "Description" field. I want to know if there is a way to get this description field as well.

Any help is greatly appreciated :)


Solution

  • The PowerShell commands is using the Azure AD Graph REST actually, however this field is not public in Azure AD Graph. Please check the metadata about PasswordCredential:

    enter image description here

    And this field also doesn't exposed from 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 if you have this requirements.