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.
- Open the navigation menu and click Migration & Disaster Recovery. Under Cloud Migrations, click Migrations.
- On the Migrations page, select the active migration project that you want to move.
- On the Migration project details page, from More actions, select Move resource.
- In the Move resource dialog box, select the compartment to which you want to move the migration project and click Move resource.
The migration project and its associated resources are moved to another 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 thechange-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.