I hadn't seen this posted anywhere so hopefully it can help someone. This code set will allow you to take in an array of disk objects and create and attach the disks to a VM during deployment.
GitHub - pgsmith123/vRA8.1