Skip to content

Commit ee7b71e

Browse files
authored
Merge pull request #88725 from asudbring/vnetregionmove
Rename article files and edit TOC to match naming standards
2 parents 9eeac9a + 316d848 commit ee7b71e

File tree

3 files changed

+180
-183
lines changed

3 files changed

+180
-183
lines changed

articles/virtual-network/virtual-network-azure-to-azure-migrate-vnet-portal.md renamed to articles/virtual-network/move-across-regions-vnet-portal.md

Lines changed: 83 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -82,91 +82,93 @@ The following steps show how to prepare the virtual network for the move using a
8282
11. To obtain region location codes, see [Azure Locations](https://azure.microsoft.com/global-infrastructure/locations/). The code for a region is the region name with no spaces, **Central US** = **centralus**.
8383

8484
12. You can also change other parameters in the template if you choose, and are optional depending on your requirements:
85-
86-
* **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:
8785

88-
```json
86+
* **Address Space** - The address space of the VNET can be altered before saving by modifying the **resources** > **addressSpace** section and changing the **addressPrefixes** property in the **template.json** file:
87+
88+
```json
8989
"resources": [
90-
{
91-
"type": "Microsoft.Network/virtualNetworks",
92-
"apiVersion": "2019-06-01",
93-
"name": "[parameters('virtualNetworks_myVNET1_name')]",
94-
"location": "<target-region>",
95-
"properties": {
96-
"provisioningState": "Succeeded",
97-
"resourceGuid": "6e2652be-35ac-4e68-8c70-621b9ec87dcb",
98-
"addressSpace": {
99-
"addressPrefixes": [
100-
"10.0.0.0/16"
101-
]
102-
},
103-
```
90+
{
91+
"type": "Microsoft.Network/virtualNetworks",
92+
"apiVersion": "2019-06-01",
93+
"name": "[parameters('virtualNetworks_myVNET1_name')]",
94+
"location": "<target-region",
95+
"properties": {
96+
"provisioningState": "Succeeded",
97+
"resourceGuid": "6e2652be-35ac-4e68-8c70-621b9ec87dcb",
98+
"addressSpace": {
99+
"addressPrefixes": [
100+
"10.0.0.0/16"
101+
]
102+
},
104103

105-
* **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:
106-
107-
```json
108-
"subnets": [
109-
{
110-
"name": "subnet-1",
111-
"etag": "W/\"d9f6e6d6-2c15-4f7c-b01f-bed40f748dea\"",
112-
"properties": {
113-
"provisioningState": "Succeeded",
114-
"addressPrefix": "10.0.0.0/24",
115-
"delegations": [],
116-
"privateEndpointNetworkPolicies": "Enabled",
117-
"privateLinkServiceNetworkPolicies": "Enabled"
118-
}
119-
},
120-
{
121-
"name": "GatewaySubnet",
122-
"etag": "W/\"d9f6e6d6-2c15-4f7c-b01f-bed40f748dea\"",
123-
"properties": {
124-
"provisioningState": "Succeeded",
125-
"addressPrefix": "10.0.1.0/29",
126-
"serviceEndpoints": [],
127-
"delegations": [],
128-
"privateEndpointNetworkPolicies": "Enabled",
129-
"privateLinkServiceNetworkPolicies": "Enabled"
130-
}
131-
}
132-
],
133-
```
104+
```
134105

135-
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:
136-
137-
```json
138-
"type": "Microsoft.Network/virtualNetworks/subnets",
139-
"apiVersion": "2019-06-01",
140-
"name": "[concat(parameters('virtualNetworks_myVNET1_name'), '/GatewaySubnet')]",
141-
"dependsOn": [
142-
"[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_myVNET1_name'))]"
143-
],
144-
"properties": {
145-
"provisioningState": "Succeeded",
146-
"addressPrefix": "10.0.1.0/29",
147-
"serviceEndpoints": [],
148-
"delegations": [],
149-
"privateEndpointNetworkPolicies": "Enabled",
150-
"privateLinkServiceNetworkPolicies": "Enabled"
151-
}
152-
},
153-
{
154-
"type": "Microsoft.Network/virtualNetworks/subnets",
155-
"apiVersion": "2019-06-01",
156-
"name": "[concat(parameters('virtualNetworks_myVNET1_name'), '/subnet-1')]",
157-
"dependsOn": [
158-
"[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_myVNET1_name'))]"
159-
],
160-
"properties": {
161-
"provisioningState": "Succeeded",
162-
"addressPrefix": "10.0.0.0/24",
163-
"delegations": [],
164-
"privateEndpointNetworkPolicies": "Enabled",
165-
"privateLinkServiceNetworkPolicies": "Enabled"
166-
}
167-
}
168-
]
169-
```
106+
* **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. The subnet address space can be changed by altering the **addressPrefix** property in the **template.json** file:
107+
108+
```json
109+
"subnets": [
110+
{
111+
"name": "subnet-1",
112+
"etag": "W/\"d9f6e6d6-2c15-4f7c-b01f-bed40f748dea\"",
113+
"properties": {
114+
"provisioningState": "Succeeded",
115+
"addressPrefix": "10.0.0.0/24",
116+
"delegations": [],
117+
"privateEndpointNetworkPolicies": "Enabled",
118+
"privateLinkServiceNetworkPolicies": "Enabled"
119+
}
120+
},
121+
{
122+
"name": "GatewaySubnet",
123+
"etag": "W/\"d9f6e6d6-2c15-4f7c-b01f-bed40f748dea\"",
124+
"properties": {
125+
"provisioningState": "Succeeded",
126+
"addressPrefix": "10.0.1.0/29",
127+
"serviceEndpoints": [],
128+
"delegations": [],
129+
"privateEndpointNetworkPolicies": "Enabled",
130+
"privateLinkServiceNetworkPolicies": "Enabled"
131+
}
132+
}
133+
134+
]
135+
```
136+
137+
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:
138+
139+
```json
140+
"type": "Microsoft.Network/virtualNetworks/subnets",
141+
"apiVersion": "2019-06-01",
142+
"name": "[concat(parameters('virtualNetworks_myVNET1_name'), '/GatewaySubnet')]",
143+
"dependsOn": [
144+
"[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_myVNET1_name'))]"
145+
],
146+
"properties": {
147+
"provisioningState": "Succeeded",
148+
"addressPrefix": "10.0.1.0/29",
149+
"serviceEndpoints": [],
150+
"delegations": [],
151+
"privateEndpointNetworkPolicies": "Enabled",
152+
"privateLinkServiceNetworkPolicies": "Enabled"
153+
}
154+
},
155+
{
156+
"type": "Microsoft.Network/virtualNetworks/subnets",
157+
"apiVersion": "2019-06-01",
158+
"name": "[concat(parameters('virtualNetworks_myVNET1_name'), '/subnet-1')]",
159+
"dependsOn": [
160+
"[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_myVNET1_name'))]"
161+
],
162+
"properties": {
163+
"provisioningState": "Succeeded",
164+
"addressPrefix": "10.0.0.0/24",
165+
"delegations": [],
166+
"privateEndpointNetworkPolicies": "Enabled",
167+
"privateLinkServiceNetworkPolicies": "Enabled"
168+
}
169+
}
170+
]
171+
```
170172

171173
13. Click **Save** in the online editor.
172174

0 commit comments

Comments
 (0)