VMware Cloud Community
vmwaredownload
Enthusiast
Enthusiast

Storage vMotion to a defined folder

Move-VM - vSphere PowerCLI Cmdlets Reference

Hi, I am looking for a way to svmotion a VMDK file to a specific folder on the datastore. Is this possible with powercli?

E.g., for every VM in this resource pool, svmotion disk 3 to 'datastore02\folder'

Thanks

0 Kudos
1 Reply
LucD
Leadership
Leadership

The Move-VM cmdlet currently doesn't allow you to specify a destination per VMDK.

But you can use the underlying RelocateVM_Task method directly.

See also   Re: Move-VM Functionality Question


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos