Skip to content

Commit f49fe0c

Browse files
authored
[Network] az network application-gateway waf-policy managed-rule rule-set: Support rule set type Microsoft_DefaultRuleSet (#31289)
* feat: support Microsoft_DefaultRuleSet * test: add test and recording
1 parent b46a6d1 commit f49fe0c

File tree

3 files changed

+354
-208
lines changed

3 files changed

+354
-208
lines changed

src/azure-cli/azure/cli/command_modules/network/_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def load_arguments(self, _):
226226
with self.argument_context('network application-gateway waf-policy') as c:
227227
c.argument('policy_name', name_arg_type, id_part='name', help='The name of the application gateway WAF policy.')
228228
c.argument('rule_set_type', options_list='--type',
229-
arg_type=get_enum_type(['Microsoft_BotManagerRuleSet', 'OWASP']),
229+
arg_type=get_enum_type(['Microsoft_BotManagerRuleSet', 'Microsoft_DefaultRuleSet', 'OWASP']),
230230
help='The type of the web application firewall rule set.')
231231
c.argument('rule_set_version',
232232
options_list='--version',

0 commit comments

Comments
 (0)