Skip to content

Commit cc3a56c

Browse files
committed
fixes
1 parent ef723a4 commit cc3a56c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: asudbring
66
ms.author: allensu
77
ms.service: azure-nat-gateway
88
ms.topic: tutorial
9-
ms.date: 03/05/2025
9+
ms.date: 05/21/2025
1010
ms.custom: template-tutorial
1111
---
1212

@@ -409,7 +409,12 @@ $natGateway = New-AzNatGateway @natGatewayParams
409409
Use [Set-AzVirtualNetworkSubnetConfig](/powershell/module/az.network/set-azvirtualnetworksubnetconfig) to associate NAT gateway with AzureFirewallSubnet.
410410

411411
```azurepowershell
412-
$subnet = Get-AzVirtualNetworkSubnetConfig -VirtualNetwork $hubVnet -Name AzureFirewallSubnet
412+
# Get the AzureFirewallSubnet from the hub virtual network
413+
$subnetParams = @{
414+
VirtualNetwork = $hubVnet
415+
Name = 'AzureFirewallSubnet'
416+
}
417+
$subnet = Get-AzVirtualNetworkSubnetConfig @subnetParams
413418
414419
$subnet.NatGateway = $natGateway
415420

0 commit comments

Comments
 (0)