Detaching an Instance from a Lifecycle Environment

Remove the association between the instance and lifecycle environment in OS Management Hub.

When detaching an instance from a lifecycle stage, the service:

  • Removes the instance from the lifecycle stage.
  • Detaches the versioned custom software source (leaving no software sources attached to the instance).
Important

After detaching the instance, it no longer has any associated software sources and won't receive updates. You can manage it as a standalone instance or assign the instance to a group or another lifecycle.

    1. On the Lifecycle environments list page, select the name of the lifecycle. If you need help finding the list page, see Listing Lifecycle Environments.
    2. Under Resources, select Instances.
    3. Under List scope, select the compartment that contains the instance.
    4. Select the instances you want to detach.
    5. Select Detach.
  • Use the oci os-management-hub lifecycle-stage detach-managed-instance command and required parameters to detach a managed instance from a lifecycle stage.

    oci os-management-hub lifecycle-stage detach-managed-instance --stage-id ocid --managed-instance-details instance.json [OPTIONS]

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

  • Run the DetachManagedInstancesFromLifecycleStage operation to detach a managed instance from a lifecycle stage.