Set-AzApplicationGatewayWebApplicationFirewallConfiguration
Hiermee wijzigt u de WAF-configuratie van een toepassingsgateway.
Syntaxis
Set-AzApplicationGatewayWebApplicationFirewallConfiguration
-ApplicationGateway <PSApplicationGateway>
-Enabled <Boolean>
-FirewallMode <String>
[-RuleSetType <String>]
[-RuleSetVersion <String>]
[-DisabledRuleGroup <PSApplicationGatewayFirewallDisabledRuleGroup[]>]
[-RequestBodyCheck <Boolean>]
[-MaxRequestBodySizeInKb <Int32>]
[-FileUploadLimitInMb <Int32>]
[-Exclusion <PSApplicationGatewayFirewallExclusion[]>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
De Set-AzApplicationGatewayWebApplicationFirewallConfiguration cmdlet wijzigt de WAF-configuratie (Web Application Firewall) van een toepassingsgateway.
Voorbeelden
Voorbeeld 1: De configuratie van de webtoepassingsfirewall van de toepassingsgateway bijwerken
$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
Set-AzApplicationGatewayWebApplicationFirewallConfiguration -ApplicationGateway $AppGw -Enabled $True -FirewallMode "Detection" -RuleSetType "OWASP" -RuleSetVersion "3.0"
Met de eerste opdracht wordt de toepassingsgateway met de naam ApplicationGateway01 opgeslagen in de $AppGw variabele. Met de tweede opdracht wordt de firewallconfiguratie ingeschakeld voor de toepassingsgateway die is opgeslagen in $AppGw en stelt u de firewallmodus in op Detectie, RuleSetType op OWASP en RuleSetVersion op 3.0.
Parameters
-ApplicationGateway
Hiermee geeft u een toepassingsgatewayobject op. U kunt de cmdlet Get-AzApplicationGateway gebruiken om een toepassingsgatewayobject op te halen.
Type: | PSApplicationGateway |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
-Confirm
U wordt gevraagd om bevestiging voordat u de cmdlet uitvoert.
Type: | SwitchParameter |
Aliassen: | cf |
Position: | Named |
Default value: | False |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-DefaultProfile
De referenties, het account, de tenant en het abonnement die worden gebruikt voor communicatie met Azure.
Type: | IAzureContextContainer |
Aliassen: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-DisabledRuleGroup
De uitgeschakelde regelgroepen.
Type: | PSApplicationGatewayFirewallDisabledRuleGroup[] |
Aliassen: | DisabledRuleGroups |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Enabled
Hiermee wordt aangegeven of de webtoepassingsfirewall is ingeschakeld.
Type: | Boolean |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Exclusion
De uitsluitingslijsten.
Type: | PSApplicationGatewayFirewallExclusion[] |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-FileUploadLimitInMb
Maximale uploadlimiet voor bestanden in MB.
Type: | Int32 |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-FirewallMode
Hiermee geeft u de web application firewall-modus. De acceptabele waarden voor deze parameter zijn:
- Opsporing
- Preventie
Type: | String |
Geaccepteerde waarden: | Detection, Prevention |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-MaxRequestBodySizeInKb
Maximale grootte van aanvraagbody in KB.
Type: | Int32 |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-RequestBodyCheck
Of de aanvraagbody al dan niet is gecontroleerd.
Type: | Boolean |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-RuleSetType
Het type webtoepassingsfirewallregelset. De acceptabele waarden voor deze parameter zijn:
- OWASP
Type: | String |
Geaccepteerde waarden: | OWASP |
Position: | Named |
Default value: | OWASP |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-RuleSetVersion
De versie van het type regelset.
Type: | String |
Position: | Named |
Default value: | 3.0 |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-WhatIf
Toont wat er zou gebeuren als de cmdlet wordt uitgevoerd. De cmdlet wordt niet uitgevoerd.
Type: | SwitchParameter |
Aliassen: | wi |
Position: | Named |
Default value: | False |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
Invoerwaarden
Uitvoerwaarden
Verwante koppelingen
Azure PowerShell