VMware Cloud Community
sevseev
Contributor
Contributor

PowerCLI

Hi

I want to write a script to download a virtual machine from the cloud. To do this I need to run the "Move to..." command but I could not find a PowerCLI command to perform this operation. Can you tell me which command can perform this operation

0 Kudos
1 Reply
moellerjot
Enthusiast
Enthusiast

Hi, 

you can do a Move in vCD via API (Version 10.2) e.g.: 
https://developer.vmware.com/apis/1159/vmware-cloud-director/doc/doc//types/CopyOrMoveCatalogItemPar... 

If you want to download the virtual machine there is a way to do this via powershell: (poweredOff)

Get-VM -Name MyTest-VM | Export-VApp -Destination ‘/data/export‘ -Format OVA
https://developer.vmware.com/docs/powercli/latest/vmware.vimautomation.core/commands/export-vapp/#Ex...

Is this what you are looking for? 

Best Regards 

moellerj

 

0 Kudos