Get-DbaAgDatabaseReplicaState
Andreas Jordan (@andreasjordan)
Get-DbaAgDatabaseReplicaState View Source Andreas Jordan (@andreasjordan) Windows, Linux, macOS Synopsis Retrieves the runtime state of databases participating in availability groups across all replicas. Description Retrieves comprehensive health monitoring information about databases participating in SQL Server availability groups, similar to the SSMS AG Dashboard. This function returns detailed database replica state information for all replicas in the availability group. The class Microsoft.SqlServer.Management.Smo.DatabaseReplicaState represents the runtime state of a database that’s participating in an availability group.
Read more
dbatools