Nakah
Nakah

Reputation: 33

Is Get-AzureADApplicationPasswordCredential cmdlet working?

I'm trying to get already created Password Credentials for Azure AD app using the Get-AzureADApplicationPasswordCredential cmdlet. The cmdlet is executing successfully, however the value field is empty :( According to the docs (https://learn.microsoft.com/en-us/powershell/module/azuread/get-azureadapplicationpasswordcredential?view=azureadps-2.0) it should return the key.

Did somebody managed to get this cmdlet working ?

Upvotes: 1

Views: 3412

Answers (1)

Joy Wang
Joy Wang

Reputation: 42123

I can reproduce your issue, the Value should be empty, it is normal. The Get-AzureADApplicationPasswordCredential command essentially calls the azure ad graph api GET https://graph.windows.net/{tenant_id}/applications/{application_oid}?api-version. If you test with this api, you will get the same result.

There should be a mistake in the official doc, in the example, it uses the New, not Get.If you try New, it appears like the doc.

enter image description here

Upvotes: 1

Related Questions