I did it on 3 vCenters without issues. IIRC no services needed to be restarted or got restarted automatically, but I restarted the vCenter afterwards to be sure everything is clean.
You have to make sure your gateway VM is off, otherwise the vCenter will get reconnected after reboot!
if you have vSAN witness hosts in your vCenter, they don't get the OEM license key back automatically. You have to get the OEM key (cat /etc/vmware/vmware.lic) and set it again.
You have to manually assign licenses and clean up users, roles and permissions. I used this powershell code:
start https://$vc/ui/app/admin/licensing/licenses #assign vcenter license manually
get-vmhost -server $vc|set-vmhost -LicenseKey xxxx
Get-VIPermission -Server $vc|? Principal -match CloudServicesGateway|Remove-VIPermission
Get-VIRole -Server $vc|? Name -match CloudServicesGateway|Remove-VIRole -Server $vc
Get-VIPermission -Server $vc|Out-GridView #to check
start https://$vc/ui/app/admin/permissions #Filter and delete CloudServicesGateway permissions if any still there
start https://$vc/ui/app/admin/sso-users/users #Filter vsphere.local Users with CloudServicesGateway prefix and delete the user accounts
Original Message:
Sent: Jul 22, 2024 03:55 PM
From: JohnNWCU
Subject: Any disconnect their subscribed vCenter?
Has anyone ran the script to disconnect their subscribed vCenter from the cloud licensing?
Did you run into any unexpected issues? Host disconnects? Did any services require a restart?