Remove-EntraServicePrincipal

サービス プリンシパルを削除します。

構文

Default (既定)

Remove-EntraServicePrincipal

    -ServicePrincipalId <String>
    [<CommonParameters>]

説明

Remove-EntraServicePrincipal コマンドレットは、Microsoft Entra IDのサービス プリンシパルを削除します。

例 1: サービス プリンシパルを削除する

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

この例では、Microsoft Entra IDでサービス プリンシパルを削除する方法を示します。

  • -ServicePrincipalId パラメーターは、サービス プリンシパル ID を指定します。

パラメーター

-ServicePrincipalId

Microsoft Entra IDのサービス プリンシパルの ID を指定します。

パラメーターのプロパティ

型:System.String
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:オブジェクト識別子

パラメーター セット

(All)
配置:Named
必須:True
パイプラインからの値:True
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False

CommonParameters

このコマンドレットでは、一般的なパラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable の各パラメーターがサポートされています。 詳細については、about_CommonParametersを参照してください。