Azure / Azure/azure-cli-extensions

usage error: --collection-name EXISTING_NAME | --collection-name NEW_NAME --priority INT --action ACTION

Open
#6,483 2 comments 0 reactions 1 assignee Claimed by @necusjz View on GitHub
Auto-Assign Azure CLI Team customer-reported feature-request Network
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

### Describe the bug

Getting the usage error for az cli for azure firewall network-rule create

below is the code:

az network firewall application-rule create \
--collection-name App-Coll01 \
--firewall-name azure-firewall-we \
--name Allow-Google \
--protocols Http=80 \
--resource-group rg01 \
--target-fqdns www.google.com \
--source-addresses 10.X.X.64/32 \
--priority 0 \
--action Allow

Getting the below error:

Rule collection 'App-Coll01' does not exist and needs to be created.
usage error: --collection-name EXISTING_NAME | --collection-name NEW_NAME --priority INT --action ACTION

### Related command

az network firewall network-rule create

### Errors

Rule collection 'App-Coll01' does not exist and needs to be created.
usage error: --collection-name EXISTING_NAME | --collection-name NEW_NAME --priority INT --action ACTION

### Issue script & Debug output

az network firewall application-rule create \
--collection-name App-Coll01 \
--firewall-name azure-firewall-we \
--name Allow-Google \
--protocols Http=80 \
--resource-group rg01 \
--target-fqdns www.google.com \
--source-addresses 10.X.X.64/32 \
--priority 0 \
--action Allow

Getting the below error:

Rule collection 'App-Coll01' does not exist and needs to be created.
usage error: --collection-name EXISTING_NAME | --collection-name NEW_NAME --priority INT --action ACTION

### Expected behavior

az network firewall application-rule create \
--collection-name App-Coll01 \
--firewall-name azure-firewall-we \
--name Allow-Google \
--protocols Http=80 \
--resource-group rg01 \
--target-fqdns www.google.com \
--source-addresses 10.X.X.64/32 \
--priority 0 \
--action Allow

Getting the below error:

Rule collection 'App-Coll01' does not exist and needs to be created.
usage error: --collection-name EXISTING_NAME | --collection-name NEW_NAME --priority INT --action ACTION

### Environment Summary

{
"azure-cli": "2.50.0",
"azure-cli-core": "2.50.0",
"azure-cli-telemetry": "1.0.8",
"extensions": {
"azure-firewall": "0.14.8"
}
}

### Additional context

_No response_

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.