When integrating VMware HCX 9.x with a VMware Cloud Foundation (VCF) environment, you may experience the following symptoms:
/common/logs/admin/app.log on the HCX Manager, you observe the following error:ERROR c.v.v.h.s.l.DiscoverVCLicenseJob- Error in obtaining license for VCenter, config: {"url":"https://<VC-FQDN>","userName":"<service-account>"}
java.lang.RuntimeException: Failed to get vcenter license expiry details.VCF Operations HCX 9.x
This issue occurs if the user account (service account) used to register the vCenter Server within HCX does not have sufficient permissions to query licensing information from the vCenter. Specifically, if the account is not a member of the vCenter Administrators group, the DiscoverVCLicenseJob fails to retrieve the license expiry and entitlement details, causing the licensing sync to fail.
To resolve this issue, ensure the account used for HCX to vCenter registration has the appropriate administrative privileges: