You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/move-virtual-machines-regional-zonal-portal.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Learn how to move single instance Azure virtual machines from a reg
4
4
author: ankitaduttaMSFT
5
5
ms.service: virtual-machines
6
6
ms.topic: article
7
-
ms.date: 09/21/2023
7
+
ms.date: 09/25/2023
8
8
ms.author: ankitadutta
9
9
---
10
10
@@ -28,6 +28,7 @@ Ensure the following before you begin:
28
28
-**VM support**: Check that the VMs you want to move are supported. [Learn more](../reliability/migrate-vm.md). Check supported VM settings.
29
29
30
30
-**Subscription quota**: The subscription must have enough quota to create the new VM and associated networking resources in target zonal configuration (in same region). If the subscription doesn't have enough quota, you need to [request additional limits](../azure-resource-manager/management/azure-subscription-service-limits.md).
31
+
-**VM health status**: The VMs you want to move must be in a healthy state before attempting the zonal move. Ensure that all pending reboots and mandatory updates are complete. [Learn more](../reliability/migrate-vm.md#vm-health-status) about VM health status.
@@ -4,7 +4,7 @@ description: Move single instance Azure virtual machines from a regional configu
4
4
author: ankitaduttaMSFT
5
5
ms.service: virtual-machines
6
6
ms.topic: tutorial
7
-
ms.date: 09/21/2023
7
+
ms.date: 09/25/2023
8
8
ms.author: ankitadutta
9
9
---
10
10
@@ -73,6 +73,8 @@ The MoveCollection object stores metadata and configuration information about th
73
73
74
74
Use the following cmdlet to create a resource group for the move collection metadata and configuration information with [New-AzResourceGroup](/powershell/module/az.resources/new-azresourcegroup). A resource group is a logical container into which Azure resources are deployed and managed.
@@ -82,6 +84,19 @@ The output shows that the managed disk is in the same availability zone as the V
82
84
83
85
:::image type="content" source="./media/tutorial-move-regional-zonal/create-resource-group.png" alt-text="Output text after creating resource group":::
84
86
87
+
# [CLI](#tab/CLI)
88
+
89
+
```azurecli-interactive
90
+
az group create --location eastus2 --name clidemo-RG
91
+
```
92
+
93
+
**Output**:
94
+
The output shows that the managed disk is in the same availability zone as the VM:
95
+
96
+
:::image type="content" source="./media/tutorial-move-regional-zonal/create-resource-group.png" alt-text="Output text after creating resource group":::
97
+
98
+
---
99
+
85
100
## Register the resource provider
86
101
87
102
1. Register the resource provider Microsoft.Migrate, so that the MoveCollection resource can be created, as follows:
@@ -104,6 +119,8 @@ The output shows that the managed disk is in the same availability zone as the V
104
119
105
120
Create a MoveCollection object, and assign a managed identity to it, as follows:
:::image type="content" source="./media/tutorial-move-regional-zonal/create-move-collection.png" alt-text="Output text after creating move collection":::
> For Regional to zonal move, the `MoveType` parameter should be set as *RegionToZone* and `MoveRegion` parameter should be set as the location where resources undergoing zonal move reside. Ensure that the parameters `SourceRegion` and `TargetRegion` are not required and should be set to *null*.
117
142
@@ -128,35 +153,46 @@ Grant the managed identity access to the Resource Mover subscription as follows.
128
153
129
154
2. Assign the required roles to the identity so Azure Resource Mover can access your subscription to help move resources. Review the list of [required permissions](../resource-mover/common-questions.md#what-managed-identity-permissions-does-resource-mover-need) for the move.
az role assignment create --assignee-object-id 45bc279c-3353-4f6a-bb4f-8efb48faba59 --assignee-principal-type ServicePrincipal --role Contributor --scope /subscriptions/<Subscription-id>
168
+
az role assignment create --assignee-object-id 45bc279c-3353-4f6a-bb4f-8efb48faba59 --assignee-principal-type ServicePrincipal --role "User Access Administrator" --scope /subscriptions/<Subscription-id>
169
+
170
+
```
171
+
172
+
---
173
+
136
174
## Add regional VMs to the move collection
137
175
138
176
Retrieve the IDs for existing source resources that you want to move. Create the destination resource settings object, then add resources to the move collection.
139
177
140
178
> [!NOTE]
141
179
> Resources added to a move collection must be in the same subscription but can be in different resource groups.
142
180
143
-
### Create target resource setting object
144
-
145
-
Create the target resource setting object as follows:
181
+
1. Create target resource setting object as follows:
:::image type="content" source="./media/tutorial-move-regional-zonal/create-target-resources.png" alt-text="Output text after creating target regions the move collection.":::
:::image type="content" source="./media/tutorial-move-regional-zonal/create-target-resources.png" alt-text="Output text after creating target regions the move collection.":::
:::image type="content" source="./media/tutorial-move-regional-zonal/add-regional-machines.png" alt-text="Output text after adding regional virtual machines to the move collection.":::
:::image type="content" source="./media/tutorial-move-regional-zonal/add-regional-machines.png" alt-text="Output text after adding regional virtual machines to the move collection.":::
213
+
214
+
---
169
215
170
-
### Modify settings
216
+
## Modify settings
171
217
172
218
You can modify destination settings when moving Azure VMs and associated resources. We recommend that you only change destination settings before you validate the move collection.
173
219
@@ -215,6 +261,8 @@ Modify settings as follows:
215
261
Check whether the regional VMs you added have any dependencies on other resources, and add as needed.
:::image type="content" source="./media/tutorial-move-regional-zonal/resolve-dependencies.png" alt-text="Output text after resolving move dependencies.":::
226
274
275
+
# [CLI](#tab/CLI)
227
276
228
-
>[!NOTE]
229
-
>
230
-
> - To get a list of resources added to the move collection, you can call: <br>
>:::image type="content" source="./media/tutorial-move-regional-zonal/call-move-collection.png" alt-text="Output text after retrieving the move collection.":::
235
-
>
236
-
> - To remove resources from the resource collection, follow these [instructions](../resource-mover/remove-move-resources.md).
277
+
```azurecli-interactive
278
+
az resource-mover move-collection resolve-dependency --name cliDemo-zonalMC --resource-group clidemo-RG
279
+
```
280
+
**Output (when dependencies exist)**
281
+
282
+
:::image type="content" source="./media/tutorial-move-regional-zonal/resolve-dependencies.png" alt-text="Output text after resolving move dependencies.":::
283
+
284
+
---
285
+
286
+
287
+
- To get a list of resources added to the move collection, you can call:
:::image type="content" source="./media/tutorial-move-regional-zonal/call-move-collection.png" alt-text="Output text after retrieving the move collection.":::
296
+
297
+
# [CLI](#tab/CLI)
298
+
299
+
```azurecli-interactive
300
+
az resource-mover move-resource list --move-collection-name cliDemo-zonalMC --resource-group clidemo-RG
301
+
```
302
+
---
303
+
304
+
- To remove resources from the resource collection, follow these [instructions](../resource-mover/remove-move-resources.md).
:::image type="content" source="./media/tutorial-move-regional-zonal/initiate-move-resources.png" alt-text="Output text after initiating the move.":::
328
+
329
+
---
330
+
249
331
## Commit
250
332
251
333
After the initial move, you can decide whether you want to commit the move or discard it. Commit completes the move to the target region. After committing, a source regional VM will be in a state of *Delete source pending* and you can decide if you want to delete it.
@@ -254,13 +336,26 @@ After the initial move, you can decide whether you want to commit the move or di
0 commit comments