Detaching an Instance from a Lifecycle Environment

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

    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.