Join database to SQL Server Availability Group with PowerShell

The customer for whom I am working, need that I check all SQL Server Instances (about 40) for a database that is not joined in the availability group (AG). I am a little bit lazy to do that manually, so I decide to write a PowerShell. Of course, I am using dbatools (thanks to allContinue reading “Join database to SQL Server Availability Group with PowerShell”