azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

passing list to --rules isn't working

Open saicharan8 opened this issue 3 years ago • 4 comments

$ruleIds = [System.Collections.ArrayList]@('921130','921140') az network application-gateway waf-policy managed-rule rule-set add --policy-name $Name -g $ResourceGroupName --type $disabledRule.ruleSetType --version $disabledRule.ruleSetVersion --group-name $ruleGroup.ruleGroupName --rules $ruleIds

Error Message: The override Rule '921130 921140' is unknown for RuleGroup 'REQUEST-921-PROTOCOL-ATTACK' for Application Gateway Firewall in context ''.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

saicharan8 avatar Sep 21 '22 06:09 saicharan8

Code: ApplicationGatewayFirewallUnknownRuleOverride Message: The override Rule '921110 921130' is unknown for RuleGroup 'REQUEST-921-PROTOCOL-ATTACK' for Application Gateway Firewall in context ''.

saicharan8 avatar Sep 21 '22 06:09 saicharan8

Does --rules 921130 921140 work? If yes, please temporarily take it as a workaround.

necusjz avatar Sep 21 '22 06:09 necusjz

Thank you for your feedback. This has been routed to the support team for assistance.

ghost avatar Sep 21 '22 06:09 ghost

Does --rules 921130 921140 work? If yes, please temporarily take it as a workaround.

yes this is working

saicharan8 avatar Sep 21 '22 07:09 saicharan8

@saicharan8 Thanks for getting back. We will now proceed with closure of this GitHub issue. If you need any further assistance on this issue in future, please feel free to reopen this thread. We would be happy to help.

navba-MSFT avatar Oct 19 '22 03:10 navba-MSFT