Skip to content

Commit 6fd43e2

Browse files
committed
Merge branch 'preview' of https://github.com/Azure/azure-powershell into preview
2 parents d7886cb + f339cbc commit 6fd43e2

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/ResourceManager/Network/Commands.Network/help/Set-AzureRmVirtualNetwork.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,18 @@ The **Set-AzureRmVirtualNetwork** cmdlet sets the goal state for an Azure virtua
2626
### 1: Creates a virtual network and removes one of its subnets
2727
```
2828
New-AzureRmResourceGroup -Name TestResourceGroup -Location centralus
29-
$frontendSubnet = New-AzureRmVirtualNetworkSubnetConfig -Name frontendSubnet -AddressPrefix "10.0.1.0/24"
30-
31-
$backendSubnet = New-AzureRmVirtualNetworkSubnetConfig -Name backendSubnet -AddressPrefix "10.0.2.0/24"
29+
$frontendSubnet = New-AzureRmVirtualNetworkSubnetConfig -Name frontendSubnet -AddressPrefix "10.0.1.0/24" ## Create resource group
30+
$backendSubnet = New-AzureRmVirtualNetworkSubnetConfig -Name backendSubnet -AddressPrefix "10.0.2.0/24" ## Create backend subnet
3231
3332
$virtualNetwork = New-AzureRmVirtualNetwork -Name MyVirtualNetwork -ResourceGroupName
34-
TestResourceGroup -Location centralus -AddressPrefix "10.0.0.0/16" -Subnet $frontendSubnet,$backendSubnet
33+
TestResourceGroup -Location centralus -AddressPrefix "10.0.0.0/16" -Subnet $frontendSubnet,$backendSubnet ## Create virtual network
3534
36-
Remove-AzureRmVirtualNetworkSubnetConfig -Name backendSubnet -VirtualNetwork $virtualNetwork
35+
Remove-AzureRmVirtualNetworkSubnetConfig -Name backendSubnet -VirtualNetwork $virtualNetwork ## Remove subnet from in memory representation of virtual network
3736
38-
$virtualNetwork | Set-AzureRmVirtualNetwork
37+
$virtualNetwork | Set-AzureRmVirtualNetwork ## Remove subnet from virtual network
3938
```
4039

41-
This example creates a virtual network with two subnets. Then it removes one subnet from
42-
the in-memory representation of the virtual network. The Set-AzureRmVirtualNetwork cmdlet
43-
is then used to write the modified virtual network state on the service side.
40+
This example creates a virtual network called TestResourceGroup with two subnets: frontendSubnet and backendSubnet. Then it removes backendSubnet subnet from the in-memory representation of the virtual network. The Set-AzureRmVirtualNetwork cmdlet is then used to write the modified virtual network state on the service side. When the Set-AzureRmVirtualNetwork cmdlet is executed, the backendSubnet is removed.
4441

4542
## PARAMETERS
4643

0 commit comments

Comments
 (0)