Skip to content

Operator "any" will not work in az network front-door waf-policy rule match-condition add #32043

@wilsonluniz-harmonicinc

Description

@wilsonluniz-harmonicinc

Describe the bug

az network front-door waf-policy rule match-condition add \
          --policy-name "somepolicy" \
          -g rg-vos360-ad-controller-dev-001 \
          -n "MatchAnyTestHeader" \
          --match-variable "RequestHeader.X-Test" \
          --operator Any

Error: argument --values: expected at least one argument

az network front-door waf-policy rule match-condition add \
          --policy-name "somepolicy" \
          -g rg-vos360-ad-controller-dev-001 \
          -n "MatchAnyTestHeader" \
          --match-variable "RequestHeader.X-Test" \
          --operator Any \
          --value ""

Error: Message: WebApplicationFirewallPolicy validation failed. More information "Match value(s) must not be provided for Operator 'Any'".

The two errors are contradict with each other. It's not going to work, at least apparently.

Environment Summary

azure-cli 2.77.0

core 2.77.0
telemetry 1.1.0

Extensions:
account 0.2.5
aks-preview 0.5.173
front-door 1.3.0
resource-graph 2.1.0

Dependencies:
msal 1.34.0b1
azure-mgmt-resource 23.3.0

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botService AttentionThis issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions