Creating Migration Assets in a Migration Project

In Oracle Cloud Migrations, you can use the inventory module to add inventory assets for migration that is not already associated with another migration project.

Using the Console

To add assets to a migration project that is not already associated with another project, do the following:
  1. From the Oracle Cloud Console, open the navigation menu and click Migration. Under Migration, click Cloud Migrations, and then click Migrations.
  2. Click the active migration project name link for which you want to add migration assets.
    You are redirected to the Migration project details page.
  3. Under Resources, click Migration assets.
  4. Click Add migration assets.
  5. To add assets to the migration project, click Add from OCM inventory and choose any assets that are listed as available.
  6. Click Next.
  7. Configure Replication location. Choose from the following available options.
    Note

    You can't modify the replication compartment or replication bucket after you create a migration asset. To modify the replication details, remove the migration asset from the migration project and then add it again. For more information about replication bucket, see About Replication Bucket.
    • Bulk configuration: Default replication bucket. Use this option to configure all Migration Assets with the same volume availability domain, replication compartment, and replication bucket.

    • Individual configuration: Use the migration asset list and click Edit replication bucket to configure individual assets, or click Reset to default.

  8. Click Submit.
You can now modify the migration plan, if required.

Using the CLI

To add inventory assets to a migration project, use the create command.

oci cloud-migrations migration-asset create --availability-domain region_availability_domain --inventory-asset-id inventory_asset_ID --migration-id migration_ID --replication-compartment-id replication_compartment_ID --snap-shot-bucket replication_bucket [OPTINS]
The required parameters for the create command are:
  • --availability-domain: Specifies the availability domain within a region where OCI is hosted.
  • --inventory-asset-id: Specifies the OCID of an inventory asset.
  • --migration-id: Specifies the OCID of the associated migration project.
  • --replication-compartment-id: Specifies the unique identifier for the replication compartment.
  • --snap-shot-bucket: Specifies the replication bucket for the migration assets.

To get all the commands for migration-asset, run:

oci cloud-migrations migration-asset -h

To get help for the create command, run:

oci cloud-migrations migration-asset create -h

For a complete list of flags and variable options for CLI commands, see the Command Line Reference.

Using the API

To add inventory assets to a migration project, use the CreateMigrationAsset operation.