Deploy a new virtual machine based on a snapshot of a powered-on VM

A useful PowerCLI code snippet if you want to deploy a new virtual machine (VM) based on a snapshot of a powered-on VM:

New-VM -Name <new_vm_name> -VM <name_of_VM_with_snapshot> -Datastore <LUN_to_deploy_new_VM> -VMHost <Host_where_to_deploy_new_VM> -clone -ReferenceSnapshot <display_name_of_the_open_snapshot>

 

 

Leave a Comment

Your email address will not be published.