This page was exported from Knowledge Base [ ]
Export date: Sun Aug 9 22:52:44 2020 / +0000 GMT

vRA 7.x custom property hostname not working

If you want to set the self generated Hostname during the Clone Event you must set so properties as follow:

The DnsName is optional, but Hostname and Name must be set


var machine = payload.get("machine");
virtualMachineAddOrUpdateProperties = new Properties ();

virtualMachineAddOrUpdateProperties.put('Name', Your_hostname);
virtualMachineAddOrUpdateProperties.put('Hostname', Your_hostname);
virtualMachineAddOrUpdateProperties.put('DnsName', Your_hostname);
Post date: 2018-08-29 14:49:05
Post date GMT: 2018-08-29 14:49:05
Post modified date: 2018-08-29 14:49:05
Post modified date GMT: 2018-08-29 14:49:05
Powered by [ Universal Post Manager ] plugin. HTML saving format developed by gVectors Team