This is a known issue affecting vRealize Automation 7.0 through 7.4.
This issue is resolved in vRealize Automation 7.5. Endpoints can be deleted from the user interface if the machines and reservations have been removed from management.
Workaround:
As a workaround, remove an endpoint from VMware vRealize Automation 7.0 - 7.4 versions, use the Cloud Client tool:
To remove the endpoint:
- Download and install the appropriate version of CloudClient tool based on your vRA version.
- Delete the hosts and compute resources that are not associated with any active Fabric groups or reservations.
Note: This procedure will not remove any resources from vRealize Automation that are actively in use.
Procedure:
- Ensure that there are no managed VMs on the endpoint that is to be deleted.
- Delete all reservations for the endpoint that needs to be deleted.
- Go to the Infrastructure > Endpoints > Fabric Groups page and remove all compute resources associated with this endpoint from all fabric groups.
- Log in to cloud client:
CloudClient>vra login userpass --server <enter server name e.g., vra.corp.local> --tenant <enter tenant name> --user <enter username> --password <enter password> --promptForIaasCreds yes
- Enter IaaS credentials.
- List the inactive Compute Resources by running the command:
CloudClient>vra computeresource inactive list
- Confirm that the compute resources that are listed are no longer in use as these will be removed from vRA.
- Stop all vSphere agent services even for endpoints that are being used.
- Remove the inactive Compute Resources by running the command:
CloudClient>vra computeresource inactive remove
- The endpoint can now be removed in the UI or use the Cloud Client to remove the endpoint as follows:
CloudClient>vra endpoint list
Find the id of the endpoint to be deleted. Then execute the following command:
CloudClient>vra endpoint remove --id <endpoint id>
- Restart the vSphere agents. The vSphere agents associated with the endpoints that have been removed can remain or be uninstalled.