File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -105,21 +105,21 @@ az network vnet subnet create \
105
105
106
106
1 . Use the [ Add-AzVirtualNetworkSubnetConfig] ( /powershell/module/az.network/add-azvirtualnetworksubnetconfig ) command to configure the subnet.
107
107
108
- ``` azurepowershell-interactive
108
+ ``` azurepowershell-interactive
109
109
$vnet = Get-AzVirtualNetwork @vnetParams
110
110
$subnetParams = @{
111
111
Name = "<subnetName>"
112
112
VirtualNetwork = $vnet
113
113
AddressPrefix = "<String[]>"
114
114
}
115
115
Add-AzVirtualNetworkSubnetConfig @subnetParams
116
- ```
116
+ ```
117
117
118
118
1. Then associate the subnet configuration to the virtual network with [Set-AzVirtualNetwork](/powershell/module/az.network/Set-azVirtualNetwork).
119
119
120
- ``` azurepowershell-interactive
121
- Set-AzVirtualNetwork -VirtualNetwork $vnet
122
- ```
120
+ ```azurepowershell-interactive
121
+ Set-AzVirtualNetwork -VirtualNetwork $vnet
122
+ ```
123
123
124
124
---
125
125
You can’t perform that action at this time.
0 commit comments