usage error: --collection-name EXISTING_NAME | --collection-name NEW_NAME --priority INT --action ACTION #6483
Labels
Auto-Assign
Auto assign by bot
Azure CLI Team
The command of the issue is owned by Azure CLI team
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
feature-request
This issue requires a new behavior in the product in order be resolved.
Network
Milestone
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
The text was updated successfully, but these errors were encountered: