Moving a Scheduled Job to Another Compartment

Move a scheduled job 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 Jobs.
    2. Under List scope, select the compartment associated with the job.
    3. In the Scheduled jobs tab, click the name of the job.
    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 scheduled-job change-compartment command and required parameters to move the scheduled job to another compartment with the same region of the tenancy.

    oci os-management-hub scheduled-job change-compartment --scheduled-job-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 ChangeScheduledJobCompartment operation to move the scheduled job to another compartment within the same region of the tenancy.