Skip to content

Commit 589a708

Browse files
committed
fixes
1 parent 5a15bea commit 589a708

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

articles/nat-gateway/tutorial-hub-spoke-nat-firewall.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,14 @@ $hubVnet = New-AzVirtualNetwork @vnetParams
149149
Use [Add-AzVirtualNetworkSubnetConfig](/powershell/module/az.network/add-azvirtualnetworksubnetconfig) to create a subnet for Azure Firewall and Azure Bastion.
150150

151151
```azurepowershell
152+
# Create default subnet
153+
$subnetParams = @{
154+
Name = 'default'
155+
AddressPrefix = '10.0.0.0/24'
156+
VirtualNetwork = $hubVnet
157+
}
158+
Add-AzVirtualNetworkSubnetConfig @subnetParams
159+
152160
# Create subnet for Azure Firewall
153161
$subnetParams = @{
154162
Name = 'AzureFirewallSubnet'
@@ -582,7 +590,7 @@ A virtual network peering is used to connect the hub to the spoke and the spoke
582590
| **Local virtual network summary** | |
583591
| Peering link name | Enter **vnet-hub-to-vnet-spoke**. |
584592
| **Local virtual network peering settings** | |
585-
| Allow 'vnet-hub' to access 'vnet-spoke-2' | Leave the default of **Selected**. |
593+
| Allow 'vnet-hub' to access 'vnet-spoke' | Leave the default of **Selected**. |
586594
| Allow 'vnet-hub' to receive forwarded traffic from 'vnet-spoke' | Select the checkbox. |
587595
| Allow gateway or route server in 'vnet-hub' to forward traffic to 'vnet-spoke' | Leave the default of **Unselected**. |
588596
| Enable 'vnet-hub' to use 'vnet-spoke's' remote gateway or route server | Leave the default of **Unselected**. |
@@ -917,8 +925,8 @@ Use [New-AzFirewallPolicyFilterRuleCollection](/powershell/module/az.network/new
917925

918926
```azurepowershell
919927
$newRuleCollectionConfigParams = @{
920-
Name = 'rule-collection'
921-
Priority = 1000
928+
Name = 'spoke-to-internet'
929+
Priority = 100
922930
Rule = $networkrule
923931
ActionType = 'Allow'
924932
}

0 commit comments

Comments
 (0)