共用方式為


Remove-AzFirewallPolicyRuleCollectionGroupDraft

拿掉 Azure 防火牆原則規則集合群組草稿。

語法

Remove-AzFirewallPolicyRuleCollectionGroupDraft
      -AzureFirewallPolicyRuleCollectionGroupName <String>
      -ResourceGroupName <String>
      -AzureFirewallPolicyName <String>
      [-Force]
      [-PassThru]
      [-AsJob]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-AzFirewallPolicyRuleCollectionGroupDraft
      -AzureFirewallPolicyRuleCollectionGroupName <String>
      -FirewallPolicyObject <PSAzureFirewallPolicy>
      [-Force]
      [-PassThru]
      [-AsJob]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-AzFirewallPolicyRuleCollectionGroupDraft
      -InputObject <PSAzureFirewallPolicyRuleCollectionGroupDraftWrapper>
      [-Force]
      [-PassThru]
      [-AsJob]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-AzFirewallPolicyRuleCollectionGroupDraft
      -ResourceId <String>
      [-Force]
      [-PassThru]
      [-AsJob]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Remove-AzFirewallPolicyRuleCollectionGroupDraft Cmdlet 會從 Azure 防火牆原則中移除規則集合群組草稿。

範例

範例 1

Remove-AzFirewallPolicyRuleCollectionGroupDraft -AzureFirewallPolicyRuleCollectionGroupName testRcGroup -FirewallPolicyObject $fp

本範例會移除防火牆原則規則集合群組草稿,名為 “testRcGroup” 的防火牆原則物件$fp。

範例 2

Remove-AzFirewallPolicyRuleCollectionGroupDraft -AzureFirewallPolicyRuleCollectionGroupName testRcGroup -ResourceGroupName testRg -AzureFirewallPolicyName fpName

此範例會從名為 「testRg」 的資源群組中移除名為 「fpName」 的防火牆中名為 “testRcGroup” 的防火牆原則規則集合群組草稿。

參數

-AsJob

在背景中執行 Cmdlet。

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

-AzureFirewallPolicyName

防火牆原則的名稱。

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

-AzureFirewallPolicyRuleCollectionGroupName

與草稿相關聯的規則集合群組名稱。

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

-Confirm

在執行 Cmdlet 之前,提示您進行確認。

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

-DefaultProfile

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

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

-FirewallPolicyObject

防火牆原則。

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

-Force

請勿要求確認。

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

-InputObject

防火牆原則規則集合群組草稿物件。

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

-PassThru

會傳回 物件,代表您正在使用的專案。 根據預設,此 Cmdlet 不會產生任何輸出。

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

-ResourceGroupName

資源組名。

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

-ResourceId

Rule 集合群組的資源標識碼。

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

-WhatIf

顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。

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

輸入

String

PSAzureFirewallPolicy

PSAzureFirewallPolicyRuleCollectionGroupDraftWrapper

輸出

Boolean