If the Cloud Proxy is available in Aria/vRealize Operations Product UI, remove it from Product UI first:
When the Cloud Proxy only appears in Admin UI, it must be removed using API call, the below command will prompt for Aria/vRealize Operations admin password:
curl --insecure 'https://<VROPS_IP>/casa/onprem/v1/cloudproxy/remove' -i -u 'admin' -X DELETE -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"cloud_proxy_uuid":"<INVALID-UUID>"}'
Replace <VROPS_IP> with IP Address of Aria/vRealize Operations primary node
Replace <INVALID-UUID> with UUID found as determined with the below steps:
sed -nre "/CLOUD_PROXIES/ s/^[^']+'([^']+)','([^']+)'.*/\2/p" /storage/db/casa/webapp/hsqldb/casa.db.script | python -m json.tool > /tmp/cloud_proxies
Use the following command to review the output of the previous command:
less /tmp/cloud_proxies
UUID will be in the following format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
NOTE! Do not modify casa.db.script file, this is not straight forward, and beyond the scope of this KB. The API call must be used to ensure safe removal of Cloud Proxy
curl --insecure 'https://192.168.0.0/casa/onprem/v1/cloudproxy/remove' -i -u 'admin' -X DELETE -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"cloud_proxy_uuid":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}'