vmware / pyvmomi-community-samples

A place for community contributed samples for the pyVmomi library.
Apache License 2.0
1.01k stars 922 forks source link

Create convert_template.py #701

Closed mestredelpino closed 2 years ago

mestredelpino commented 2 years ago

I would like to add "convert_template.py" as a new sample. This code converts a VM into a template and viceversa (by providing it a cluster name, which will be used as a resource pool).

The code will also power off the VM before converting it into a template