Add-Dba-Ag-Database - Added fix for named instances (#5809)
Add-Dba-Ag-Database - Added fix for named instances (#5809)

* Added fix for named instances

$SecondaryInstance.netname wasn't the correct AG replica name

* formatting

* add linux support

wsmelton/dbatools,kozloski/dbatools,Splaxi/dbatools