Create Network firewall rule with Azure Powershell

Bilal Afzaal 0 Reputation points
2023-02-16T19:03:51.44+00:00

Hi, I am trying to create Azure network firewall rule with PowerShell terminal. My all script is right according to Azure Documentation and get this error. I already update Az Module and other updates. kindly help me for these issues. Here I paste error of PowerShell Cli.

Command group 'network firewall policy rule-collection-group collection' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Operation returned an invalid status 'Bad Request' on azure powershell

Thanks and Regards.

Azure Firewall
Azure Firewall
An Azure network security service that is used to protect Azure Virtual Network resources.
580 questions
Azure Firewall Manager
Azure Firewall Manager
An Azure service that provides central network security policy and route management for globally distributed, software-defined perimeters.
85 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ChaitanyaNaykodi-MSFT 23,341 Reputation points Microsoft Employee
    2023-02-22T17:05:59.1466667+00:00

    @Bilal Afzaal

    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.

    User's image

    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.

    User's image

    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.

    0 comments No comments