ConvertVmToTemplate​Convert​Vm​To​Template

Convert a VM to a template.

A powered-off VM can be converted to a template. The source VM becomes unavailable as a VM, but its data is preserved. This template can then be used to deploy new VMs.

yaml
type: "io.kestra.plugin.ee.vmware.vcenter.ConvertVmToTemplate"

Convert a VM to a reusable template

yaml
id: convert_vm_to_template
namespace: company.team

tasks:
  - id: convertToTemplate
    type: io.kestra.plugin.ee.vmware.vcenter.ConvertVmToTemplate
    server: "vcenter.mycompany.com"
    username: "{{ secret('VMWARE_VCENTER_USERNAME') }}"
    password: "{{ secret('VMWARE_VCENTER_PASSWORD') }}"
    vmName: "vm-for-template"
Properties

The password for authentication.

The password used to authenticate with the VMware server.

The URL of the server.

The URL to connect to the VMwareserver. This is a FQDN or an IP address (eg: esxi.mycompany.com), so without any protocol nor port.

The username for authentication.

The username used to authenticate with the server. It could be something like '[email protected]' for vCenter or 'root' for ESXi.

The name of the VM to convert to a template.

Default 443

The port for the connection.

The port to connect to the server. Default is 443.

The path to the trust store file.

The path to the trust store file containing certificates for secure connections. If not provided, an empty keystore will be created and the connection will be insecure.