dbatools is a free PowerShell module with over 180 SQL Server administration, best practice and migration commands included.

This function is not currently available.

It’s on my list and appears pretty straight forward.


From PowerShell, execute Get-Help Copy-SqlAvailabilityGroup -Detailed for more information on this function.

Source Code

Want to see the source code? View Copy-SqlAvailabilityGroup.ps1 on GitHub

Related commands