I'm looking for a way to attach VHD(x) files as data disks to Hyper-V VMs with DSC. I have a DSC configuration to create the VM with the xVMHyperv resource and to create the VHD(x) files with the xVHD resource. But now how can I attach such a virtual hard disk file let's say to port 2 of SCSI controller 1 as a data disk within the DSC configuration?
I know there are cmdlets like Add-VMHardDiskDrive for this purpose. But how to do that in a DSC configuration? Are there any resource implementations out there? Or have I to write my own DSC resource for that?