I know lots of people have asked a similar question, but I haven't figured out the best way to do this with our current setup.
We currently use a Clone workflow that takes a template in vCenter and then configures the VM based on that template. We want to be able to add up to six disks on 4 separate paravirtual SCSI controllers. The controllers are baked into the VM template, so the problem isn't creating the controllers. The problem is how do I get the integer into a variable which can be read by vRA and then used to direct the disk to be added to the correct controller.
Right now, when you want to add an additional disk, we ask for a disk label, disk capacity, and disk letter. Each of those properties is loaded as a custom property for each disk (disk1label, disk1size, etc.). I would like to be able to just add a property for "disk1controller" etc, and then have that translated to be the "VirtualMachine.Disk[*].DeviceID" in the machine payload. Is this possible?
I've attached the specific workflow we're working in.
Did you get any solution to this issue? We have a similar situation and looking for some help.
If this template always need to have the same disks you should modify it to keep it simple.
If this is going to be dynamic, please take a look at this: Add Disk and New SCSI Adapater - Samples - VMware {code}