Skip to content

Commit 0981394

Browse files
authored
Merge pull request #608 from msalexprotsenko/master
Added a new customization file with the work around for a reported issue
2 parents f1e503e + 1b839b4 commit 0981394

4 files changed

Lines changed: 26 additions & 1 deletion

File tree

samples/manage/sql-assessment-api/DisablingBuiltInChecks_sample.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@
99
"enabled": false
1010
}
1111
]
12-
}
12+
}
13+

samples/manage/sql-assessment-api/MakingCustomChecks_sample.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,4 @@
5858
]
5959
}
6060
}
61+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"checks":[
3+
{
4+
"id": "SqlServer.Database.QueryStoreOn",
5+
"target":{
6+
"type": "Database",
7+
"version": "[13.0,)",
8+
"platform": "Windows",
9+
"name": { "not": "/^(master|tempdb)$/" }
10+
}
11+
}
12+
]
13+
}

samples/manage/sql-assessment-api/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,13 @@ Demonstrates how to make a custom rule set containing two checks. The sample con
7070
]
7171
}
7272
```
73+
74+
## QueryStoreCheck_fix.json
75+
76+
Overrides the default ruleset to fix the rule "Query Store should be on." Query Store appeared in SQL Server 2016 but the rule checks for it starting with SQL Server 2014.
77+
78+
Here's an example of applying the fix to running the InvokeSqlAssessment cmdlet.
79+
80+
```PowerShell
81+
Get-SqlInstance -ServerInstance 'localhost' | Get-SqlDatabase | Invoke-SqlAssessment -configuration "C:\SQLAssessment\QueryStore_fix.json"
82+
```

0 commit comments

Comments
 (0)