Azure / Azure/azure-powershell
Lack of clarity on the example 01
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 51
Description
### Type of issue
Code doesn't work
### Feedback
We can see in the example command that just copy and pasting the command will not work, can we provide more details on how to build the $fp variable, and also throw in a quick way to print the rules from the collection. This is my proposal:
$fp = Get-AzFirewallPolicy -Name "FirewallPolicy" -ResourceGroupName "RGname"
$fprc = Get-AzFirewallPolicyRuleCollectionGroup -Name "DefaultNetworkRuleCollectionGroup" -AzureFirewallPolicy $fp
$fprc.Properties.RuleCollection.rules
Lets make the life for the customers easier. :)
### Page URL
https://learn.microsoft.com/en-us/powershell/module/az.network/get-azfirewallpolicyrulecollectiongroup?view=azps-11.5.0
### Content source URL
https://github.com/Azure/azure-powershell/blob/main/src/Network/Network/help/Get-AzFirewallPolicyRuleCollectionGroup.md
### Author
@mikefrobbins
### Document Id
64d6bdf4-fd94-a877-c0e8-8cde8b15b55f
Contributor guide
Assessment
This issue has not been assessed yet.