Moving a Migration Project Between Compartments

Move a migration project and its associated resources (environments and artifacts) from one compartment to another within the same region.

    1. Open the navigation menu  and select Migration & Disaster Recovery. Under Cloud Migrations, select Migrations.
    2. On the Migrations projects list page, select the active migration project that you want to move.
    3. On the migration project details page, select the the Actions menu and then select Move resource.
    4. In the Move resource panel, select the compartment to which you want to move the migration project and select Move resource.
    The migration project and its associated resources are moved to the selected compartment.
  • To move a migration project from one compartment identifier to another, use the change-compartment command.

    oci cloud-migrations migration change-compartment --compartment-id target_compartment_ID --migration-id migration_ID [OPTIONS]
    The required parameters for the change-compartment command are:
    • --compartment-id: Specifies the OCID of compartment into which you want to move the migration project.

    • --migration-id: Specifies the unique identifier for the migration project.

    To get all the commands for migration, run:

    oci cloud-migrations migration -h

    To get help for the change-compartment command, run:

    oci cloud-migrations migration change-compartment -h

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

  • To move a migration project to another compartment, use the ChangeMigrationCompartment operation.