Azure / Azure/azure-cli

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

Open
#32,043 2 comments 0 reactions 1 assignee Claimed by @necusjz View on GitHub
Auto-Assign customer-reported question Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.