Updated on 2026-11-11 GMT+08:00

Cross-AZ Migration

Introduction

This function enables you to migrate servers via incremental image backups, ideal for AZ decommissioning. Specifically, create a migration task by configuring the source server, target server, and migration parameters.

For small-scale or single-batch migrations (e.g., fewer than 30 servers), refer to One-Stop Cross-AZ ECS Migration.

Notes and Constraints

  • A server can only be included in one migration task.
  • A migration task can include a maximum of 100 servers.
  • The name of the project or subproject associated with the collected resources must remain unchanged during migration. If the name is changed, you must collect the source server information again and create a new migration task.

For details, see Constraints.

Billing

During cross-AZ migrations of ECSs, you need to pay for ECS, Image Management Service (IMS), and Cloud Backup and Recovery (CBR) resources used during the migrations.

  • CBR vaults

    During a cross-AZ server migration, if no vault is configured for the source servers, MgC creates a vault 1.5 times the combined size of the source server disks to facilitate the migration. The vault will be automatically deleted after the migration is complete.

    For details about CBR pricing, see CBR Billing.

  • Images

    During a cross-AZ server migration, full-device images are created for the source server to facilitate the migration.

    For more details on IMS pricing, see IMS Billing.

  • Target servers

    During a cross-AZ server migration, you cannot specify an existing target server. Instead, the system automatically creates a pay-per-use target server. After the service cutover is complete, you can change the billing mode of the target server to yearly/monthly as required.

    For the pricing details of pay-per-use ECSs, see Pay-per-Use Billing.

Procedure

Table 1 introduces the complete process of cross-AZ server migration.

Table 1 Cross-AZ server migration process

Step

Description

Preparations

  • Before using MgC, prepare a Huawei Cloud account or an IAM user that can access MgC and has required permissions.
  • Create a server migration project on the MgC console.

Step 1: Collect Source Resources

Discover and collect source server resources through online discovery.

Step 2: Create a Migration Task

Creating a cross-AZ server migration task. At this step, you will create a task template for configuration later.

Step 3: Configure the Migration Task

Select source resources, configure target servers, set parameters, and confirm settings.

Phase 1: Select Source Resources

Start the migration task and check the migration status, stages, and steps.

Preparations

Prepare resources by referring to Table 2 before creating a cross-AZ server migration task.

Table 2 Preparations

Item

Requirement

Preparing accounts and permissions

  1. Sign up for a Huawei Cloud account and complete real-name authentication. If you have already signed up for a Huawei Cloud account and completed real-name authentication, skip this step.
    1. Visit Huawei Cloud and click Sign Up.
    2. Sign up for a Huawei Cloud account.
    3. (Optional) Complete real-name authentication. Real-name authentication is the process of submitting valid identity information (such as a passport or business license) for verification when you use cloud services offered in the Chinese mainland. There are individual real-name authentication and enterprise real-name authentication.

      According to relevant laws and regulations, unauthenticated accounts cannot purchase cloud services in the Chinese mainland and your account and rights may not be protected. For more information, see Real-Name Authentication Overview.

      To complete real-name authentication, refer to:
  2. Create an IAM user and grant permissions to the user. Skip this step if you use a Huawei Cloud account (administrator account).
    1. Create an IAM user. For details, see Creating an IAM User or Creating an IAM User (New Version).
    2. Create a custom policy and grant permissions to the IAM user. For details, see Using Roles or Policies to Assign Custom Permissions to IAM Users or Using Identity Policies to Assign Custom Permissions to IAM Users (New Version). For details about how to grant permissions, see Assigning Permissions to an IAM User or Assigning Permissions to an IAM User (New Version).
  3. Obtain an AK/SK pair for the source account.

    The AK/SK of the source account is required for authentication when collecting source server resources. For details about how to obtain the AK/SK of the source account, see Creating an Access Key or Access Keys (New Version).

Creating an application migration project

Create a project to separate and manage migration resources. For details, see Creating an Application Migration Project.

Step 1: Collect Source Resources

  1. Sign in to the MgC console. In the navigation pane, under Project, select your application migration project from the drop-down list.
  2. In the navigation pane, click Resource Survey.
  3. Under Online Discovery, click Cloud Discovery.

    Figure 1 Cloud discovery

  4. Set collection task parameters according to Table 3.

    Table 3 Collection task parameters

    Item

    Parameter

    Description

    Task Settings

    Source Platform

    Select Huawei Cloud.

    Collection Method

    Credential: In the drop-down list, select the AK/SK of the account to which the source server belongs. For details, see Managing Credentials. Alternatively, add one by performing the following steps:

    1. Click Create Credential and enter a name.
    2. Set Authentication Mode to AK/SK and enter the AK and SK of the source account.
    3. Click Save.

    Agency: A cloud service agency is required to assign MgC the permissions required to access resources in your current account. For details about the agency permissions, see Agency Permissions.

    If the Agency Status is Agency not created, click Create Agency. On the displayed page, click OK.

    Region

    Select the region where the source servers are located. You can select multiple regions.

    Resource Type

    Select Servers from the drop-down list.

    Basic Info

    Task Name

    The default name format is <task type>-<current-time>. You can also specify a name.

    Task Description (Optional)

    Describe the task.

    Application (Optional)

    Select the application that you want to group the discovered resources into. This is recommended for the assessment and migration of a small number of resources. If no applications are available, perform the following steps to create one:

    1. Click Create Application. Enter an application name and description.
    2. Select Cross-AZ migration for Business Scenario.
    3. Set the environment as required.
    4. Select the region you want to migrate to.
    5. Click OK.

  5. Click Confirm. After the online discovery task is created, MgC starts discovering source resources.

    • If the task succeeds, return to the Resource List page and check the list of discovered source resources and their details.
    • If the task fails, click the task name to check the data source that fails to be collected. Hover over the collection status to check the failure cause.

Step 2: Create a Migration Task

  1. In the navigation pane, choose Server Migration > Cross-AZ.
  2. Click Create Migration Task.
  3. Use the default task name or create one. Enter the task description (optional).
  4. Click OK to complete the task creation.

Step 3: Configure the Migration Task

This step includes four phases.

  1. On the Select Source Resources page, select the source server's region from the Source Region drop-down list, then select its AZ.

    Figure 2 Selecting the source server's region and AZ

  2. Above the resource list, click Add.
  3. Select the source servers to be migrated together and click Confirm.

    All servers in a migration task share the same settings (e.g., VPC, subnet, and security group). Verify your server selection before proceeding.

  4. Click Next. The Configure Target page is displayed.
  1. On the Configure Target page, select the target AZ. After the target AZ is selected, the system automatically configures target servers that match the specifications of their paired source servers.

    If no matching server or disk specifications are available in the target AZ, automatic target configuration will fail. To fix this issue, you can:

  2. (Optional) Manually configure target servers. Before proceeding with this operation, carefully assess any associated risks. It is also essential to ensure that the chosen specifications meet your system requirements and compatibility standards.

    1. In the list of servers to be migrated, click Configure Target in the Operation column.
    2. In the Target Specifications area, select the target server specifications as required.
    3. In the Target Disks area, select a storage type and size for each target server disk.
    4. Click Confirm. Manual will appear in the Target column.

  3. Confirm that all source servers have their targets configured, and click Next to open the Configure Migration Settings page.
  1. Configure migration settings based on Table 4.

    Table 4 Migration settings

    Area

    Parameter

    Description

    Network Settings

    Retain Source Network Settings

    This option is selected by default. The VPC and subnet settings of the source servers will be retained after the migration, but their IP addresses will not.

    Migration Settings

    Create Target Immediately

    This option is selected by default. After the migration is started, the system will create backups and images for the source servers, and immediately use those images to create target servers.

    Stop Target After Creation

    • If this option is selected, target servers will be stopped after being created.
    • If this option is not selected, target servers will be started after being created.

    Stop Source Before Incremental Backup

    • If this option is selected, the source servers will be stopped before they are incrementally backed up. This ensures data consistency as high as possible.
    • If this option is not selected, the source servers will remain started when they are incrementally backed up.

    Create System Disk Image

    • If this option is selected, the system will create system disk images for source servers. These images can be used to reinstall the OS for the paired target servers.
    • If this option is not selected, no system disk images will be created.

    Advanced Settings

    Delete Intermediate Resources

    If this function is enabled, intermediate resources generated during the migration, such as backups, snapshots, and images, will be deleted after the service cutover is complete.

    Retain Primary NIC IP Address

    This option can be selected only if both Stop Target After Creation and Stop Source Before Incremental Backup are selected.

    If this option is selected, the private and public IP addresses bound to the primary NICs on source servers will be retained on target servers, and random private IP addresses will be allocated to source servers. If a rollback is needed, it has to be performed manually.

    Send SMN Notifications

    Determine whether to get SMN notifications about the migration. You can configure Topic, Language, and Trigger Condition.

    Before enabling this function, create an SMN topic and subscribe to it. For details, see Publishing a Template Message.

    NOTE:

    You can only choose an SMN topic in the default IAM project of the region where you currently use MgC.

    To enable this function, you need to authorize MgC when the system prompts you.

    Select one or more trigger conditions.

    • Migration succeeded: A notification will be sent if all resources in the migration task are migrated.
    • Migration failed: A notification will be sent if any resource in the migration task fails to be migrated.
    • Manual checkpoint: A notification will be sent if all resources in the migration task are waiting for manual confirmation.

  2. Click Next to open the Confirm page.
  1. On the Confirm page, check the resource and migration settings carefully to ensure that they meet your requirements. To update the settings, click Previous to return to the corresponding stage for modification.
  2. In the Quota Verification area, the system will check whether the resource quotas in the target region meet the request. If no, increase the quota and verify again. Ensure that all check items meet the quota requirements.
  3. On the Confirm page, verify that the resource and migration settings are correct and that all quotas meet the requirements. Then, click Finish. The Start Migration Task dialog box is displayed. The migration task has been created. Determine whether to start the migration immediately.

    • If you want to start the migration immediately, click Confirm to run the task.
    • If you want to save the migration settings without starting the migration, click Cancel. The task status will change to To be started. To run the task, click Run in the Operation column to manually start the migration.

Step 4: Track the Migration Task

In the migration task list, click the task name to go to the Task Details page. Check the task progress and perform the following operations on it.
  • Checking the resource status: Click a resource name. On the Resource Details page displayed on the right, you can review the basic information, migration status, and migration progress of the resource.
  • Confirming steps: Some resources require manual confirmation. In this case, click Confirm in the Migration Status column or in the Operation column to continue the migration.

    To check the migration phases and steps included in a migration task, click View Task Template in the upper right corner of the task details page.

Related Operations

You can perform the following operations on a migration task:

Task Sources and Management

In cloud computing environments, you can use cross-AZ migration of ECS or MgC to deploy highly available services. Previously, migration tasks created in ECS and MgC were displayed and managed separately. You had to switch between the two consoles to check task status, and migration tasks from different sources could not be managed in a unified view.

To address the issue, MgC now provides a unified view of ECS cross-AZ migration tasks. The task list displays the task source (ECS or MgC), differentiates source-specific operations (for example, hiding actions that are not supported for ECS-created tasks), and includes source and target AZ information. This allows you to view and manage migration tasks from ECS and MgC in a single interface, improving operational efficiency and usability.

  1. Sign in to the MgC console. In the navigation pane, under Project, select your application migration project from the drop-down list.
  2. In the navigation pane, choose Server Migration > Cross-AZ. The Cross-AZ Migration page is displayed.
  3. In the Source column of the task list, check whether the migration task has been created in ECS or MgC. Table 5 lists the operations supported by tasks from different sources.

    Table 5 Migration task management

    Source

    Related Operations

    Migration Center (MgC)

    See Reconfiguring a Task and Deleting Resources from a Migration Task.

    Elastic Cloud Server (ECS)

    Viewing task details: In the migration task list, click a task name. On the Migration Task Details page, you can view the source and target regions and AZs, migration steps, and migration status for the resources involved in the migration task.

    Canceling a migration: You can cancel a migration task when it is in the Waiting, Running, or Failed state. However, running resources that entered the migration execution stage cannot be canceled. Canceled migration tasks cannot be recovered. Exercise caution when performing this operation. After a migration task is cancelled, if you still want to migrate the resources, go to the ECS console and create a new migration task.

    In the migration task list, locate the task and choose More > Cancel in the Operation column. Alternatively, on the Migration Task Details page, locate the resource and click Cancel in the Operation column. When the task status changes to Cancelled, the task is successfully canceled.

    Deleting a task: You can delete a task when it is in the Succeeded, Cancelled, or Deletion failed state.

    In the migration task list, locate the task and choose More > Delete in the Operation column. Alternatively, on the Migration Task Details page, locate the resource and click Delete in the Operation column. When the task disappears from the task list, the task is successfully deleted.