Skip to content

Commit 22460ed

Browse files
authored
Merge pull request #5167 from Azure/maddieclayton-patch-2
Update example for VirtualNetworkGateway so it can be run
2 parents a1736fb + b0a5435 commit 22460ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ResourceManager/Network/Commands.Network/help/New-AzureRmVirtualNetworkGateway.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ You can also choose to include other features like BGP and Active-Active.
7272
### 1: Create a Virtual Network Gateway
7373
```
7474
New-AzureRmResourceGroup -Location "UK West" -Name "vnet-gateway"
75-
New-AzureRMVirtualNetworkSubnetConfig -Name 'gatewaysubnet' -AddressPrefix '10.254.0.0/27'
75+
$subnet = New-AzureRMVirtualNetworkSubnetConfig -Name 'gatewaysubnet' -AddressPrefix '10.254.0.0/27'
7676
7777
$ngwpip = New-AzureRMPublicIpAddress -Name ngwpip -ResourceGroupName "vnet-gateway" -Location "UK West" -AllocationMethod Dynamic
7878
$vnet = New-AzureRmVirtualNetwork -AddressPrefix "10.254.0.0/27" -Location "UK West" -Name vnet-gateway -ResourceGroupName "vnet-gateway" -Subnet $subnet

0 commit comments

Comments
 (0)