VMware : Service Dialog placement


I want to create VMs through dialogues. I managed to create this one which works.

However I miss some options that I can’t integrate.

How can I assign tags to the VMs I create (by dropdown list for example) ? And which will then be displayed on the vCenter at this location.

Also how can I get drop down lists of datastores, resources pool etc?
I found some scripts on the internet in .rb but none of them work.

I thank you in advance for your help.

These are probably easier to get and display using an expression method rather than Ruby (see Expression Methods - Mastering Automation Addendum for CloudForms 4.6 a).

You can a assign a tag from a service dialog, but I’m not sure that it will show in vCenter (I think that MIQ and VMware tags are different).