Thank you for your response above and apologies for the delayed response here.
I was able to execute the command above, I had to edit the --rule-collection-group-name
parameter as rule collection group name does not support a space in the name.
The image below lists the required conditions for the name.
I was able to execute the command with Network_rule_collection
as the rule collection name. I executed the command in Bash as well as PowerShell and I did not encounter any issues.
I understand that the 'Bad Request' error you received is not very informative, I will file an issue with the AZ CLI team regarding this issue.
Hope this helps! Please let me know if you are still facing any issue running this command. Thank you!
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.