I would like to seek advise how to backup VMs under vApp or what command should I use to call all the VMs under vApp and get the script create a backup job automatically. I'm able to add the vApp using Gui, but i need to automate the creation of backup job using script.
Just to make it simple, is there a way to get the VMs name under VirtualApplication group in a Folder?
Currently i'm using this script but not showing VMs under VApp.
Find-VBRObject -Server $VBRserverVC | ?{$_.VMFolder -eq "group-vxxx"} | Select Name
As it says when you run it, Find-VBRObject is obsolete and has been for some time. Instead you should be using Find-VBRViEntity which is capable of finding vCenter objects including vApps which you can then add to the job with Add-VBRViJobObject something like this: