I'm trying to run a powercli script that, among other things, is trying to get a list of all cloned VMs. One important piece of data in this is what was the original source of that clone. I'm struggling to find that data.
Whether I run Get-VIEvent and find clone events or run a $filter.Type = "VmClonedEvent" and $events = $em.QueryEvents($filter), I get an object of type "VmClonedEvent" that, while having a SourceVm property, seems to be self-referencing (perhaps the source of the Event) but doesn't refer to the original source VM of the clone.
Can someone let me know if getting that information is possible and if so where I can find it?
Any help would be appreciated.
Thank you.