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