VMware {code} Community
ISYS2
Enthusiast
Enthusiast
Jump to solution

CloneVM method in SDK

Hello I am trying to write an app that will allow me to discover all the templates in my Virtual Center and then allow me to deploy VMs from the one I choose.

I can discover the Templates no problem but I am having trouble with the CloneVM method - basically I don't understand what the SDK reference is getting at ?:|

Could someone write out an example line in VB.NET or C# so I can get going again please.

Many thanks

Reply
0 Kudos
1 Solution

Accepted Solutions
admin
Immortal
Immortal
Jump to solution

Find the CloneVM.cs, C# sample as an attachment, which clone a virtual machine from a template. I hope this would help you.

View solution in original post

Reply
0 Kudos
3 Replies
admin
Immortal
Immortal
Jump to solution

Find the CloneVM.cs, C# sample as an attachment, which clone a virtual machine from a template. I hope this would help you.

Reply
0 Kudos
ISYS2
Enthusiast
Enthusiast
Jump to solution

Many thanks for this - I think the proplem I was having was returning the Managed Object Reference of the Template so that I could use it in the CloneVM_Task.

All is working now. Brilliant! :smileygrin:

I am writing my App in VB.NET - when I have finished I will post it back here.

Regards

Reply
0 Kudos
eldadc
Contributor
Contributor
Jump to solution

Hi,

I know the post few years ago but can you please post your app as you promised.

Thanks

Reply
0 Kudos