-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
az feedbackauto-generates most of the information requested below, as of CLI version 2.0.62
Related command
az network front-door waf-policy managed-rules add --policy-name MyWaf" --resource-group "MyRg" --type Microsoft_DefaultRuleSet --version 2.0
Describe the bug
When the above command is run, it should add the "Microsoft_DefaultRuleSet" version 2.0 rule set to the WAF. However, it actually errors with:
(BadRequest) WebApplicationFirewallPolicy validation failed. More information "Managed rule set types or versions are not compatible.".
Indeed, the only combination of types and versions that work is:
--type DefaultRuleSet --version 1.0
To Reproduce
az network front-door waf-policy managed-rules add --policy-name MyWaf" --resource-group "MyRg" --type Microsoft_DefaultRuleSet --version 2.0
Expected behavior
The CLI should allow addition of all the rules sets specified in the GUI including:
Microsoft_DefaultRuleSet version 1.1 AND
Microsoft_DefaultRuleSet version 2.0
Environment summary
Azure Cloud Shell (PowerShell)
Additional context