When undeploying VMware HCX from VMware Cloud on AWS, users may encounter a "Deactivation failed" error during the undeployment process. This error specifically occurs during the deactivation stage of the undeployment workflow when service mesh & other HCX connections are still present in the environment. The error prevents the completion of the HCX undeployment process and can leave the deployment in a partially removed state.
Below is a screenshot of this error
The "Deactivation failed" error occurs due to one or more of the following conditions:
Follow these steps to resolve the HCX deactivation failure
Note: Following the proper undeployment sequence as documented in the VMware HCX Guide below is crucial for preventing this issue. Always ensure all dependencies are removed in the correct order before attempting to undeploy HCX.
See this article for more information - Uninstalling HCX in VMware Cloud on AWS Deployments