Remove-EntraServicePrincipalPasswordCredential

Supprime les informations d’identification d’un mot de passe d’un principal de service.

Syntaxe

Default (Par défaut)

Remove-EntraServicePrincipalPasswordCredential

    -ServicePrincipalId <String>
    -KeyId <String>
    [<CommonParameters>]

Description

L’applet Remove-EntraServicePrincipalPasswordCredential de commande supprime des informations d’identification de mot de passe d’un principal de service dans Microsoft Entra ID.

Exemples

Exemple 1 : Supprimer des informations d’identification de mot de passe d’un principal de service dans Microsoft Entra ID

Connect-Entra -Scopes 'Application.ReadWrite.All','Application.ReadWrite.OwnedBy'
$servicePrincipal = Get-EntraServicePrincipal -Filter "displayName eq 'Helpdesk Application'"
$key = Get-EntraServicePrincipalPasswordCredential -ServicePrincipalId $servicePrincipal.Id
$key = $key | Where-Object {$_.DisplayName -eq 'Helpdesk secret'}
Remove-EntraServicePrincipalPasswordCredential -ServicePrincipalId $servicePrincipal.Id -KeyId $key.KeyId

Cet exemple montre comment supprimer des informations d’identification de mot de passe d’un principal de service dans Microsoft Entra ID.

  • -ServicePrincipalId spécifie le ServicePrincipalId d’informations d’identification de mot de passe du principal de service spécifiées.
  • -KeyId spécifie l’identificateur unique d’une information d’identification de mot de passe.

Paramètres

-KeyId

Spécifie l’identificateur unique des informations d’identification du mot de passe.

Propriétés du paramètre

Type:System.String
Valeur par défaut:None
Prend en charge les caractères génériques:False
DontShow:False

Jeux de paramètres

(All)
Position:Named
Obligatoire:True
Valeur du pipeline:True
Valeur du pipeline par nom de propriété:True
Valeur des arguments restants:False

-ServicePrincipalId

Spécifie l’ID d’une application dans Microsoft Entra ID.

Propriétés du paramètre

Type:System.String
Valeur par défaut:None
Prend en charge les caractères génériques:False
DontShow:False
Alias:Identifiant d'objet (ObjectId)

Jeux de paramètres

(All)
Position:Named
Obligatoire:True
Valeur du pipeline:True
Valeur du pipeline par nom de propriété:True
Valeur des arguments restants:False

CommonParameters

Cette applet de commande prend en charge les paramètres courants : -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction et -WarningVariable. Pour plus d’informations, consultez about_CommonParameters.