Import VM

This Automation Manager object imports a virtual machine from a file.

Input Parameters

Name Type Required Description
VM Name String Yes Name of the virtual machine to be imported.
VM File Path String Yes Location of the virtual machine's XML configuration file.
VHD Path String Yes Path of the virtual machine VHD.
Snapshot Path String Yes Path to store the snapshots for the virtual machine.
Smart Paging Path String Yes Path to store the smart paging files.

Output Parameters

Name Type Description
Result Number Returns a success value of zero or any value other than zero to indicate failure.

Example Input Parameters

Name Type Required Example
VM Name String Yes Guest001
VM File Path String No C:\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines\C640D868-6AAE-4FBD-8543-E934F086C73B.xml
Clone Boolean Yes True/False
VHD Path String No c:\vhdpath
Snapshot Path String No c:\snapshot
Smart Paging File Path String No C:\spfilepath