Get-EntraApplicationPasswordCredential

Gets the password credential for an application.

Syntax

Get-EntraApplicationPasswordCredential
    -ObjectId <String>
   [-Property <String[]>]
   [<CommonParameters>]

Description

The Get-EntraApplicationPasswordCredential cmdlet receives the password credentials for a Microsoft Entra ID application. Specify ObjectId parameter to cmdlet receives the password credentials.

Examples

Example 1: Get password credential for specified application

Connect-Entra -Scopes 'Application.Read.All'
$application = Get-EntraApplication -Filter "DisplayName eq 'Contoso Helpdesk Application'"
Get-EntraApplicationPasswordCredential -ObjectId $application.ObjectId

CustomKeyIdentifier  DisplayName EndDateTime         Hint KeyId                                SecretText StartDateTime
-------------------  ----------- -----------         ---- -----                                ---------- -------------
{100, 101, 109, 111} demo        26/07/2025 10:34:40 Ap6  bbbbbbbb-1111-2222-3333-cccccccccccc             26/07/2024 10:34:40

This example shows how to retrieve the password credential for specified application.

  • -ObjectId specifies the ID of an application object in Microsoft Entra ID.

Parameters

-ObjectId

The objectID of the application for which to get the password credential. Use Get-EntraApplication for more details.

Type:System.String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Property

Specifies properties to be returned.

Type:System.String[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False