Get-EntraApplicationKeyCredential

Hämtar autentiseringsuppgifterna för ett program.

Syntax

Default (Standard)

Get-EntraApplicationKeyCredential

    -ApplicationId <String>
    [<CommonParameters>]

Description

Cmdleten Get-EntraApplicationKeyCredential hämtar nyckelautentiseringsuppgifterna för ett program. Ange ApplicationId parametern för att hämta nyckelautentiseringsuppgifterna för ett program.

Exempel

Exempel 1: Hämta nyckelautentiseringsuppgifter

Connect-Entra -Scopes 'Application.Read.All'
$application = Get-EntraApplication -Filter "DisplayName eq 'Contoso Helpdesk Application'"
Get-EntraApplicationKeyCredential -ApplicationId $application.Id
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

Det här kommandot hämtar autentiseringsuppgifterna för det angivna programmet.

-ApplicationIdparameter anger ID för ett programobjekt i Microsoft Entra ID.

Parametrar

-ApplicationId

Anger ett unikt ID för ett program i Microsoft Entra ID för att hämta nyckelautentiseringsuppgifter. Använd Get-EntraApplication för mer information.

Parameteregenskaper

Typ:System.String
Standardvärde:None
Stöder jokertecken:False
DontShow:False
Alias:Objekt-ID

Parameteruppsättningar

(All)
Position:Named
Obligatorisk:True
Värde från pipeline:True
Värde från pipeline efter egenskapsnamn:True
Värde från återstående argument:False

CommonParameters

Den här cmdleten stöder vanliga parametrar: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction och -WarningVariable. Mer information finns i about_CommonParameters.