Hi,
Yes, this is possible, but not directly through vCenter’s built-in alarms. vCenter doesn’t trigger an alarm just for a DRS recommendation it only generates alerts when there’s an actual issue, like a VM placement failure. Since your DRS is set to "Partial," vCenter is simply suggesting an action rather than enforcing it, which is why no alarm is being triggered.
To work around this, you can use PowerCLI to periodically check for DRS recommendations and send an email when vCenter suggests separating VM1 and VM2. The Get-DrsRecommendation
command allows you to detect when vCenter recommends a migration based on your affinity rule. You can then configure a scheduled task to run this script at regular intervals and send an email if a recommendation is found.