Skip to content

Commit 1d60c49

Browse files
Fix typo in Test-DbaAvailabilityGroup -HealthCheck parameter
Corrected AvailabilityDateabaseId to AvailabilityDatabaseId on line 139. This typo prevented database replica states from being matched, causing all -HealthCheck integration tests to fail. Co-authored-by: Chrissy LeMaire <potatoqualitee@users.noreply.github.com>
1 parent 8994670 commit 1d60c49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/Test-DbaAvailabilityGroup.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function Test-DbaAvailabilityGroup {
136136
$replicaStates = $ag.DatabaseReplicaStates | Where-Object AvailabilityReplicaId -eq $replicaId
137137

138138
foreach ($db in $ag.AvailabilityDatabases) {
139-
$databaseReplicaState = $replicaStates | Where-Object AvailabilityDateabaseId -eq $db.UniqueId
139+
$databaseReplicaState = $replicaStates | Where-Object AvailabilityDatabaseId -eq $db.UniqueId
140140
if ($null -eq $databaseReplicaState) {
141141
continue
142142
}

0 commit comments

Comments
 (0)