When performing a VMware Cloud Foundation (VCF) 9.1 upgrade precheck, the operation fails with the following error message:
Error: Service Account not found for communication between SDDC Manager and vCenter
Running the following command on the target vCenter Server via SSH reveals that the service account svc-xxxx-xxxxx-xxxxxx-xxx-xxxx is missing from the dedicated service account list, despite being visible as an active account under standard vCenter Single Sign-On (SSO) user management and SDDC Manager password management:
/usr/lib/vmware-vmafd/bin/dir-cli svcaccount list
VMware Cloud Foundation (VCF) 9.x
During a prior remediation attempt for a disconnected credential state, the service account svc-xxxx-xxxxx-xxxxxx-xxx-xxxx was deleted and manually recreated as a standard SSO User account from the vCenter UI (Administrator > Single Sign On > Users and Groups) rather than as a dedicated SSO Service Account using dir-cli svcaccount create.
svc-xxxx-xxxxx-xxxxxx-xxx-xxxx user account.vcf and switch to root su -
TOKEN=$(curl -d '{"username" : "[email protected]", "password" : "<ADMIN_PASSWORD>"}' -H "Content-Type: application/json" -X POST http://127.0.0.1/v1/tokens | jq -r '.accessToken')
curl -k -X GET -H "Authorization: Bearer $TOKEN" --insecure 'https://localhost/v1/system/credentials/service' | jqSecret value assigned to svc-xxxx-xxxxx-xxxxxx-xxx-xxxx./usr/lib/vmware-vmafd/bin/dir-cli svcaccount create --name svc-xxxx-xxxxx-xxxxxx-xxx-xxxx/usr/lib/vmware-vmafd/bin/dir-cli password change --account svc-xxxx-xxxxx-xxxxxx-xxx-xxxx/usr/lib/vmware-vmafd/bin/dir-cli group modify --name Administrators --add svc-xxxx-xxxxx-xxxxxx-xxx-xxxx/usr/lib/vmware-vmafd/bin/dir-cli group modify --name CAAdmins --add svc-xxxx-xxxxx-xxxxxx-xxx-xxxx/usr/lib/vmware-vmafd/bin/dir-cli group modify --name SystemConfiguration.BashShellAdministrators --add svc-xxxx-xxxxx-xxxxxx-xxx-xxxx /usr/lib/vmware-vmafd/bin/dir-cli svcaccount list command