Skip to content

Commit 476a077

Browse files
committed
fixes
1 parent 87091da commit 476a077

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/nat-gateway/manage-nat-gateway.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,8 @@ $subnetName = "subnet-1"
434434
435435
# Get the virtual network
436436
$vnet = @{
437-
Name = $virtualNetworkName
438-
ResourceGroupName = $resourceGroupName
437+
Name = $virtualNetworkName
438+
ResourceGroupName = $resourceGroupName
439439
}
440440
$virtualNetwork = Get-AzVirtualNetwork @vnet
441441
@@ -447,9 +447,9 @@ $subnet.NatGateway = $null
447447
448448
# Update the subnet configuration
449449
$subConfig = @{
450-
Name = $subnetName
451-
VirtualNetwork = $virtualNetwork
452-
AddressPrefix = $subnet.AddressPrefix
450+
Name = $subnetName
451+
VirtualNetwork = $virtualNetwork
452+
AddressPrefix = $subnet.AddressPrefix
453453
}
454454
Set-AzVirtualNetworkSubnetConfig @subConfig
455455

0 commit comments

Comments
 (0)