[front-door] Add WAF rule create examples#9860
Conversation
Update the WAF custom rule create help to document the inline match condition arguments and replace the obsolete --defer guidance with direct create examples. Fixes Azure/azure-cli#32736 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
️✔️Azure CLI Extensions Breaking Change Test
|
|
Hi @Ptnan7, |
|
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
Updates the Front Door extension command help for az network front-door waf-policy rule create to remove obsolete --defer guidance and provide clearer creation guidance for custom WAF rules.
Changes:
- Removes outdated
--deferwording from thewaf-policy rule createhelp text. - Adds a long summary explaining the need for at least one match condition and how to provide it during creation.
- Adds two new create examples covering both
MatchRuleandRateLimitRulewith an initial match condition.
| A custom rule must contain at least one match condition. Provide the initial match condition with | ||
| --match-variable, --operator, and --values when creating the rule, or add match conditions later with | ||
| az network front-door waf-policy rule match-condition add. |
|
Hi @Ptnan7 Release SuggestionsModule: front-door
Notes
|
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
Summary
--deferguidance foraz network front-door waf-policy rule create--match-variable,--operator, and--valuesMatchRuleandRateLimitRuleRelated issue
Validation
python -m py_compile src\front-door\azext_front_door\_help.pyFixes Azure/azure-cli#32736