Hi,
I have 5 VMs within a folder in vCenter which I would like to make some changes to. I have these VMs stored in an array called $vms. I also have a CSV file stored in $csvImport which is in the format: VM,NICNumber,NICType,MACAddress
The name values of the $vms are not the same as the name values in $csvImport.VM but will contain part of name. Ie. $vms = Prod - server1, $csvImport = server1
To make things a little more complicated, the CSV file does not hold as many VMs that are stored in $vms.
What I would like to do is loop through $csvImport.VM one by one and check if part of the name matches $vms. If it does, I want to make some changes to the VM, otherwise move onto the next in the CSV.