Hi guys,
I'm currently working on a workflow for provisioning new ESXi hosts from the scratch. Unfortunately I stuck on assigning new VMWare license to a host. I wanted to do this with a below scripting element:
Input:
Host (VC: HostSystem)
License (String)
Code:
Host.configManager.licenseManager.licenseAssignmentManager.updateAssignedLicense(Host.id, License, null);
Unfortunately this returns an error stating licenseManager is null.
Does anyone know how to define new licenseManager on the host or assign a license in some other way?
Thanks,
Kamil