Remove-EntraServicePrincipal

Remove um princípio de serviço.

Sintaxe

Default (Predefinição)

Remove-EntraServicePrincipal

    -ServicePrincipalId <String>
    [<CommonParameters>]

Descrição

O Remove-EntraServicePrincipal cmdlet remove um principal de serviço no Microsoft Entra ID.

Exemplos

Exemplo 1: Remove um principal de serviço

Connect-Entra -Scopes 'Application.ReadWrite.All','Application.ReadWrite.OwnedBy'
Get-EntraServicePrincipal -Filter "displayName eq 'Helpdesk Application'" | Remove-EntraServicePrincipal

Este exemplo demonstra como remover um principal de serviço no Microsoft Entra ID.

  • -ServicePrincipalId o parâmetro especifica o ID do principal de serviço.

Parâmetros

-ServicePrincipalId

Especifica o ID de um principal de serviço no Microsoft Entra ID.

Propriedades dos parâmetros

Tipo:System.String
Valor predefinido:None
Suporta carateres universais:False
NãoMostrar:False
Aliases:IdentificadorDoObjeto

Conjuntos de parâmetros

(All)
Posto:Named
Obrigatório:True
Valor do pipeline:True
Valor do pipeline por nome de propriedade:True
Valor dos restantes argumentos:False

CommonParameters

Este cmdlet suporta os parâmetros comuns: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction e -WarningVariable. Para obter mais informações, consulte about_CommonParameters.