Remove-EntraServicePrincipal
Supprime un principal de service.
Syntaxe
Default (Par défaut)
Remove-EntraServicePrincipal
-ServicePrincipalId <String>
[<CommonParameters>]
Description
L’applet Remove-EntraServicePrincipal de commande supprime un principal de service dans Microsoft Entra ID.
Exemples
Exemple 1 : Supprime un principal de service
Connect-Entra -Scopes 'Application.ReadWrite.All','Application.ReadWrite.OwnedBy'
Get-EntraServicePrincipal -Filter "displayName eq 'Helpdesk Application'" | Remove-EntraServicePrincipal
Cet exemple montre comment supprimer un principal de service dans Microsoft Entra ID.
-
-ServicePrincipalIdspécifie l’ID du principal de service.
Paramètres
-ServicePrincipalId
Spécifie l’ID d’un principal de service 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.