VMware Cloud Community
LuckyT
Contributor
Contributor

Need sample property file to send it to "Clone virtual machine from properties" workflow

Hi all,

Can anyone share sample property file to send it to "Clone virtual machine from properties" workflow?

Thanks in advance.

0 Kudos
3 Replies
ChristianWehner
VMware Employee
VMware Employee

Hi LuckyT,

vmFolder as VcVmFolder

vmName as string

vmSource as VcVirtualMachine

vmPowerOn as boolean

vmTemplate as boolean

vmDatastore as VcDatastore

vmHost as VcHostSystem

vmPool as VcResourcePool

nic1Network as VcNetwork

nic1DnsServerList as Array/string

nic1DnsDomain as string

nic1Dhcp as boolean

nic1Gateway as Array/string

nic1IpAddress as string

nic1MacAddress as string

nic1NetBIOS as VcCustomizationNetBIOSMode

nic1PrimaryWINS as string

nic1SecondaryWINS as string

nic1SubnetMask as string

Only on Windows:

winDoSysprep as boolean

winClientName as string

winProductId as string

winJoinWorkgroup as string

winDomainAdmin as Credential

winLicenseMode as VcCustomizationLicenseDataMode

winLicenseUsers as number

winNewAdminPassword as string

winTimezone as Enums:MSTimeZone

winFullName as string

winOrgName as string

isWindows as boolean

Only on Linux:

linDoSysprep as boolean

linClientName as string

Regards,

Chris

0 Kudos
LuckyT
Contributor
Contributor

Thanks, can you tell me how do i pass these properties?

0 Kudos
ChristianWehner
VMware Employee
VMware Employee

Of course:

var myProperties = new Properties() ;

myProperties.put( "string", Object );

So for vmFolder as VcVmFolder its:


var myProperties = new Properties() ;

myProperties.put( "vmFolder", myVcVmFolder );

But var myVcVmFolder first has to be defined as VcVmFolder Object.

Regards

0 Kudos