The license key that you assigned through a direct connection with the vSphere Client to an ESXi host changes.
You use the vSphere Client to connect directly to an ESXi host. You use the operation to assign a license key to the host. Later, a different license key replaces the license key you assigned to the host.
If a vCenter Server system manages an ESXi host, changes made to the host license through direct connection to the host do not persist, because the license key assigned through vCenter Server overwrites the changes.
If you use theoperation, any license assignment operation that you perform in vCenter Server overrides the host license configuration.
If you use vCenter Server to manage the host, use either the interface or the Add Host operation to configure host licensing.