Create VM Template (VMware)
This object clones a VMware virtual machine into a template.
Before using this VMware Automation Manager Object, you must install the PowerShell module VMware.PowerCLI.
This VMware Automation Object runs on 64-bit PowerShell, and the module must also be added to 64-bit PowerShell.
Before using this VMware Automation Manager Object, you must install PowerShell 5.0.
Input Parameters
Name | Type | Required | Description |
---|---|---|---|
Session ID | String | Yes | This is the session ID that is generated by the VMware connection object. This is required for this object to work. |
VM Name | String | Yes | The name of the VMware virtual machine to be used as the source to create the template. |
Template Name | String | Yes | The name of the template to be created. If a template with that name already exists, execution of the policy created with this object will fail. |
Datastore Name | String | Yes | The name of the datastore on which the template will be created. |
Template Location Folder Name | String | Yes | The name of the location where the template will be saved. This must be a datacenter or host name. |
Output Parameters
Name | Type | Description |
---|---|---|
Result | Number | Returns a success value of zero or any value other than zero to indicate failure. |
Result String | String | Object execution error details. |
Example Input Parameters
Name | Type | Required | Example |
---|---|---|---|
Session ID | String | Yes | "ab4c55c1273cb609678a2bb6a15104e927ac8dec", 10.199.2.23 |
VM Name | String | Yes | Vmone |
Template Name | String | Yes | Srv2016template |
Datastore Name | String | Yes | Esx-datastore-1 |
Template Location Folder Name | String | Yes | Tokyo |