Skip to content

Commit 014e18b

Browse files
authored
Update Set-AzFirewall.md (#13727)
1 parent def340e commit 014e18b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ $firewall.Deallocate()
6969
$firewall | Set-AzFirewall
7070
7171
$vnet = Get-AzVirtualNetwork -ResourceGroupName rgName -Name anotherVNetName
72-
$pip = Get-AzPublicIpAddress - ResourceGroupName rgName -Name publicIpName
72+
$pip = Get-AzPublicIpAddress -ResourceGroupName rgName -Name publicIpName
7373
$firewall.Allocate($vnet, $pip)
7474
$firewall | Set-AzFirewall
7575
```
@@ -82,8 +82,8 @@ Set-AzFirewall must be called.
8282
### 5: Allocate with a management public IP address for forced tunneling scenarios
8383
```
8484
$vnet = Get-AzVirtualNetwork -ResourceGroupName rgName -Name anotherVNetName
85-
$pip = Get-AzPublicIpAddress - ResourceGroupName rgName -Name publicIpName
86-
$mgmtPip = Get-AzPublicIpAddress - ResourceGroupName rgName -Name MgmtPublicIpName
85+
$pip = Get-AzPublicIpAddress -ResourceGroupName rgName -Name publicIpName
86+
$mgmtPip = Get-AzPublicIpAddress -ResourceGroupName rgName -Name MgmtPublicIpName
8787
$firewall.Allocate($vnet, $pip, $mgmtPip)
8888
$firewall | Set-AzFirewall
8989
```
@@ -139,7 +139,7 @@ In this example, DNS Proxy and DNS Server configuration is attached to the Firew
139139
$azFw = Get-AzFirewall -Name "AzureFirewall" -ResourceGroupName "rg"
140140
$ruleCollection = $azFw.GetNetworkRuleCollectionByName("ruleCollectionName")
141141
$rule=$ruleCollection.GetRuleByName("ruleName")
142-
$rule.DestinationAddresses="10.10.10.10"
142+
$rule.DestinationAddresses = "10.10.10.10"
143143
Set-AzFirewall -AzureFirewall $azFw
144144
```
145145

0 commit comments

Comments
 (0)