In VMware Aria Automation (formerly vRealize Automation), vSphere tags may be deleted unexpectedly from vCenter Server when a Virtual Machine (VM) is deleted. This issue specifically occurs when multiple vCenter Servers are configured in Enhanced Linked Mode (ELM).
Product: VMware Aria Automation (All Versions)
Infrastructure: vCenter Servers configured in Enhanced Linked Mode (ELM)
While the vSphere Adapter is designed to only delete a tag definition if it is no longer associated with any other object, the tagging API used by the adapter is limited to the scope of the specific vCenter Server being queried. In an ELM environment, the adapter cannot natively detect if a tag is still in use on a different, linked vCenter Server. As a result, if a VM is deleted and it was the last object using a specific tag on that vCenter, VMware Aria Automation may delete the tag definition entirely, even if other VMs in the linked environment are still using it.
The vCenter tagging API provides usage information only for the specific vCenter host where the API invocation occurs. To accurately determine if a tag is "in use" across an ELM setup, a client would need to invoke APIs across every linked vCenter. Currently, the VMware Aria Automation deletion function only queries the local vCenter before removing what it perceives to be a "stale" tag. This is corner case where the very first VM creation with a new TAG fails at certain level of the VM creation and hence cleanup is initiated.
A potential future update to the product is under consideration to utilize APIs that identify if a vCenter is linked. In such a scenario, VMware Aria Automation would skip the tag deletion process for linked vCenters while maintaining existing functionality for standalone instances.
As workaround, one of the following methods can be followed :
Steps to Remove Delete Tag Privilege: