Does anyone know how to create a Distributed Application (DA) or what class I should use to create a DA that contains the datastore a particular VM is sitting on?
I’m using the Veeam MP and when I look at the VM, I can see that it has a related parent that represents the datastore. When I look at the datastore, I can see the child relationship that is the VM.
Short version, I wanted the DA to include whatever datastore is related to the Virtual Machine. So if the VM is migrated to a different datastore, the correct object will appear in the DA, thus maintaining monitoring for the new datastore automatically.
Here’s an image of the relationship: