共用方式為


Remove-AzureADServiceAppRoleAssignment

拿掉服務主體應用程式角色指派。

語法

Remove-AzureADServiceAppRoleAssignment
      -ObjectId <String>
      -AppRoleAssignmentId <String>
      [-InformationAction <ActionPreference>]
      [-InformationVariable <String>]
      [<CommonParameters>]

Description

Remove-AzureADServiceAppRoleAssignment Cmdlet 會移除 Azure Active Directory (AD) 中的服務主體應用程式角色指派。

範例

範例 1

PS C:\> {{ Add example code here }}

{{ 在此新增範例描述 }}

參數

-AppRoleAssignmentId

指定應用程式角色指派的識別碼。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-InformationAction

指定此 Cmdlet 如何回應資訊事件。 此參數可接受的值為:

  • 繼續
  • 忽略
  • 詢問
  • SilentlyContinue
  • Stop
  • 暫止
類型:ActionPreference
別名:infa
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-InformationVariable

指定資訊變數。

類型:String
別名:iv
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ObjectId

指定 Azure AD 中服務主體的標識碼。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

備註

請參閱 Remove-AzureADServiceAppRoleAssignment 至 Microsoft Graph PowerShell 的移轉指南。