Home
%3CLINGO-SUB%20id%3D%22lingo-sub-989677%22%20slang%3D%22en-US%22%3EReleased%3A%20SQL%20Assessment%20API%20(GA)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-989677%22%20slang%3D%22en-US%22%3E%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fsql%2Fsql-assessment-api%2Fsql-assessment-api-overview%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3ESQL%20Assessment%20API%3C%2FA%3E%20is%20a%20new%20mechanism%20to%20evaluate%20configuration%20of%20your%20SQL%20Server%20for%20best%20practices.%20The%20API%20methods%20are%20used%20by%20means%20of%20a%20SQL%20Server%20Management%20Object%20(SMO)%20extension%20and%20new%20cmdlets%20in%20SqlServer%20PowerShell%20module.%20API%20is%20delivered%20with%20a%20ruleset%20that%20is%20highly%20customizable%20and%20extensible.%20It%20can%20be%20used%20to%20assess%20SQL%20Server%20versions%202012%20and%20higher%2C%20both%20on%20Windows%20and%20Linux%2C%20as%20well%20as%20Azure%20SQL%20DB%20Managed%20Instance.%20More%20products%20will%20be%20supported%20in%20future%20releases.%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3ESQL%20Assessment%20API%20is%20shipped%20as%20part%20of%20%3CA%20href%3D%22https%3A%2F%2Fwww.powershellgallery.com%2Fpackages%2FSqlServer%2F21.1.18206%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3ESqlServer%20PowerShell%20module%3C%2FA%3E%20(21.1.18206)%20and%20%3CA%20href%3D%22https%3A%2F%2Fwww.nuget.org%2Fpackages%2FMicrosoft.SqlServer.SqlManagementObjects%2F150.18208.0%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3ESMO%20NuGet%20Package%3C%2FA%3E%20(150.18208.0).%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2014.0pt%3B%20color%3A%20%232e75b5%3B%22%20id%3D%22toc-hId-1852647484%22%20id%3D%22toc-hId-1852647539%22%3EHow%20to%20get%20started%3C%2FH2%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fsql-server-samples%2Fblob%2Fmaster%2Fsamples%2Fmanage%2Fsql-assessment-api%2FQuickStart.md%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EQuick%20Start%3C%2FA%3E%20page%20on%20our%20GitHub%20repo%20will%20have%20you%20running%20an%20assessment%20in%202%20simple%20steps.%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3EYou%20can%20also%20use%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fsql-server-samples%2Fblob%2Fmaster%2Fsamples%2Fmanage%2Fsql-assessment-api%2Fnotebooks%2FSQLAssessmentAPIQuickStartNotebook.ipynb%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EQuick%20Start%20notebook%3C%2FA%3E%20with%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsql%2Fazure-data-studio%2Fdownload%3Fview%3Dsql-server-ver15%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Data%20Studio%3C%2FA%3E.%3C%2FP%3E%0A%3CP%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20%23333333%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011pt%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%201.7142%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%20margin%3A%200in%3B%22%3EIt%20is%20as%20simple%20as%20this%20(use%20Azure%20Data%20Studio%2C%20Windows%20PowerShell%20ISE%2C%20or%20your%20favorite%20PS%20tool)%3A%3C%2FP%3E%0A%3CP%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20green%3B%20font-family%3A%20Consolas%3B%20font-size%3A%209pt%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%201.7142%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%20margin%3A%200in%200in%200in%200.375in%3B%22%3E%23%26nbsp%3BUncomment%26nbsp%3Band%26nbsp%3Brun%26nbsp%3BInstall-Module%26nbsp%3Bonly%26nbsp%3Bthe%26nbsp%3Bfirst%26nbsp%3Btime%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20green%3B%20font-family%3A%20Consolas%3B%20font-size%3A%209pt%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%201.7142%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%20margin%3A%200in%200in%200in%200.375in%3B%22%3E%23%26nbsp%3BInstall-Module%26nbsp%3B-Name%26nbsp%3BSqlServer%26nbsp%3B-AllowClobber%26nbsp%3B-Force%3C%2FP%3E%0A%3CP%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20%23333333%3B%20font-family%3A%20Consolas%3B%20font-size%3A%209pt%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%201.7142%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%20margin%3A%200in%200in%200in%200.375in%3B%22%3E%3CSPAN%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20%23795e26%3B%20font-family%3A%20%26amp%3Bquot%3B%22%3EImport-Module%3C%2FSPAN%3E%3CSPAN%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20%23212121%3B%20font-family%3A%20%26amp%3Bquot%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20black%3B%20font-family%3A%20%26amp%3Bquot%3B%22%3E-%3C%2FSPAN%3E%3CSPAN%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20%23212121%3B%20font-family%3A%20%26amp%3Bquot%3B%22%3EName%26nbsp%3BSqlServer%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20%23333333%3B%20font-family%3A%20Consolas%3B%20font-size%3A%209pt%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%201.7142%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%20margin%3A%200in%200in%200in%200.375in%3B%22%3E%3CSPAN%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20%23795e26%3B%20font-family%3A%20%26amp%3Bquot%3B%22%3EGet-SqlInstance%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20black%3B%20font-family%3A%20%26amp%3Bquot%3B%22%3E-%3C%2FSPAN%3E%3CSPAN%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20%23212121%3B%20font-family%3A%20%26amp%3Bquot%3B%22%3EServerInstance%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20%23a31515%3B%20font-family%3A%20%26amp%3Bquot%3B%22%3E'localhost'%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20black%3B%20font-family%3A%20%26amp%3Bquot%3B%22%3E%7C%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20%23795e26%3B%20font-family%3A%20%26amp%3Bquot%3B%22%3EInvoke-SqlAssessment%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F155404iE95659A4EB657268%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22InvokeSqlAssessmentResult2.png%22%20title%3D%22InvokeSqlAssessmentResult2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3EWhen%20you%20are%20ready%20to%20discover%20more%20about%20the%20API%2C%20please%20use%20the%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fsql-server-samples%2Ftree%2Fmaster%2Fsamples%2Fmanage%2Fsql-assessment-api%2Fnotebooks%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3ESQL%20Assessment%20API%20Tutorial%20notebook%3C%2FA%3E%20that%20walks%20you%20through%20a%20large%20set%20of%20examples%20including%20customization%20of%20rules.%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2014.0pt%3B%20color%3A%20%232e75b5%3B%22%20id%3D%22toc-hId--699509477%22%20id%3D%22toc-hId--699509422%22%3ERuleset%3C%2FH2%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3ERules%2C%20sometimes%20referred%20to%20as%20checks%2C%20are%20defined%20in%20JSON%20formatted%20files.%20You%20can%20see%20the%20full%20Microsoft%20ruleset%20on%20our%20GitHub%20repo%3A%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fsql-server-samples%2Fblob%2Fmaster%2Fsamples%2Fmanage%2Fsql-assessment-api%2Fconfig.json%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Econfig.json%3C%2FA%3E%20is%20the%20ruleset%20file%20and%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fsql-server-samples%2Fblob%2Fmaster%2Fsamples%2Fmanage%2Fsql-assessment-api%2FDefaultRuleset.csv%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EDefaultRuleset.csv%3C%2FA%3E%20is%20a%20more%20human%20readable%20rendering%20of%20the%20same.%20We%20will%20be%20continuously%20growing%20the%20ruleset%20with%20new%20rules%20going%20forward.%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3EExample%20of%20a%20rule%3A%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F155406i19A358CC7D72EEF8%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22SampleRule.png%22%20title%3D%22SampleRule.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3EExample%20of%20a%20probe%20that%20grabs%20the%20data%20for%20the%20rule%20to%20evaluate%3A%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F155408i3BF60075EBCE7F83%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22SampleProbe.png%22%20title%3D%22SampleProbe.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3EHere%20are%20some%20major%20features%20around%20rules%20that%20you%20should%20be%20aware%20of.%3C%2FP%3E%0A%3CH3%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2012.0pt%3B%20color%3A%20%235b9bd5%3B%22%20id%3D%22toc-hId-846787353%22%20id%3D%22toc-hId-846787408%22%3ECustomization%3C%2FH3%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3EYou%20will%20find%20examples%20of%20how%20to%20customize%20existing%20rules%20and%20how%20to%20write%20new%20ones%20in%20the%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fsql-server-samples%2Ftree%2Fmaster%2Fsamples%2Fmanage%2Fsql-assessment-api%2Fnotebooks%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3ESQL%20Assessment%20API%20Tutorial%20notebook%3C%2FA%3E.%3C%2FP%3E%0A%3CH3%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2012.0pt%3B%20color%3A%20%235b9bd5%3B%22%20id%3D%22toc-hId--1705369608%22%20id%3D%22toc-hId--1705369553%22%3ERule%20targets%3C%2FH3%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3ERules%20are%20marked%20with%20a%20property%20that%20shows%20which%20product%2Fversion%20(SQL%20Server%2C%20Linux%2C%20%E2%80%A6)%20they%20apply%20to%20as%20well%20as%20which%20object%20(server%20instance%2C%20database%2C%20%E2%80%A6).%3C%2FP%3E%0A%3CH3%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2012.0pt%3B%20color%3A%20%235b9bd5%3B%22%20id%3D%22toc-hId-37440727%22%20id%3D%22toc-hId-37440782%22%3EVersioning%3C%2FH3%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3EVersioning%20allows%20users%20to%20easily%20tell%20which%20ruleset%20and%20version%20a%20particular%20rule%20comes%20from.%20This%20is%20useful%20when%20you%20are%20updating%20the%20ruleset%20overtime%20(different%20versions%20of%20the%20same%20ruleset)%20and%20using%20multiple%20rulesets%20(customization%20of%20rules).%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3EWe%20would%20love%20to%20hear%20your%20feedback.%20Please%20feel%20free%20to%20comment%20here%20or%20even%20better%2C%20on%20%3CA%20href%3D%22http%3A%2F%2Faka.ms%2Fsql-assessment-api%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3ESQL%20Assessment%20API%20GitHub%20page%3C%2FA%3E.%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20margin-left%3A%20.375in%3B%20font-family%3A%20Consolas%3B%20font-size%3A%209.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-989677%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fsql%2Fsql-assessment-api%2Fsql-assessment-api-overview%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3ESQL%20Assessment%20API%3C%2FA%3E%20is%20a%20new%20mechanism%20to%20evaluate%20configuration%20of%20your%20SQL%20Server%20for%20best%20practices.%20The%20API%20methods%20are%20used%20by%20means%20of%20a%20SQL%20Server%20Management%20Object%20(SMO)%20extension%20and%20new%20cmdlets%20in%20SqlServer%20PowerShell%20module.%20API%20is%20delivered%20with%20a%20ruleset%20that%20is%20highly%20customizable%20and%20extensible.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-989677%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESQLReleases%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESQLServerTiger%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

SQL Assessment API is a new mechanism to evaluate configuration of your SQL Server for best practices. The API methods are used by means of a SQL Server Management Object (SMO) extension and new cmdlets in SqlServer PowerShell module. API is delivered with a ruleset that is highly customizable and extensible. It can be used to assess SQL Server versions 2012 and higher, both on Windows and Linux, as well as Azure SQL DB Managed Instance. More products will be supported in future releases.

 

SQL Assessment API is shipped as part of SqlServer PowerShell module (21.1.18206) and SMO NuGet Package (150.18208.0).

 

How to get started

Quick Start page on our GitHub repo will have you running an assessment in 2 simple steps.

You can also use Quick Start notebook with Azure Data Studio.

It is as simple as this (use Azure Data Studio, Windows PowerShell ISE, or your favorite PS tool):

# Uncomment and run Install-Module only the first time 

# Install-Module -Name SqlServer -AllowClobber -Force

Import-Module -Name SqlServer

Get-SqlInstance -ServerInstance 'localhost' | Invoke-SqlAssessment

InvokeSqlAssessmentResult2.png

 

When you are ready to discover more about the API, please use the SQL Assessment API Tutorial notebook that walks you through a large set of examples including customization of rules.

 

Ruleset

Rules, sometimes referred to as checks, are defined in JSON formatted files. You can see the full Microsoft ruleset on our GitHub repo: config.json is the ruleset file and DefaultRuleset.csv is a more human readable rendering of the same. We will be continuously growing the ruleset with new rules going forward.

Example of a rule:

SampleRule.png

Example of a probe that grabs the data for the rule to evaluate:

SampleProbe.png

 

Here are some major features around rules that you should be aware of.

Customization

You will find examples of how to customize existing rules and how to write new ones in the SQL Assessment API Tutorial notebook.

Rule targets

Rules are marked with a property that shows which product/version (SQL Server, Linux, …) they apply to as well as which object (server instance, database, …).

Versioning

Versioning allows users to easily tell which ruleset and version a particular rule comes from. This is useful when you are updating the ruleset overtime (different versions of the same ruleset) and using multiple rulesets (customization of rules).

 

We would love to hear your feedback. Please feel free to comment here or even better, on SQL Assessment API GitHub page.