Get-EntraApplicationPasswordCredential
Gets the password credential for an application.
Syntax
Default (Default)
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.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | ObjectId |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-Property
Specifies properties to be returned.
Parameter properties
Type: | System.String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | Select |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.