ACountyMike
ACountyMike
Adding a snippet of my script `$941120 = New-AzApplicationGatewayFirewallDisabledRuleGroupConfig -RuleGroupName "REQUEST-941-APPLICATION-ATTACK-XSS" -Rules 941120 $AppGw = Add-AzApplicationGatewayUrlPathMapConfig -ApplicationGateway $AppGw -Name $routingRule -DefaultBackendAddressPool $pool -PathRules $SecTest_test_dev -DefaultBackendHttpSettings $SecTest_HTTP_Settings $AppGw.FirewallPolicy = $firewallPolicy Set-AzApplicationGatewayWebApplicationFirewallConfiguration...
@navba-MSFT Parts of this appear to work, but I have trouble validating the configuration. If I set the firewall up the way we are both doing it and use PowerShell...
I'm not sure, I haven't seen the PowerShell I've applied reflected properly in the UI yet. It might be that I'm applying something incorrectly. I will test more and keep...
It looks like I was leaving out the last step of `Set-AzApplicationGateway -ApplicationGateway $AppGw`, but adding it to my script to configure the WAF throws an error that says "WebApplicationFirewallConfiguration...
Thanks, I will test that out.
Unfortunately, `$AppGw.webApplicationFirewallConfiguration = $null` completely cancels out my command of `Set-AzApplicationGatewayWebApplicationFirewallConfiguration -ApplicationGateway $AppGw -Enabled $true -FirewallMode Prevention -RuleSetVersion 3.1 -RuleSetType OWASP -DisabledRuleGroups $941120,$942110`. So, this can't be a fix.
I tried this workaround, I set the firewall configuration to null and ran the command to set the app gateway. If I run the command to get the gateway again,...