Start off by saying I am new to vOrch and JavaScript (JS). I am trying to build a custom workflow in vOrch 5.1 that will take in parameters and inputs to spit out a Windows 2008R2 vm. I will be using a template. I have been able to find samples on this forum to help me with some of my challenges, but still require much to get this going. 1. Creating newVM in existing folder. Our folder naming convention/tree is as such: basefolder-->Op Environment-->OS-->business area-->service identifier The basefolder, Op Environment, OS, and service identifier for this initial version will be hardcoded/parameters. I need to be able to pass BA business area as an input. For example: xyz --> Prod --> Windows --> EFG --> cmp-win-uyt xyz --> Prod --> Windows --> HJK --> cmp-win-uyt How do I assign the newVM to the appropriate folder? 2. datastores (DS) - select next free datastore. I found this entries to help with this : https://communities.vmware.com/docs/DOC-14684https://communities.vmware.com/thread/486673 I would like to automatically build the DS Array by providing let's say a Cluster resource and have the script/action use that as the starting point. Also I need to be able to limit the DS by using some type of regex. We use a DS naming convention such that we differentiate business areas and swap DataStores. So if I can pass the task a value of vm__vmtb_*win* or something similar that could further limit the search return values. Appreciate any help.
↧