Updated on 2024-11-01 GMT+08:00

Importing Details of Alibaba Cloud Resources

You can import CSV-formatted resource details from Alibaba Cloud directly into MgC. You first need to export the resource details from Alibaba Cloud. After the import is complete, you can view the resource details on the MgC console. With the imported details, you can get recommendations for suitable Huawei Cloud resources.

The supported Alibaba Cloud resources are:

  • Elastic Compute Service (ECS) instances and cloud disks
  • Object Storage Service (OSS) buckets
  • ApsaraDB RDS for MySQL instances
  • ApsaraDB RDS for GaussDB instances

Exporting Data of Alibaba Cloud ECS Instances and Disks

  1. Sign in to the Alibaba Cloud ECS console.
  2. On the Overview page, choose Export Data > Instances to export a list of all ECS instances.

  3. Choose Export Data > Disks to export a list of all cloud disks.
  4. Open the instance list and the disk list and adjust the resource information if needed. Ensure that the lists contain the necessary information.

    List

    Mandatory Fields

    Instance list

    Instance ID, OS, instance specifications, CPU, and memory

    Disk list

    Instance ID, disk ID, capacity (GiB), and disk attributes

Exporting Data of Alibaba Cloud OSS Buckets

  1. Sign in to the OSS console.
  2. In the left navigation pane, choose Buckets.
  3. Click the icon in the upper right corner of the list. The Export Bucket List dialog box is displayed.

  4. Select the information to be exported and click OK.

Exporting Data of Alibaba Cloud ApsaraDB RDS for MySQL Instances

  1. Sign in to the Alibaba Cloud ApsaraDB RDS for MySQL console.
  2. In the navigation pane on the left, choose Instances. Select a region in the upper part of the page.
  3. Filter all MySQL instances in the Database Engine column and click the icon in the upper right corner of the list.

  4. In the displayed dialog box, select the information to be exported. Click OK. The system exports the instance information to a CSV file and automatically downloads the file.
  5. Modify the exported CSV file so MgC can parse the file content.

    1. Use a file editor to open the CSV file and search for PrivatePort(A network port,) in the table header.
    2. Delete the comma (,) from this field and save the file. The correct format is PrivatePort(A network port).

Exporting Data of Alibaba Cloud ApsaraDB RDS for Redis Instances

  1. Sign in to the Alibaba Cloud ApsaraDB for Redis console.
  2. In the navigation pane on the left, choose Instances. Select a region in the upper part of the page.
  3. In the lower left corner of the page, expand and click Select All.

  4. Click the icon in the upper right corner of the list. In the dialog box that is displayed, select the information to be exported.

  5. Click OK. The system exports the instance information to a CSV file and automatically downloads the file.
  6. Modify the exported CSV file so MgC can parse the file content.

    1. Use a file editor to open the CSV file.
    2. Add a comma (,) at the end of the table heading line and save the file.

      The following shows an example table header before modification:

      ID,Name,Quantity

      The following shows the table header after modification:

      ID,Name,Quantity,

Importing Details of Alibaba Cloud Resources

  1. Sign in to the MgC console.
  2. In the navigation pane on the left, choose Research > Application Discovery. Select a migration project in the upper left corner of the page.
  3. If you are creating an import task for the first time, in the Tool Discovery area, choose Import > Alibaba Cloud data. If you have created import tasks before, in the Discovery Task card, choose Import > Alibaba Cloud data.

    Only CSV files encoded in UTF-8 format with English table headers can be imported. The size of a single file cannot exceed 15 MB. For details about how to convert the encoding format of a CSV file to UTF-8, see How Do I Convert the Encoding Format of a CSV File to UTF-8?

  4. In the Resource Type drop-down list, select the types of resources to be imported and upload the corresponding file.

    Resource Type

    Procedure

    Servers

    1. Click Select File next to Resource List and select the exported ECS list.
    2. Click Select File next to Cloud Disk Resource List and select the exported disk list.

    Redis

    Click Select File next to Resource List and select the exported Redis instance list.

    Object storage

    Click Select File next to Resource List and select the exported OSS bucket list.

    Databases

    Click Select File next to Resource List and select the exported MySQL instance list.

  5. Click Confirm. After the resource list is uploaded successfully, select the corresponding resource categories to view the imported resource information.
  6. (Optional) Group imported Alibaba Cloud resources as applications. For details, see Grouping Resources as Applications. Then assess the applications to obtain recommendations for Huawei Cloud resources. For details, see Getting Target Recommendations.