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);


hferch has written 76 articles

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">