Conversation
️✔️AzureCLI-FullTest
|
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| network application-gateway waf-policy create | cmd network application-gateway waf-policy create update parameter rule_set_version: removed property choices=['0.1', '1.0', '1.1', '2.1', '2.2.9', '3.0', '3.1', '3.2'] |
||
| network application-gateway waf-policy managed-rule exclusion rule-set add | cmd network application-gateway waf-policy managed-rule exclusion rule-set add update parameter rule_set_version: removed property choices=['0.1', '1.0', '1.1', '2.1', '2.2.9', '3.0', '3.1', '3.2'] |
||
| network application-gateway waf-policy managed-rule exclusion rule-set remove | cmd network application-gateway waf-policy managed-rule exclusion rule-set remove update parameter rule_set_version: removed property choices=['0.1', '1.0', '1.1', '2.1', '2.2.9', '3.0', '3.1', '3.2'] |
||
| network application-gateway waf-policy managed-rule rule-set add | cmd network application-gateway waf-policy managed-rule rule-set add update parameter rule_set_version: removed property choices=['0.1', '1.0', '1.1', '2.1', '2.2.9', '3.0', '3.1', '3.2'] |
||
| network application-gateway waf-policy managed-rule rule-set remove | cmd network application-gateway waf-policy managed-rule rule-set remove update parameter rule_set_version: removed property choices=['0.1', '1.0', '1.1', '2.1', '2.2.9', '3.0', '3.1', '3.2'] |
||
| network application-gateway waf-policy managed-rule rule-set update | cmd network application-gateway waf-policy managed-rule rule-set update update parameter rule_set_version: removed property choices=['0.1', '1.0', '1.1', '2.1', '2.2.9', '3.0', '3.1', '3.2'] |
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
There was a problem hiding this comment.
Pull Request Overview
This PR removes local validation of rule set versions for the WAF (Web Application Firewall) policy commands to support Azure's increasing release cadence. The change allows the CLI to accept any version string instead of being restricted to a predefined list of versions.
- Removes the
RULESET_VERSIONconstant that defined allowed versions - Updates WAF policy commands to accept any version string without local validation
- Maintains backward compatibility by keeping the default version as "2.1"
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/azure-cli/azure/cli/command_modules/network/custom.py | Removes RULESET_VERSION constant and enum validation from rule set version parameter |
| src/azure-cli/azure/cli/command_modules/network/_params.py | Removes import and usage of RULESET_VERSION enum in parameter definition |
Comments suppressed due to low confidence (1)
|
let's add a test case for 2.2. |
Related command
az network application-gateway waf-policy managed-rule rule-set add/updateaz network application-gateway waf-policy createDescription
resolve #31932
Remove local validation of rule set version, for increasing release cadence.
Testing Guide
History Notes
[Component Name 1] BREAKING CHANGE:
az command a: Make some customer-facing breaking change[Component Name 2]
az command b: Add some customer-facing featureThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.