共用方式為


New-AzApplicationGatewayFirewallPolicyLogScrubbingConfiguration

建立防火牆原則的記錄清理組態

語法

Default (預設值)

New-AzApplicationGatewayFirewallPolicyLogScrubbingConfiguration
    -State <String>
    -ScrubbingRule <PSApplicationGatewayFirewallPolicyLogScrubbingRule[]>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

New-AzApplicationGatewayFirewallPolicyLogScrubbingConfiguration 會建立防火牆原則的記錄清理設定。

範例

範例 1

$logScrubbingRuleConfig = New-AzApplicationGatewayFirewallPolicyLogScrubbingConfiguration -State Enabled -ScrubbingRule $logScrubbingRule1

此命令會建立記錄清理規則組態,其中狀態為啟用,ScrubbingRule為$logScrubbingRule 1。 新的日誌清理規則組態會儲存至 $logScrubbingRuleConfig。

參數

-DefaultProfile

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

參數屬性

類型:IAzureContextContainer
預設值:None
支援萬用字元:False
不要顯示:False
別名:AzContext, AzureRmContext, AzureCredential

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-ScrubbingRule

套用至記錄以進行清除的規則。

參數屬性

類型:

PSApplicationGatewayFirewallPolicyLogScrubbingRule[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-State

記錄清除設定的狀態。預設值為 Enabled。

參數屬性

類型:String
預設值:Enabled
接受的值:Enabled, Disabled
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

CommonParameters

此 Cmdlet 支援常見參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters

輸入

None

輸出

PSApplicationGatewayFirewallPolicySettings