Does anyone know of some way to verify if a given vCenter migration task (shared nothing, new Cluster/DSC on same vCenter - appears to be a ApplyStorageDrsRecommendation_Task
) is actually associated with a specific VM?
We're doing a bulk migration with multiple threads and I want to do a quick check of a VM to ensure there aren't any other active tasks operating on the VM before I start its migration. I can obviously check for direct VM tasks like reconfigure tasks. However, the migrations we're doing create migration tasks which are associated with the DatastoreCluster rather than the VM - making it difficult to identify what VM is associated with a particular migration task.
I've done some testing and can manually fetch an active migration task. However, I'm struggling to find any properties that I can use to tie it back to the VM.
If tasks aren't the way to go, I'm willing to look elsewhere. Bottom line: I'm trying to confirm whether there are any active tasks being carried out on a given VM. I've been focused on looking at active tasks and associate with the VM in question. But I'm open to alternative approaches. I'm just not sure where to look to determine if the VM is actively engaged with another task at the moment (outside of simple VM tasks like ReconfigureVM_Task
or similar).
Any help would be appreciated.