Home
%3CLINGO-SUB%20id%3D%22lingo-sub-882358%22%20slang%3D%22en-US%22%3EReleased%3A%20SQL%20Assessment%20API%20(Public%20Preview%202)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-882358%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%3ESQL%20Assessment%20API%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.%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.18179%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ESqlServer%20PowerShell%20module%3C%2FA%3E%20(21.1.18179)%20and%20%3CA%20href%3D%22https%3A%2F%2Fwww.nuget.org%2Fpackages%2FMicrosoft.SqlServer.SqlManagementObjects%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ESMO%20nuget%20package%3C%2FA%3E%20(150.18178.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%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3EThe%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FSQL-Server%2FIntroducing-SQL-Assessment-API-Public-Preview%2Fba-p%2F778570%22%20target%3D%22_self%22%3Efirst%20public%20preview%3C%2FA%3E%20of%20SQL%20Assessment%20API%20was%20back%20in%20July.%20With%20this%20new%20release%20we%20are%20introducing%20some%20new%20capabilities%20as%20well%20as%20expanding%20the%20ruleset.%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%3E%3CSPAN%20style%3D%22font-weight%3A%20bold%3B%22%3ENew%20features%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-weight%3A%20bold%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3EVersioning%20of%20ruleset%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%20-%20User%20can%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).%20%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-weight%3A%20bold%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3EDefault%20view%20of%20cmdlets%20in%20table%20format%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%20-%20User%20can%20easily%20read%20the%20results%20of%20an%20assessment%20when%20it%20is%20presented%20in%20table%20format%20and%20clearly%20identified%20as%20to%20which%20object%20they%20apply%20to.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-weight%3A%20bold%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3ENew%20rules%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%20-%20We%20continuously%20improve%20the%20ruleset%20by%20adding%20new%20rules.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-weight%3A%20bold%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3ESupport%20for%20Azure%20SQL%20DB%20Managed%20Instance%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%20-%20Rules%20have%20a%20property%20that%20shows%20which%20products%20it%20applies%20to.%20Rules%20that%20apply%20to%20Managed%20Instance%20have%20been%20tested%20and%20marked%20appropriately.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%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%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%3E%3CSPAN%20style%3D%22font-weight%3A%20bold%3B%22%3ERun%20an%20assessment%20in%203%20steps%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%3EIf%20you%20want%20to%20quickly%20run%20an%20assessment%20against%20your%20local%20SQL%20Server%2C%20follow%20these%20simple%20steps%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%20font-weight%3A%20normal%3B%20font-style%3A%20normal%3B%22%3EBring%20up%20Azure%20Data%20Studio%2C%20Windows%20PowerShell%20ISE%2C%20or%20your%20favorite%20PS%20tool.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%20font-size%3A%209.0pt%3B%20font-weight%3A%20normal%3B%20font-style%3A%20normal%3B%20color%3A%20%23795e26%3B%22%3EInstall-Module%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%20font-size%3A%209.0pt%3B%20font-weight%3A%20normal%3B%20font-style%3A%20normal%3B%20color%3A%20black%3B%22%3E-%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%20font-size%3A%209.0pt%3B%20font-weight%3A%20normal%3B%20font-style%3A%20normal%3B%20color%3A%20%23212121%3B%22%3EName%20SqlServer%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%20font-size%3A%209.0pt%3B%20font-weight%3A%20normal%3B%20font-style%3A%20normal%3B%20color%3A%20black%3B%22%3E-%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%20font-size%3A%209.0pt%3B%20font-weight%3A%20normal%3B%20font-style%3A%20normal%3B%20color%3A%20%23212121%3B%22%3ERequiredVersion%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%20font-size%3A%209.0pt%3B%20font-weight%3A%20normal%3B%20font-style%3A%20normal%3B%20color%3A%20%2309885a%3B%22%3E21.1%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%20font-size%3A%209.0pt%3B%20font-weight%3A%20normal%3B%20font-style%3A%20normal%3B%20color%3A%20%23212121%3B%22%3E.%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%20font-size%3A%209.0pt%3B%20font-weight%3A%20normal%3B%20font-style%3A%20normal%3B%20color%3A%20%2309885a%3B%22%3E18179%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%20font-size%3A%209.0pt%3B%20font-weight%3A%20normal%3B%20font-style%3A%20normal%3B%20color%3A%20black%3B%22%3E-%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%20font-size%3A%209.0pt%3B%20font-weight%3A%20normal%3B%20font-style%3A%20normal%3B%20color%3A%20%23212121%3B%22%3EAllowClobber%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%20font-size%3A%209.0pt%3B%20font-weight%3A%20normal%3B%20font-style%3A%20normal%3B%20color%3A%20black%3B%22%3E-%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%20font-size%3A%209.0pt%3B%20font-weight%3A%20normal%3B%20font-style%3A%20normal%3B%20color%3A%20%23212121%3B%22%3EForce%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%20font-size%3A%209.0pt%3B%20color%3A%20%23795e26%3B%22%3EGet-SqlInstance%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%20font-size%3A%209.0pt%3B%20color%3A%20black%3B%22%3E-%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%20font-size%3A%209.0pt%3B%20color%3A%20%23212121%3B%22%3EServerInstance%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%20font-size%3A%209.0pt%3B%20color%3A%20%23a31515%3B%22%3E'localhost'%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%20font-size%3A%209.0pt%3B%20color%3A%20black%3B%22%3E%7C%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%20font-size%3A%209.0pt%3B%20color%3A%20%23795e26%3B%22%3EInvoke-SqlAssessment%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3EResults%20will%20look%20similar%20to%20this%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-left%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F134955iC319A2382DC1734F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22SQLAssessmentPSResult.png%22%20title%3D%22SQLAssessmentPSResult.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%3EYou%20can%20find%20the%20complete%20ruleset%20and%20some%20samples%20at%20our%20%3CA%20href%3D%22http%3A%2F%2Faka.ms%2Fsql-assessment-api%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EGitHub%20repository%3C%2FA%3E.%20Rules%2C%20sometimes%20referred%20to%20as%20checks%2C%20are%20defined%20in%20JSON%20formatted%20files.%20You%20will%20find%20examples%20of%20how%20to%20customize%20existing%20rules%20and%20how%20to%20write%20new%20ones%20in%20the%20same%20location.%20We%20will%20be%20growing%20the%20repo%20with%20new%20rules%20and%20examples%20going%20forward.%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%20color%3A%20%23212121%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%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%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EDocs%20online%3C%2FA%3E%20page%20has%20more%20details%20on%20the%20API.%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%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ESQL%20Assessment%20API%20GitHub%20page%3C%2FA%3Ewhere%20we%20have%20the%20rules%20and%20sample%20scripts%20available.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-882358%22%20slang%3D%22en-US%22%3E%3CP%3ESQL%20Assessment%20API%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-882358%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESQLServerTiger%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-902025%22%20slang%3D%22en-US%22%3ERe%3A%20Released%3A%20SQL%20Assessment%20API%20(Public%20Preview%202)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-902025%22%20slang%3D%22en-US%22%3E%3CP%3Every%20helpfull%20and%20easier%20than%20Assessment%20and%20planing%20toolkit%2C%20so%3C%2FP%3E%3CP%3Ei%20would%20like%20to%20know%20how%20updating%20the%20.jon%20files%20.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ebest%20regards%2C%3C%2FP%3E%3CP%3EEric%20Simbozel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-904654%22%20slang%3D%22en-US%22%3ERe%3A%20Released%3A%20SQL%20Assessment%20API%20(Public%20Preview%202)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-904654%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F32756%22%20target%3D%22_blank%22%3E%40Eric%20SIMBOZEL%3C%2FA%3E%2C%20we%20have%20some%20samples%20for%20customization%20of%20rules%20in%20json%20files%20on%20our%20%3CA%20href%3D%22http%3A%2F%2Faka.ms%2Fsql-assessment-api%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EGitHub%20page%3C%2FA%3E.%20Please%20feel%20free%20to%20comment%20here%20or%20on%20that%20page%20if%20you%20cannot%20find%20what%20you%20are%20looking%20for.%20We%20continue%20to%20improve%20that%20page%20with%20more%20info%20and%20examples.%20Thanks%20for%20the%20feedback.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-975489%22%20slang%3D%22en-US%22%3ERe%3A%20Released%3A%20SQL%20Assessment%20API%20(Public%20Preview%202)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-975489%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20automatic%20assessment%20report%20looks%20cool%2C%20will%20give%20it%20a%20try!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-988702%22%20slang%3D%22en-US%22%3ERe%3A%20Released%3A%20SQL%20Assessment%20API%20(Public%20Preview%202)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-988702%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3Ethank's%20for%20your%20last%20response%2C%20so%20i%20just%20would%20like%20to%20know%20how%20to%20implement%20a%20new%20json%20file%2C%26nbsp%3Band%20how%20does%20your%20tool%20take%20into%20consideration%20this%20new%20json%20file%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ebest%20regards%20and%20cool%20job%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-994816%22%20slang%3D%22en-US%22%3ERe%3A%20Released%3A%20SQL%20Assessment%20API%20(Public%20Preview%202)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-994816%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F32756%22%20target%3D%22_blank%22%3E%40Eric%20SIMBOZEL%3C%2FA%3E%26nbsp%3Bthank%20you.%20We%20are%20glad%20to%20know%20that%20the%20API%20is%20useful%20for%20you.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnswering%20your%20question.%20Just%20create%20a%20JSON%20file%20with%20your%20own%20overrides%20and%2For%20rules.%20See%20examples%20on%20Github%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fsql-server-samples%2Ftree%2Fmaster%2Fsamples%2Fmanage%2Fsql-assessment-api%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fmicrosoft%2Fsql-server-samples%2Ftree%2Fmaster%2Fsamples%2Fmanage%2Fsql-assessment-api%3C%2FA%3E%20(have%20a%20look%20at%26nbsp%3BDisablingBuiltInChecks_sample.json%20and%26nbsp%3BMakingCustomChecks_sample.json%2C%20and%20also%20the%20tutorial%20ADS%20notebook%20and%20json%20samples%20coming%20with%20it).%20Once%20you%20make%20your%20own%20JSON%20file%2C%20run%20the%20following%20if%20your%20customizations%20are%20for%20SQL%20Instance%3A%3CA%20id%3D%22cc5685b0e53e8b3bd0c79a587d3e70ea-70d3cf0cf61e769610177261330860e246df4b80%22%20class%3D%22js-navigation-open%22%20title%3D%22MakingCustomChecks_sample.json%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fsql-server-samples%2Fblob%2Fmaster%2Fsamples%2Fmanage%2Fsql-assessment-api%2FMakingCustomChecks_sample.json%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGet-SqlInstance%20-ServerInstance%20'%3CSQLSERVERINSTANCE%3E'%20%7C%20Invoke-SqlAssessment%20-Configuration%20'%3CFULL%20path%3D%22%22%20to%3D%22%22%20your%3D%22%22%20json%3D%22%22%20file%3D%22%22%3E'%3C%2FFULL%3E%3C%2FSQLSERVERINSTANCE%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOr%2Fand%20run%20the%20following%2C%20if%20your%20customizations%20are%20for%20SQL%20Database%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGet-SqlDatabase%20-ServerInstance%20'%3CSQLSERVERINSTANCE%3E'%20%7C%20Invoke-SqlAssessment%20-Configuration%20'%3CFULL%20path%3D%22%22%20to%3D%22%22%20your%3D%22%22%20json%3D%22%22%20file%3D%22%22%3E'%3C%2FFULL%3E%3C%2FSQLSERVERINSTANCE%3E%3C%2FP%3E%3C%2FLINGO-BODY%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.

 

SQL Assessment API is shipped as part of SqlServer PowerShell module (21.1.18179) and SMO nuget package (150.18178.0).

 

The first public preview of SQL Assessment API was back in July. With this new release we are introducing some new capabilities as well as expanding the ruleset.

 

New features

  • Versioning of ruleset - User can 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).
  • Default view of cmdlets in table format - User can easily read the results of an assessment when it is presented in table format and clearly identified as to which object they apply to.
  • New rules - We continuously improve the ruleset by adding new rules.
  • Support for Azure SQL DB Managed Instance - Rules have a property that shows which products it applies to. Rules that apply to Managed Instance have been tested and marked appropriately.

 

 

Run an assessment in 3 steps

If you want to quickly run an assessment against your local SQL Server, follow these simple steps:

  1. Bring up Azure Data Studio, Windows PowerShell ISE, or your favorite PS tool.
  2. Install-Module -Name SqlServer -RequiredVersion 21.1.18179 -AllowClobber -Force
  3. Get-SqlInstance -ServerInstance 'localhost' | Invoke-SqlAssessment

Results will look similar to this:

SQLAssessmentPSResult.png

You can find the complete ruleset and some samples at our GitHub repository. Rules, sometimes referred to as checks, are defined in JSON formatted files. You will find examples of how to customize existing rules and how to write new ones in the same location. We will be growing the repo with new rules and examples going forward.

 

Docs online page has more details on the API.

 

We would love to hear your feedback. Please feel free to comment here or even better, on SQL Assessment API GitHub page where we have the rules and sample scripts available.

5 Comments
Regular Visitor

very helpfull and easier than Assessment and planing toolkit, so

i would like to know how updating the .jon files .

 

best regards,

Eric Simbozel

Microsoft

@Eric SIMBOZEL, we have some samples for customization of rules in json files on our GitHub page. Please feel free to comment here or on that page if you cannot find what you are looking for. We continue to improve that page with more info and examples. Thanks for the feedback.

Regular Visitor

This automatic assessment report looks cool, will give it a try!

Regular Visitor

Hi,

thank's for your last response, so i just would like to know how to implement a new json file, and how does your tool take into consideration this new json file

 

best regards and cool job 

 

Microsoft

@Eric SIMBOZEL thank you. We are glad to know that the API is useful for you.

 

Answering your question. Just create a JSON file with your own overrides and/or rules. See examples on Github: https://github.com/microsoft/sql-server-samples/tree/master/samples/manage/sql-assessment-api (have a look at DisablingBuiltInChecks_sample.json and MakingCustomChecks_sample.json, and also the tutorial ADS notebook and json samples coming with it). Once you make your own JSON file, run the following if your customizations are for SQL Instance:

 

Get-SqlInstance -ServerInstance '<SQLSERVERINSTANCE>' | Invoke-SqlAssessment -Configuration '<FULL PATH TO YOUR JSON FILE>'

 

Or/and run the following, if your customizations are for SQL Database:

 

Get-SqlDatabase -ServerInstance '<SQLSERVERINSTANCE>' | Invoke-SqlAssessment -Configuration '<FULL PATH TO YOUR JSON FILE>'