migrate custom attributes between vcenter servers

dedri
dedri used Ask the Experts™
on
I am migrating hosts and virtual machines between vcenter servers. I need to migrate also annotations(custom attributes).
I tried to use this script https://www.haigmail.com/2011/09/27/how-to-copy-custom-attributes-when-migrating-vmware-vcenter-to-new-database/
Export scripts is working, but when I try to import i receive an error message, after execution powercli gives an error message saying Set-CustomField is obsolete.

Could you provide me with a solution how to migrate custom fields between vcenter servers
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
VMware Engineer | vExpert 18/19
Distinguished Expert 2018
Commented:
Hello,

I believe Set-CustomField is obsolete however you can try with Set-Annotation

Use the below link which has the script with Set-Annotation and let us know if that works?

http://virtualworlduk.co.uk/vsphere-custom-attributes-powercli/

The same suggestion is discussed here https://communities.vmware.com/thread/571888

Thanks,
Murali

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial