Skip to content

Commit 3b0a296

Browse files
committed
formatting edits
1 parent 88b1636 commit 3b0a296

File tree

2 files changed

+40
-6
lines changed

2 files changed

+40
-6
lines changed

articles/virtual-network/move-across-regions-vnet-portal.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ The following steps show how to prepare the virtual network for the move using a
8585

8686
* **Address Space** - The address space of the VNET can be altered in the template before saving by modifying the **resources** > **addressSpace** section and changing the **addressPrefixes** property in the **template.json** file:
8787

88-
```json
88+
```json
8989
"resources": [
9090
{
9191
"type": "Microsoft.Network/virtualNetworks",
@@ -100,11 +100,11 @@ The following steps show how to prepare the virtual network for the move using a
100100
"10.0.0.0/16"
101101
]
102102
},
103-
```
103+
```
104104

105105
* **Subnet** - The subnet name and the subnet address space can be changed or added to by modifying the **subnets** section of the **template.json** file. The name of the subnet can be changed by altering the **name** property in the **template.json** file. The subnet address space can be changed by altering the **addressPrefix** property in the **template.json** file:
106106

107-
```json
107+
```json
108108
"subnets": [
109109
{
110110
"name": "subnet-1",
@@ -130,11 +130,11 @@ The following steps show how to prepare the virtual network for the move using a
130130
}
131131
}
132132
],
133-
```
133+
```
134134

135135
In the **template.json** file, to change the address prefix, it must be edited in two places, the section listed above and the **type** section listed below. Change the **addressPrefix** property to match the one above:
136136

137-
```json
137+
```json
138138
"type": "Microsoft.Network/virtualNetworks/subnets",
139139
"apiVersion": "2019-06-01",
140140
"name": "[concat(parameters('virtualNetworks_myVNET1_name'), '/GatewaySubnet')]",
@@ -166,7 +166,7 @@ The following steps show how to prepare the virtual network for the move using a
166166
}
167167
}
168168
]
169-
```
169+
```
170170

171171
13. Click **Save** in the online editor.
172172

articles/virtual-network/move-across-regions-vnet-powershell.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,40 @@ The following steps show you how to prepare the virtual network for the move usi
156156

157157
In the **\<resource-group-name>.json** file, to change the address prefix, it must be edited in two places, the section listed above and the **type** section listed below. Change the **addressPrefix** property to match the one above:
158158

159+
```json
160+
"type": "Microsoft.Network/virtualNetworks/subnets",
161+
"apiVersion": "2019-06-01",
162+
"name": "[concat(parameters('virtualNetworks_myVNET1_name'), '/GatewaySubnet')]",
163+
"dependsOn": [
164+
"[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_myVNET1_name'))]"
165+
],
166+
"properties": {
167+
"provisioningState": "Succeeded",
168+
"addressPrefix": "10.0.1.0/29",
169+
"serviceEndpoints": [],
170+
"delegations": [],
171+
"privateEndpointNetworkPolicies": "Enabled",
172+
"privateLinkServiceNetworkPolicies": "Enabled"
173+
}
174+
},
175+
{
176+
"type": "Microsoft.Network/virtualNetworks/subnets",
177+
"apiVersion": "2019-06-01",
178+
"name": "[concat(parameters('virtualNetworks_myVNET1_name'), '/subnet-1')]",
179+
"dependsOn": [
180+
"[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_myVNET1_name'))]"
181+
],
182+
"properties": {
183+
"provisioningState": "Succeeded",
184+
"addressPrefix": "10.0.0.0/24",
185+
"delegations": [],
186+
"privateEndpointNetworkPolicies": "Enabled",
187+
"privateLinkServiceNetworkPolicies": "Enabled"
188+
}
189+
}
190+
]
191+
```
192+
159193
9. Save the **\<resource-group-name>.json** file.
160194

161195
10. Create a resource group in the target region for the target VNET to be deployed using [New-AzResourceGroup](https://docs.microsoft.com/powershell/module/az.resources/new-azresourcegroup?view=azps-2.6.0)

0 commit comments

Comments
 (0)