Skip to content

Commit 69b82ce

Browse files
authored
Update Get-AzFirewall.md (Azure#11873)
Case correction- Otherwise you get the error "The argument "Udp" does not belong to the set "Any,TCP,UDP,ICMP" specified by the ValidateSet attribute"
1 parent 44d6cef commit 69b82ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Network/Network/help/Get-AzFirewall.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ This example retrieves a firewall, then adds a application rule collection to th
217217
### 5: Retrieve a firewall and then add a network rule collection to the Firewall
218218
```
219219
$azFw=Get-AzFirewall -Name "azFw" -ResourceGroupName "rgName"
220-
$netRule = New-AzFirewallNetworkRule -Name "all-udp-traffic" -Description "Rule for all UDP traffic" -Protocol "Udp" -SourceAddress "*" -DestinationAddress "*" -DestinationPort "*"
220+
$netRule = New-AzFirewallNetworkRule -Name "all-udp-traffic" -Description "Rule for all UDP traffic" -Protocol "UDP" -SourceAddress "*" -DestinationAddress "*" -DestinationPort "*"
221221
$netRuleCollection = New-AzFirewallNetworkRuleCollection -Name "MyNetworkRuleCollection" -Priority 100 -Rule $netRule -ActionType "Allow"
222222
$azFw.AddNetworkRuleCollection($netRuleCollection)
223223
```

0 commit comments

Comments
 (0)