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.

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

    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. Under Resources, click Instances.
    5. Under List scope, select the compartment that contains the instance.
    6. Select the instances you want to detach.
    7. Click 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.