Get-EntraApplicationPasswordCredential
Gets the password credential for an application.
Syntax
Get-EntraApplicationPasswordCredential
-ApplicationId <String>
[-Property <String[]>]
[<CommonParameters>]
Description
The Get-EntraApplicationPasswordCredential
cmdlet receives the password credentials for a Microsoft Entra ID application. Specify ApplicationId
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 -ApplicationId $application.Id
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.
-ApplicationId
specifies the ID of an application object in Microsoft Entra ID.
Parameters
-ApplicationId
The ApplicationId of the application for which to get the password credential. Use Get-EntraApplication
for more details.
Type: | System.String |
Aliases: | ObjectId |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Property
Specifies properties to be returned.
Type: | System.String[] |
Aliases: | Select |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |