Moving a Lifecycle Environment to Another Compartment

Move a lifecycle environment to another compartment in OS Management Hub. This can help restrict access to resources by placing them in a specific compartment.

For best practices when moving compartments, see Compartment Considerations.

    1. Open the navigation menu and click Observability & Management. Under OS Management Hub, click Lifecycle environments.
    2. Under List scope, select the compartment that contains the lifecycle environment you're interested in.
    3. Click the name of the lifecycle environment.
    4. Click Move resource.
    5. Select the Destination compartment to move the lifecycle environment to.
    6. Click Move resource.
  • Use the oci os-management-hub lifecycle-environment change-compartment command and required parameters to move the lifecycle environment to another compartment with the same tenancy.

    oci os-management-hub managed-instance-group change-compartment --lifecycle-env-id ocid --compartment-id ocid [OPTIONS]

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

  • Run the ChangeLifecycleEnvironmentCompartment operation to move the lifecycle environment to another compartment within the same tenancy.