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 select Migration & Disaster Recovery. Under Cloud Migrations, select Migrations.
- On the Migrations projects list page, select the active migration project that you want to move.
- On the migration project details page, select the the Actions menu and then select Move resource.
- 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-compartmentcommand.oci cloud-migrations migration change-compartment --compartment-id target_compartment_ID --migration-id migration_ID [OPTIONS]The required parameters for thechange-compartmentcommand 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 -hTo get help for the
change-compartmentcommand, run:oci cloud-migrations migration change-compartment -hFor 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
ChangeMigrationCompartmentoperation.