I need to add an additional disk to a request based on criteria. I have been trying to use the OOTB WF, Add Disk. I figured this would be fairly straight forward but I am running into some issues. It requires an object called datastore (VC:datastore) and diskMode (VC:VirtualDiskMode). I was able to get the datastore from the VM object but I am having a hard time finding the VirtualDiskMode object. Does anyone know of a good way to set the value to persistent and convert it to the VC:VirtualDiskMode type?
Thanks