Get-AzFirewallPolicy does not work without parameters #27437
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Network - Firewall
Service Attention
This issue is responsible by Azure service team.
Description
When running
Get-AzFirewallPolicy
I am prompted for name and resource group. Seems like this is an issue with the parameter sets for the functions.The expected behavior when running this without any parameters is that it will list by either subscription (with no params given) or by resource group (if only resourcegroup is given).
Relevant file: https://github.com/Azure/azure-powershell/blob/main/src/Network/Network/AzureFirewallPolicy/GetAzureFirewallPolicyCommand.cs
This section of the cmdlet seems to never be evaluated due to the parameter set:
azure-powershell/src/Network/Network/AzureFirewallPolicy/GetAzureFirewallPolicyCommand.cs
Lines 78 to 94 in 28cbcb2
Issue script & Debug output
Environment data
Module versions
Error output
N/A
The text was updated successfully, but these errors were encountered: