Get-EntraApplicationKeyCredential
Gets the key credentials for an application.
Syntax
Get-EntraApplicationKeyCredential
-ObjectId <String>
[<CommonParameters>]
Description
The Get-EntraApplicationKeyCredential
cmdlet retrieves the key credentials for an application. Specify ObjectId
parameter to retrieve the key credentials for an application.
Examples
Example 1: Get key credentials
Connect-Entra -Scopes 'Application.Read.All'
$application = Get-EntraApplication -Filter "DisplayName eq 'Contoso Helpdesk Application'"
Get-EntraApplicationKeyCredential -ObjectId $application.ObjectId
CustomKeyIdentifier DisplayName EndDateTime Key KeyId StartDateTime Type Usage
------------------- ----------- ----------- --- ----- ------------- ---- -----
{116, 101, 115, 116…} MyApp Cert 6/27/2024 11:49:17 AM bbbbbbbb-1c1c-2d2d-3e3e-444444444444 6/27/2023 11:29:17 AM AsymmetricX509Cert Verify
This command gets the key credentials for the specified application.
-ObjectId
parameter specifies the ID of an application object in Microsoft Entra ID.
Parameters
-ObjectId
Specifies a unique ID of an application in Microsoft Entra ID to retrieve key credentials. Use Get-EntraApplication
for more details.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |