My requirement is to create multiple vm from template and perform pre and post activity.
It should take vm name and IP from pool and other data will be static like cpu, memory, hard disk . Also in place of hostname I need to point to cluster name and for storage I want to set condition saying build vm if datastore has >20% space availability.
Post activity script required to
join server in domain
install antivirus client , monitoring agent and some more components.
Is there a question with this?
there are workflows in the library that deploy new VMs from a template. Just wrap them into a loop.
Some example that should get you started: https://www.virtualiseme.net.au/index.php/learning-vco-part-1-bulk-vm-creation-by-csv/
Also check the vRO videos on youtube: Automating with vRO - Part 20 - Looping - Overview - YouTube