After a lot of sifting through solutions found online and trying them out, I found the following:
Attaching a VHD To A VM Using The Hyper-V WMI V2 Namespace – Taylor Brown's Blog[
^]
It is written for PowerShell, but it shows exactly how to allocate the resources. The issue I see with the previous solution was that for the second resource (VHD), the path to the VHD was applied to the
Connection property, when it should have been applied to the
HostResource property.
From what I can tell, the Connection property is for resources that are local to the virtual machine, whereas the HostResource property is for resources that are on the Host system that is to be referenced by the virtual machine.