I suggest you read this:
Microsoft SQL 2012 roles - alert when roles move from one node to another with powershell
WW-6729
371
Reputation points
Hello!
Is it somehow possible to get an alert when roles move from one sql node to another with powershell? I'm trying to do something like this:
Get-ClusterGroup and from that result (Name, OwnerNode, State) get an email alert when one of roles changes OwnerNode?
I'm starter with powershell so bear with me :)
Thank you!
Best regards!