You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context "Testing to see if Query Store is enabled on <_.Name>" {
200
+
It "Database <_.Name> should have Query Store enabled on <_.SqlInstance>"-Skip:$skip-ForEach $psitem.Databases.Where{ if ($Database) { $_.Name-in$Database } else { $psitem.ConfigValues.qsenabledexclude-notcontains$PsItem.Name } } {
201
+
$psitem.QueryStoreEnabled| Should -Not-BeIn ('OFF','ERROR') -Because "We expect the Query Store to be enabled"
Set-PSFConfig-Module dbachecks -Name policy.database.status.excludereadonly -Value @() -Initialize -Description "Database names that we expect to be readonly"
162
162
Set-PSFConfig-Module dbachecks -Name policy.database.status.excludeoffline -Value @() -Initialize -Description "Database names that we expect to be offline"
163
163
Set-PSFConfig-Module dbachecks -Name policy.database.status.excluderestoring -Value @() -Initialize -Description "Database names that we expect to be restoring"
164
-
Set-PSFConfig-Module dbachecks -Name database.querystoreenabled.excludedb -Value @() -Initialize -Description "A List of databases that we do not want to check for Query Store enabled"
164
+
Set-PSFConfig-Module dbachecks -Name database.querystoreenabled.excludedb -Value @('model','tempdb','master') -Initialize -Description "A List of databases that we do not want to check for Query Store enabled"
165
165
Set-PSFConfig-Module dbachecks -Name database.querystoredisabled.excludedb -Value @() -Initialize -Description "A List of databases that we do not want to check for Query Store disabled"
166
166
Set-PSFConfig-Module dbachecks -Name policy.database.filegrowthdaystocheck -Value $null-Initialize -Description "The number of days to go back to check for growth events"
167
167
Set-PSFConfig-Module dbachecks -Name policy.database.trustworthyexcludedb -Value @('msdb') -Initialize -Description "A List of databases that we do not want to check for Trustworthy being on"
#AsymmetricKeySize = if ($asymmetrickey) { $psitem.AsymmetricKeys.KeyLength } # doing this I got $null if there wasn't a key so counting ones that are too short
0 commit comments