VMware OVF Tool is a command-line utility that can import and export Open Virtualization Format (OVF) packages to and from many VMware products.
This tool can be used to deploy OVF/OVA packages instead of vSphere GUI, where OVF deploy sometimes just don’t work and is pain to troubleshoot, since it is web browser based. I was missing in OVF documentation example how to deploy virtual machine to specific folder and resource pool. This is important, when you have rights assigned just to specific resource pool and vmFolder.
"C:\Program Files\VMware\VMware OVF Tool\ovftool.exe" ^ --datastore=Datastore1 --diskMode=thin --network="dvPortGroup1" --name=example_vm ^ --vmFolder="Lab/Linux/Test Folder" ^ source_virtual_machine.ovf ^ "vi://firstname.lastname@example.org/DATACENTER_NAME/host/CLUSTER_NAME/Resources/TOP_RESOURCE_POOL/SUB_RESOURCE_POOL"
This is example, which will deploy source_virtual_machine.ovf to virtual machine named example_vm in VMFolder path Lab/Linux/Test Folder and into sub resource pool TOP_RESOURCE_POOL/SUB_RESOURCE_POOL which resided under cluster CLUSTER_NAME
Note: ^ character is only used for multi-line input in cmd (pretty formatting). Command can be in one line, without ^