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.
- Open the navigation menu and click Observability & Management. Under OS Management Hub, click Lifecycle environments.
- Under List scope, select the compartment that contains the lifecycle environment you're interested in.
- Click the name of the lifecycle environment.
- Under Resources, click Instances.
- Under List scope, select the compartment that contains the instance.
- Select the instances you want to detach.
- 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.