I am writing a PowerShell script to clone existing hyper-v VMs/ create new VMs based on a template. Where ever I look the cmdlets Export-VM
and Import-VM
are used. However the cmdlet New-VM
has the option to use an existing VHD aswell. Wouldn't just copying the VHD and creating a New-VM
be easier? It's just 1 file instead of VHD + Virtual Machine Folder + setting a new Snapshot folder. (The Template has no Snapshots)
What are the advantages of using Import-VM
over New-VM
? Are there any or is this primary opinion based?