共用方式為


Remove-AzBlueprintAssignment

從訂用帳戶或管理群組移除藍圖指派。

語法

Remove-AzBlueprintAssignment
      [-Name] <String>
      [[-SubscriptionId] <String>]
      [-PassThru]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-AzBlueprintAssignment
      [-Name] <String>
      [-ManagementGroupId] <String>
      [-PassThru]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-AzBlueprintAssignment
      -InputObject <PSBlueprintAssignment>
      [-PassThru]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

拿掉已指派給訂用帳戶的藍圖。

範例

範例 1

Remove-AzBlueprintAssignment -Name "myAssignment" -SubscriptionId "00000000-1111-0000-1111-000000000000" -Confirm

從指定的訂用帳戶中移除名稱所指定的藍圖指派。 Cmdlet 會在執行命令之前提示確認。

參數

-Confirm

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

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

-DefaultProfile

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

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-InputObject

藍圖指派物件。

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

-ManagementGroupId

儲存藍圖指派的管理群組標識符。

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

-Name

藍圖指派名稱。

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

-PassThru

設定時,Cmdlet 會傳回代表已移除藍圖指派的物件。 根據預設,此 Cmdlet 不會產生任何輸出。

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

-SubscriptionId

部署藍圖指派的訂用帳戶標識碼。

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

-WhatIf

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

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

輸入

String

PSBlueprintAssignment[]

輸出

Object