Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mshekharee opened this issue Jul 6, 2023 · 2 comments
Assignees
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

Comments

@mshekharee
Copy link

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

@mshekharee mshekharee added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jul 6, 2023
@ghost ghost added the question The issue doesn't require a change to the product in order to be resolved. Most issues start as that label Jul 6, 2023
@yonzhan
Copy link
Collaborator

yonzhan commented Jul 6, 2023

Thank you for opening this issue, we will look into it.

@ghost ghost added customer-reported Issues that are reported by GitHub users external to the Azure organization. Network labels Jul 6, 2023
@ghost ghost added this to the Backlog milestone Jul 6, 2023
@ghost ghost assigned necusjz Jul 6, 2023
@ghost ghost added Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team labels Jul 6, 2023
@mshekharee
Copy link
Author

Also do we have an option to update a rule? as we don't see an option to update application rule : https://learn.microsoft.com/en-us/cli/azure/network/firewall/application-rule?view=azure-cli-latest

@yonzhan yonzhan added feature-request This issue requires a new behavior in the product in order be resolved. and removed bug This issue requires a change to an existing behavior in the product in order to be resolved. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants