共用方式為


Remove-AzureRmADApplication

刪除 Microsoft Entra 應用程式。

警告

自 2024 年 2 月 29 日起,AzureRM PowerShell 模組已正式淘汰。 建議使用者從 AzureRM 遷移至 Az PowerShell 模組,以確保持續支援和更新。

雖然 AzureRM 模組可能仍可運作,但不再維護或支援它,但會根據用戶的判斷權和風險放置任何繼續使用。 如需轉換至 Az 模組的指引,請參閱我們的 移轉資源

Syntax

Remove-AzureRmADApplication
      -ObjectId <Guid>
      [-PassThru]
      [-Force]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-AzureRmADApplication
      -ApplicationId <Guid>
      [-PassThru]
      [-Force]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-AzureRmADApplication
      -DisplayName <String>
      [-PassThru]
      [-Force]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-AzureRmADApplication
      -InputObject <PSADApplication>
      [-PassThru]
      [-Force]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

刪除 Microsoft Entra 應用程式。

範例

範例 1 - 依物件識別碼移除應用程式

PS C:\> Remove-AzureRmADApplication -ObjectId b4cd1619-80b3-4cfb-9f8f-9f2333425738

從租使用者中移除物件標識碼為 'b4cd1619-80b3-4cfb-9f8f-9f2333425738' 的應用程式。

範例 2 - 依應用程式識別碼移除應用程式

PS C:\> Remove-AzureRmADApplication -ApplicationId f9c5ea4f-28f0-401a-a491-491a037fa346

從租使用者中移除應用程式標識碼為 『f9c5ea4f-28f0-401a-a491-491a037fa346』 的應用程式。

範例 3 - 透過管線移除應用程式

PS C:\> Get-AzureRmADApplication -ObjectId b4cd1619-80b3-4cfb-9f8f-9f2333425738 | Remove-AzureRmADApplication

取得對象標識碼為 'b4cd1619-80b3-4cfb-9f8f-9f2333425738' 的應用程式,並將該物件傳送至 Remove-AzureRmADApplication Cmdlet 以從租用戶中移除應用程式。

參數

-ApplicationId

要移除之應用程式的應用程式識別碼。

類型:Guid
Position:Named
預設值:None
必要:True
Accept pipeline input:True
Accept wildcard characters:False

-Confirm

執行 Cmdlet 之前先提示您確認。

類型:SwitchParameter
Aliases:cf
Position:Named
預設值:None
必要:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶

類型:IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
Accept pipeline input:False
Accept wildcard characters:False

-DisplayName

應用程式的顯示名稱。

類型:String
Position:Named
預設值:None
必要:True
Accept pipeline input:True
Accept wildcard characters:False

-Force

切換至在不確認的情況下刪除應用程式。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

物件,表示要移除的應用程式。

類型:PSADApplication
Position:Named
預設值:None
必要:True
Accept pipeline input:True
Accept wildcard characters:False

-ObjectId

要刪除之應用程式的物件識別碼。

類型:Guid
Position:Named
預設值:None
必要:True
Accept pipeline input:True
Accept wildcard characters:False

-PassThru

如果命令成功,則指定這會傳回 true。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

顯示執行 Cmdlet 後會發生的情況。 未執行 Cmdlet。

類型:SwitchParameter
Aliases:wi
Position:Named
預設值:None
必要:False
Accept pipeline input:False
Accept wildcard characters:False

輸入

Guid

String

PSADApplication

參數:InputObject (ByValue)

輸出

Boolean

備註

關鍵詞:azure, azurerm, arm, 資源, 管理, 管理員, 資源, 群組, 範本, 部署