As part of a product upgrade, company acquisition, or corporate merger, it may be necessary to update the fully qualified domain names (FQDNs) of vCenters to align with new naming conventions or organizational policies.
When vCenter FQDNs are changed, it is essential to follow the correct procedure and remediate all components within the VMware Cloud Foundation (VCF) suite to reflect the updated FQDNs—for vCenters deployed as part of workload domains.
⚠️ Changing the vCenter FQDN solely via the vCenter Virtual Appliance Management Interface (VAMI) — without performing remediation steps in SDDC Manager (SDDC-M) and NSX — can result in unpredictable behavior and workflow failures within SDDC Manager.
VMware Cloud Foundation 9.1
Pre-Requisites
Remediate vCenter FQDN change in SDDC Manager.
SDDC Manager remediation must be performed using an API-based approach.
accessToken=$(curl -sk https://<sddc-manager-fqdn>/v1/tokens -H 'Content-Type: application/json' -X POST -d '{ "username":"<sso-username>", "password":"<sso-password>"}' | jq -r .accessToken)accessToken=$(curl -sk https://<sddc-manager-fqdn>/v1/tokens -H 'Content-Type: application/json' -X POST -d '{ "username":"admin@local", "password":"<account-password>"}' | jq -r .accessToken)
curl -k -X GET 'https://<sddc-manager-fqdn>/v1/vcenters' -H 'Content-Type: application/json' -H "Authorization: Bearer $accessToken" | jq
openssl s_client -connect <new-vcenter-fqdn>:443 </dev/null 2>/dev/null | openssl x509 -noout -fingerprint -sha256XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XXcurl -ks -X PATCH 'https://<sddc-manager-fqdn>/v1/vcenters/<vcenter-id>/fqdn' \-H 'Content-Type: application/json' \-H "Authorization: Bearer $accessToken" \-d '{"newFqdn": "<vcenter-fqdn>","tlsThumbprint": "<Ex: XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX>","adminSsoUsername": "<adminSsoUsername>","adminSsoPassword": "<adminSsoPassword>"}' | jq
This will start an async task to complete the remediation.curl -ks localhost/v1/tasks/<task-id> -H "Authorization: Bearer $accessToken" | jq/opt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.shSDDC Manager UI should be accessible after the services are restarted.