In my Azure role I want to mount a VHD - roughly have an equivalent of the following diskpart
commands:
vdisk select VhdFilePath
vdisk attach
This answer explains how to create a script and then programmatically invoke it from C#.
Is there a way to achieve the same without a script - just with some .NET classes?