Afaik there is no PowerCLI cmdlet to do this, but have a look at the ovftool, which you can call from within a PowerShell script.Blog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz1 person found this helpful
To further clarify, you can export a vApp to an OVF file like this
Get-vApp -Name MyvApp | Export-vApp -Destination "C:\Folder"
But getting your VM inside a vApp with PowerCLI is not straightforward.Blog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
Thanks for the response, I downloaded and installed the tool, I'm looking online to see how to use it. These are ESXi boxes btw.
Actually, it is not hard to move a VM inside a VApp. Here's how:
Get-VM vm_name | Move-VM -Destination vapp_name
After that, you can export the VApp. Hope this helps..
Didn't know that one, good to know.
You should update the help for the Move-VM cmdlet :-)Blog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
Thanks, I appreciate the help. Unfortunately we don't have a DRS license in the environment in which I need to export, so I can't even create a vApp. The manual way of exporting a VM as a .OVF seems so easy, you would think there would be a cmdlet for it. Maybe on the next version or update. Thanks for the help.