This is a sample vCenter Orchestrator workflow that allows you to set either the disk share and/or IOP limits for a given Virtual Machine virtual disk (VMDK).
For more details, please visit this blog article: http://blogs.vmware.com/vsphere/?p=8086
Disclaimer: These script are provided for informational/educational purposes only. It should be thoroughly tested before attempting to use in a production environment.
The workflow accepts the following parameters:
vm = Vitual Machine
diskNumber = The Hard Disk display number as seen in VM Configuration (e.g. Hard disk 1)
share = VM Disk share value for the virtual disk
limit = the IOP limit value
Here is a screenshot of sample workflow execution and parameters: