Skip to content

Commit 0b6b0f6

Browse files
Merge pull request #252862 from ankitaduttaMSFT/regional-zonal
RZ additional edits
2 parents 1354a73 + efb6d1c commit 0b6b0f6

File tree

4 files changed

+47
-52
lines changed

4 files changed

+47
-52
lines changed
30.8 KB
Loading
11.2 KB
Loading

articles/virtual-machines/move-virtual-machines-regional-zonal-portal.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ To select the VMs for the move, follow these steps:
4444

4545
2. In the DemoTestVM1 resource pane, select **Availability + scaling** > **edit**.
4646
:::image type="content" source="./media/tutorial-move-regional-zonal/availability-scaling.png" alt-text="Screenshot of Availability + scaling option.":::
47+
48+
Alternatively, in the **DemoTestVM1** overview plane, you can select **Availability + scale** > **Availability + scaling**.
49+
:::image type="content" source="./media/tutorial-move-regional-zonal/availability-scaling-home.png" alt-text="Screenshot of Availability + scaling homepage.":::
4750

4851
### Select the target availability zones
4952

@@ -55,7 +58,7 @@ To select the target availability zones, follow these steps:
5558
>[!Important]
5659
>If you select an unsupported VM to move, the validation fails. In this case, you must restart the workflow with the correct selection of VM. Refer to the [Support Matrix](../reliability/migrate-vm.md#support-matrix) to learn more about unsupported VMs type.
5760

58-
1. If Azure recommends to optimize the VM size, you must select the appropriate VM size that can increase the chances of successful deployment in the selected zone. Alternatively, you can also change the zone while keeping the same source VM size.
61+
1. If Azure recommends optimizing the VM size, you must select the appropriate VM size that can increase the chances of successful deployment in the selected zone. Alternatively, you can also change the zone while keeping the same source VM size.
5962

6063
:::image type="content" source="./media/tutorial-move-regional-zonal/aure-recommendation.png" alt-text="Screenshot showing Azure recommendation to increase virtual machine size.":::
6164

@@ -135,4 +138,4 @@ To manually remove the move collection that was made, follow these steps:
135138
136139
## Next steps
137140

138-
Learn how to move single instance Azure VMs from regional to zonal configuration using [PowerShell](./move-virtual-machines-regional-zonal-powershell.md).
141+
Learn how to move single instance Azure VMs from regional to zonal configuration using [PowerShell or CLI](./move-virtual-machines-regional-zonal-powershell.md).

articles/virtual-machines/move-virtual-machines-regional-zonal-powershell.md

Lines changed: 42 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,19 @@ Verify the following requirements:
2323

2424
| Requirement | Description |
2525
| --- | --- |
26-
| **Subscription permissions** | Ensure you have *Owner* access on the subscription containing the resources that you want to move<br/><br/> **Why do I need Owner access?** The first time you add a resource for a specific source and destination pair in an Azure subscription, Resource Mover creates a [system-assigned managed identity](../active-directory/managed-identities-azure-resources/overview.md#managed-identity-types) (formerly known as Managed Service Identify (MSI)) that's trusted by the subscription. To create the identity, and to assign it the required role (Contributor or User Access administrator in the source subscription), the account you use to add resources needs *Owner* permissions on the subscription. [Learn more](../role-based-access-control/rbac-and-directory-admin-roles.md#azure-roles) about Azure roles. |
26+
| **Subscription permissions** | Ensure you have *Owner* access on the subscription containing the resources that you want to move.<br/><br/> [Managed identity](../active-directory/managed-identities-azure-resources/overview.md#managed-identity-types) needs these permissions: <br> - Permission to write or create resources in user subscription, available with the *Contributor role*. <br> - Permission to create role assignments. Typically available with the *Owner* or *User Access Administrator* roles, or with a custom role that has the `Microsoft.Authorization` role assignments or write permission assigned. This permission isn't needed if the data share resource's managed identity is already granted access to the Azure data store. <br> [Learn more](../role-based-access-control/rbac-and-directory-admin-roles.md#azure-roles) about Azure roles. |
2727
| **VM support** | [Review](../resource-mover/common-questions.md) the supported regions. <br><br> - Check supported [compute](../resource-mover/support-matrix-move-region-azure-vm.md#supported-vm-compute-settings), [storage](../resource-mover/support-matrix-move-region-azure-vm.md#supported-vm-storage-settings), and [networking](../resource-mover/support-matrix-move-region-azure-vm.md#supported-vm-networking-settings) settings.|
28+
| **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 and the Virtual Machine is working and is in a healthy state before attempting the VM zonal move. |
2829

2930

30-
### Review PowerShell requirements
31+
### Review PowerShell and CLI requirements
3132

32-
Most move resources operations are the same whether using the Azure portal or PowerShell, with a couple of exceptions.
33+
Most move resources operations are the same whether using the Azure portal or PowerShell or CLI, with a couple of exceptions.
3334

34-
| Operation | Portal | PowerShell |
35+
| Operation | Portal | PowerShell/CLI |
3536
| --- | --- | --- |
36-
| Create a move collection | A move collection (a list of all the regional VMs that you're moving) is created automatically. Required identity permissions are assigned in the backend by the portal. | You can use [PowerShell cmdlets](/powershell/module/az.resourcemover/?view=azps-10.3.0#resource-mover) to: <br> - Assign a managed identity to the collection. <br> - Add regional VMs to the collection. |
37-
| Resource move operations | Validate steps and validates the *User* setting changes. **Initiate move** starts the move process and creates a copy of source VM in the target zone and finalizes the move of the newly created VM in the target zone. | [PowerShell cmdlets](/powershell/module/az.resourcemover/?view=azps-10.3.0#resource-mover) to: <br> - Resolve dependencies <br> - Perform the move. <br> - Commit the move. |
37+
| **Create a move collection** | A move collection (a list of all the regional VMs that you're moving) is created automatically. Required identity permissions are assigned in the backend by the portal. | You can use [PowerShell cmdlets](/powershell/module/az.resourcemover/?view=azps-10.3.0#resource-mover) or [CLI cmdlets](https://learn.microsoft.com/cli/azure/resource-mover?view=azure-cli-latest) to: <br> - Assign a managed identity to the collection. <br> - Add regional VMs to the collection. |
38+
| **Resource move operations** | Validate steps and validates the *User* setting changes. **Initiate move** starts the move process and creates a copy of source VM in the target zone. It also finalizes the move of the newly created VM in the target zone. | [PowerShell cmdlets](/powershell/module/az.resourcemover/?view=azps-10.3.0#resource-mover) or [CLI cmdlets](https://learn.microsoft.com/cli/azure/resource-mover?view=azure-cli-latest) to: <br> - Add regional VMs to the collection <br> - Resolve dependencies <br> - Perform the move. <br> - Commit the move. |
3839

3940
### Sample values
4041

@@ -526,61 +527,52 @@ az resource-mover move-collection initiate-move --move-resources "/subscriptions
526527

527528
## Commit
528529

529-
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.
530+
After the initial move, you must commit the move or discard it. **Commit** completes the move to the target region.
530531

531-
**To commit the move:**
532+
**Commit the move as follows:**
532533

533-
1. Commit the move as follows:
534+
# [PowerShell](#tab/PowerShell)
534535

535-
# [PowerShell](#tab/PowerShell)
536+
```
537+
Invoke-AzResourceMover-VMZonalMoveCommit -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('psdemovm111', 'PSDemoRM-vnet','PSDemoVM-nsg', ‘PSDemoVM’) -MoveResourceInputType "MoveResourceId"
538+
```
536539

537-
```
538-
Invoke-AzResourceMover-VMZonalMoveCommit -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('psdemovm111', 'PSDemoRM-vnet','PSDemoVM-nsg', ‘PSDemoVM’) -MoveResourceInputType "MoveResourceId"
539-
```
540+
**Output**:
540541

541-
**Output**:
542+
```powershell
543+
AdditionalInfo :
544+
Code :
545+
Detail :
546+
EndTime : 9/22/2023 5:26:55 AM
547+
Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionToZone-DemoMCRG/providers/Microsoft.Migrate/moveCollections/RegionToZone-DemoMC/operations/35dd1d93-ba70-4dc9-a17f-7d8ba48678d8
548+
Message :
549+
Name : 35dd1d93-ba70-4dc9-a17f-7d8ba48678d8
550+
Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
551+
StartTime : 9/22/2023 5:26:54 AM
552+
Status : Succeeded
553+
```
542554

543-
```powershell
544-
AdditionalInfo :
545-
Code :
546-
Detail :
547-
EndTime : 9/22/2023 5:26:55 AM
548-
Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionToZone-DemoMCRG/providers/Microsoft.Migrate/moveCollections/RegionToZone-DemoMC/operations/35dd1d93-ba70-4dc9-a17f-7d8ba48678d8
549-
Message :
550-
Name : 35dd1d93-ba70-4dc9-a17f-7d8ba48678d8
551-
Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
552-
StartTime : 9/22/2023 5:26:54 AM
553-
Status : Succeeded
554-
```
555-
556-
# [CLI](#tab/CLI)
555+
# [CLI](#tab/CLI)
557556

558-
```azurecli-interactive
559-
az resource-mover move-collection commit --move-resources "/subscriptions/<Subscription-id>/resourceGroups/clidemo-RG/providers/Microsoft.Migrate/moveCollections/cliDemo-zonalMC/moveResources/vm-demoMR" --validate-only false --name cliDemo-zonalMC --resource-group clidemo-RG
560-
```
557+
```azurecli-interactive
558+
az resource-mover move-collection commit --move-resources "/subscriptions/<Subscription-id>/resourceGroups/clidemo-RG/providers/Microsoft.Migrate/moveCollections/cliDemo-zonalMC/moveResources/vm-demoMR" --validate-only false --name cliDemo-zonalMC --resource-group clidemo-RG
559+
```
561560

562-
**Output**:
561+
**Output**:
563562

564-
```azurecli
565-
{
566-
"endTime": "9/21/2023 11:47:14 AM",
567-
"id": "/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/clidemo-RG/providers/Microsoft.Migrate/moveCollections/cliDemo-zonalMC/operations/34c0d405-672f-431a-8879-582c48940b4a",
568-
"name": "34c0d405-672f-431a-8879-582c48940b4a",
569-
"resourceGroup": "clidemo-RG",
570-
"startTime": "9/21/2023 11:45:13 AM",
571-
"status": "Succeeded"
572-
}
573-
```
563+
```azurecli
564+
{
565+
"endTime": "9/21/2023 11:47:14 AM",
566+
"id": "/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/clidemo-RG/providers/Microsoft.Migrate/moveCollections/cliDemo-zonalMC/operations/34c0d405-672f-431a-8879-582c48940b4a",
567+
"name": "34c0d405-672f-431a-8879-582c48940b4a",
568+
"resourceGroup": "clidemo-RG",
569+
"startTime": "9/21/2023 11:45:13 AM",
570+
"status": "Succeeded"
571+
}
572+
```
574573

575-
---
574+
---
576575

577-
2. Verify that all regional VMs have moved to the target region:
578-
579-
```
580-
Get-AzResourceMover-VMZonalMoveMoveResource -ResourceGroupName "RG-MoveCollection-demoRMS " -MoveCollectionName "PS-centralus-westcentralus-demoRMS"
581-
```
582-
583-
3. All resources are now in a *Delete Source Pending* state in the target region.
584576

585577
## Delete source regional VMs
586578

0 commit comments

Comments
 (0)