I have a script that is being utilized for VM Migrations from one domain to another (not ELM)
There are 2 source VCSA's call it VCSA-A and VCSA-B
There is 1 target VCSA call it VCSA-C
I have one move-VM command that moves a VM from VCSA-A to VCSA-C
I have another move-VM command that gets filled with a folder name from a variable from VCSA-A VM folder name. The issue is the target VCSA is a merge of 2 different source VCSA's so the folder structure is built in a way where there are 2 or more folders with the same name.
EG. VCSA-A/Folder1 and VCSA-B/Folder1 both in VCSA-C. Folder1 is a "duplicate".
Normally if its just a unique folder move-vm will work fine, but with 2 folders with the same name under different parents is there a way to tell the move-vm cmdlet to specify a folder structure instead of just a folder?
Thanks!