%3CLINGO-SUB%20id%3D%22lingo-sub-1749376%22%20slang%3D%22en-US%22%3ESecure%20Score%20by%20Groups%20Workbook%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1749376%22%20slang%3D%22en-US%22%3E%3CH1%20id%3D%22toc-hId-556226149%22%20id%3D%22toc-hId-556226149%22%3ESecure%20Score%20by%20Groups%20Workbook%3C%2FH1%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EScenario%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThe%20Azure%20Resource%20Graph%20security%20baseline%20for%20Azure%20Security%20and%20the%20power%20of%20Azure%20Monitor%20bring%20you%20infinite%20possibilities%20to%20custom%20Azure%20Security%20Center%20information.%20Consider%20a%20scenario%20where%20you%20want%20to%20have%20visibility%20of%20the%20Secure%20Score%20for%20different%20subscriptions%20that%20are%20in%20different%20regions%20in%20a%20single%20dashboard.%20This%20article%20explains%20how%20to%20leverage%20Azure%20Monitor%20workbooks%20to%20create%20that.%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAzure-Security-Center%2Ftree%2Fmaster%2FWorkbooks%2FSecure%2520Score%2520by%2520Groups%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EThe%20workbook%20is%20available%20in%20our%20GitHub%20community%20page%3C%2FA%3E%20and%20the%20result%20looks%20like%20this%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22workbook.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224413iDAD92D5F9B16E51F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22workbook.png%22%20alt%3D%22Figure%201%3A%20workbook%20visualization%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%201%3A%20workbook%20visualization%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1246787623%22%20id%3D%22toc-hId-1246787623%22%3EThe%20queries%3C%2FH2%3E%0A%3CP%3EThis%20workbook%20has%20two%20queries%20created%20using%20Azure%20Resource%20Graph%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EOne%20for%20obtaining%20the%20Overall%20Secure%20Score%20of%20the%20selected%20subscriptions%3C%2FLI%3E%0A%3CLI%3EThe%20other%20obtains%20the%20individual%20Secure%20Score%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3ETo%20obtain%20the%20individual%20score%2C%20use%20the%20sample%20query%20below%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-sql%22%3E%3CCODE%3Esecurityresources%0A%7C%20where%20type%20%3D%3D%20%22microsoft.security%2Fsecurescores%22%0A%7C%20extend%20subscriptionSecureScore%20%3D%20round(100%20*%20((todouble(properties.score.current))%2F%20todouble(properties.score.max)))%0A%7C%20project%20subscriptionSecureScore%2C%20subscriptionId%0A%7C%20order%20by%20subscriptionSecureScore%20asc%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%20you%20run%20the%20query%20in%20ARG%2C%20you%20will%20get%20a%20similar%20result%20to%20this%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22queryIndividual.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224414iFEAC85722E1C74A6%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22queryIndividual.PNG%22%20alt%3D%22Figure%202%3A%20individual%20secure%20score%20query%20result%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%202%3A%20individual%20secure%20score%20query%20result%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBehind%20the%20scenes%2C%20each%20security%20control%20Current%20Score%20and%20Maximum%20Score%20is%20found%20here%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22currentmax.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224416i1AA5293481F55561%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22currentmax.png%22%20alt%3D%22Figure%203%3A%20current%20score%20and%20maximum%20score%20in%20ASC%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%203%3A%20current%20score%20and%20maximum%20score%20in%20ASC%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1937349097%22%20id%3D%22toc-hId-1937349097%22%3EQuery%3A%20overall%20secure%20score%20%E2%80%93%20multiple%20subscriptions%3C%2FH3%3E%0A%3CP%3ETo%20get%20the%20overall%20secure%20score%20of%20more%20than%20one%20subscription%2C%20you%20can%20use%20the%20next%20query%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-sql%22%3E%3CCODE%3Esecurityresources%0A%7C%20where%20type%20%3D%3D%20%22microsoft.security%2Fsecurescores%22%0A%7C%20extend%20subscriptionScore%20%3D%20todouble(properties.score.current)%2Ftodouble(properties.score.max)%0A%7C%20extend%20subScoreXsubWeight%20%3D%20todouble(subscriptionScore)*todouble(properties.weight)%0A%7C%20summarize%20upperValue%20%3D%20sum(subScoreXsubWeight)%2C%20underValue%20%3D%20sum(todouble(properties.weight))%0A%7C%20extend%20overallScore%20%3D%20round(100*((upperValue)%2F(underValue)))%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20result%20would%20be%20similar%20to%20this%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22queryOverall.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224417i726162A7FCACF57E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22queryOverall.PNG%22%20alt%3D%22Figure%204%3A%20overall%20secure%20score%20query%20result%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%204%3A%20overall%20secure%20score%20query%20result%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFollow%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-security-center%2Fquerying-your-secure-score-across-multiple-subscriptions-in%2Fba-p%2F1749193%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3Ethis%20blog%20post%3C%2FA%3E%20to%20see%20the%20formulas%20used%20for%20Azure%20Security%20Center%20Secure%20Score.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1926845993%22%20id%3D%22toc-hId-1926845993%22%3EThe%20Workbook%20Visualization%3C%2FH2%3E%0A%3CP%3EThe%20workbook%20will%20show%20by%20default%20four%20groups.%20Each%20group%20has%20five%20variables%3A%20group%2C%20title%2C%20subscription%20picker%2C%20overall%20secure%20score%2C%20secure%20score%20per%20subscription.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22group1.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224419i44F0F439EECDDE17%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22group1.png%22%20alt%3D%22Figure%205%3A%20workbook%20single%20group%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%205%3A%20workbook%20single%20group%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20modify%20the%20workbook%2C%20start%20by%20clicking%20the%20Edit%20button%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Screen%20Shot%202020-09-24%20at%2013.22.17.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224420iA12488A5FC903485%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Screen%20Shot%202020-09-24%20at%2013.22.17.png%22%20alt%3D%22Figure%206%3A%20edit%20workbook%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%206%3A%20edit%20workbook%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1677559829%22%20id%3D%22toc-hId--1677559829%22%3EModify%20Group%20Name%3C%2FH3%3E%0A%3COL%3E%0A%3CLI%3ESelect%20the%20group%20you%20want%20to%20modify%20and%20click%20the%20Edit%20button.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Screen%20Shot%202020-09-24%20at%2013.24.09.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224421iE4DC5BF81D8B5F44%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Screen%20Shot%202020-09-24%20at%2013.24.09.png%22%20alt%3D%22Figure%207%3A%20edit%20group%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%207%3A%20edit%20group%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EAt%20the%20top%2C%20click%20on%20Advanced%20Settings%2C%20change%20the%20Group%20title%2C%20and%20click%20the%20button%20Done%20Editing.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Screen%20Shot%202020-09-24%20at%2013.27.07.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224422iB872A186594F468E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Screen%20Shot%202020-09-24%20at%2013.27.07.png%22%20alt%3D%22Figure%208%3A%20change%20group%20title%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%208%3A%20change%20group%20title%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-809953004%22%20id%3D%22toc-hId-809953004%22%3EModify%20Title%3C%2FH3%3E%0A%3COL%3E%0A%3CLI%3EGo%20to%20the%20title%20and%20click%20Edit%3A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Screen%20Shot%202020-09-24%20at%2013.29.07.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224423iC9E3ADA00B386BD8%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Screen%20Shot%202020-09-24%20at%2013.29.07.png%22%20alt%3D%22Figure%209%3A%20modify%20title%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%209%3A%20modify%20title%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EType%20the%20title%20you%20want%20in%20a%20Markdown%20syntax%2C%20and%20click%20the%20button%20Done%20Editing.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Screen%20Shot%202020-09-24%20at%2013.30.23.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224424i6874DC414A02D08C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Screen%20Shot%202020-09-24%20at%2013.30.23.png%22%20alt%3D%22Figure%2010%3A%20type%20the%20title%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%2010%3A%20type%20the%20title%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--997501459%22%20id%3D%22toc-hId--997501459%22%3ECreate%20More%20Groups%3C%2FH3%3E%0A%3COL%3E%0A%3CLI%3EGo%20to%20any%20group%3C%2FLI%3E%0A%3CLI%3EClick%20on%20the%20three%20dots%20and%20select%20Clone%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22clone.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224425iCE46811D7BD1F6A2%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22clone.png%22%20alt%3D%22Figure%2011%3A%20clone%20the%20group%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%2011%3A%20clone%20the%20group%3C%2FSPAN%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1490011374%22%20id%3D%22toc-hId-1490011374%22%3EPin%20It%20to%20Your%20Azure%20Dashboard%3C%2FH3%3E%0A%3COL%3E%0A%3CLI%3EYour%20workbook%20must%20be%20in%20Edit%20mode%2C%20then%20click%20the%20Pin%20button.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Screen%20Shot%202020-09-24%20at%2013.56.49.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224426iBA1972559B57CF11%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Screen%20Shot%202020-09-24%20at%2013.56.49.png%22%20alt%3D%22Figure%2012%3A%20pin%20it%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%2012%3A%20pin%20it%3C%2FSPAN%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3EClick%20on%20Pin%20All%20to%20send%20each%20component%20of%20your%20groups%20to%20the%20dashboard.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22pinall.png%22%20style%3D%22width%3A%20812px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224428i5ADB01E558E3FD9A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22pinall.png%22%20alt%3D%22Figure%2013%3A%20pin%20all%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%2013%3A%20pin%20all%3C%2FSPAN%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3EClick%20either%20on%20Existing%20or%20Create%20New%20and%20choose%20your%20Dashboard%20Name.%20Then%20click%20Create%20And%20Pin.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Screen%20Shot%202020-09-24%20at%2013.57.40.png%22%20style%3D%22width%3A%20917px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224429iDFBB7EF22AC1A7FC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Screen%20Shot%202020-09-24%20at%2013.57.40.png%22%20alt%3D%22Figure%2014%3A%20pin%20to%20dashboard%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%2014%3A%20pin%20to%20dashboard%3C%2FSPAN%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3EYou%20will%20see%20a%20message%20saying%20it%20was%20successfully%20pinned.%20Click%20on%20that%20and%20start%20customizing%20your%20dashboard.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Screen%20Shot%202020-09-24%20at%2013.58.16.png%22%20style%3D%22width%3A%20818px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224430i4B877E8DF9B12B7B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Screen%20Shot%202020-09-24%20at%2013.58.16.png%22%20alt%3D%22Figure%2015%3A%20successful%20message%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%2015%3A%20successful%20message%3C%2FSPAN%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3ECustomize%20your%20dashboard%20by%20clicking%20the%20Edit%20button%20and%20moving%20the%20information%20squares.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Screen%20Shot%202020-09-24%20at%2013.58.56.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224431iE6D64D112947E8D6%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Screen%20Shot%202020-09-24%20at%2013.58.56.png%22%20alt%3D%22Figure%2016%3A%20edit%20dashboard%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%2016%3A%20edit%20dashboard%3C%2FSPAN%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Screen%20Shot%202020-09-24%20at%2014.05.54.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224432i2429594E2094105E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Screen%20Shot%202020-09-24%20at%2014.05.54.png%22%20alt%3D%22Figure%2017%3A%20done%20customizing%20dashboard%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%2017%3A%20done%20customizing%20dashboard%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CH2%20id%3D%22toc-hId-1479508270%22%20id%3D%22toc-hId-1479508270%22%3ENext%20Steps%3C%2FH2%3E%0A%3CP%3ETry%20it%20out%20and%20share%20your%20experience.%20The%20workbook%20is%20published%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAzure-Security-Center%2Ftree%2Fmaster%2FWorkbooks%2FSecure%2520Score%2520by%2520Groups%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%20in%20the%20Azure%20Security%20Center%20GitHub%20repository.%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--327946193%22%20id%3D%22toc-hId--327946193%22%3EReferences%3C%2FH2%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Fworkbooks-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Monitor%20Workbooks%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fgovernance%2Fresource-graph%2Fconcepts%2Fquery-language%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Resource%20Graph%20Queries%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsecurity-center%2Fsecure-score-security-controls%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Security%20Center%20Secure%20Score%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--461630917%22%20id%3D%22toc-hId--461630917%22%3EReviewers%3C%2FH2%3E%0A%3CP%3EMiri%20Landau%2C%20Senior%20PM%2C%20ASC%20Engineering%3C%2FP%3E%0A%3CP%3EYuri%20Diogenes%2C%20Principal%20PM%2C%20CxE%20Security%20ASC%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1749376%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EASC%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESecure%20Score%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eworkbook%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

Secure Score by Groups Workbook

 

Scenario

The Azure Resource Graph security baseline for Azure Security and the power of Azure Monitor bring you infinite possibilities to custom Azure Security Center information. Consider a scenario where you want to have visibility of the Secure Score for different subscriptions that are in different regions in a single dashboard. This article explains how to leverage Azure Monitor workbooks to create that. The workbook is available in our GitHub community page and the result looks like this:

Figure 1: workbook visualizationFigure 1: workbook visualization

 

The queries

This workbook has two queries created using Azure Resource Graph:

  • One for obtaining the Overall Secure Score of the selected subscriptions
  • The other obtains the individual Secure Score

To obtain the individual score, use the sample query below:

 

 

 

securityresources
| where type == "microsoft.security/securescores"
| extend subscriptionSecureScore = round(100 * ((todouble(properties.score.current))/ todouble(properties.score.max)))
| project subscriptionSecureScore, subscriptionId
| order by subscriptionSecureScore asc

 

 

 

 

When you run the query in ARG, you will get a similar result to this:

Figure 2: individual secure score query resultFigure 2: individual secure score query result

 

Behind the scenes, each security control Current Score and Maximum Score is found here:

Figure 3: current score and maximum score in ASCFigure 3: current score and maximum score in ASC

 

Query: overall secure score – multiple subscriptions

To get the overall secure score of more than one subscription, you can use the next query:

 

 

 

securityresources
| where type == "microsoft.security/securescores"
| extend subscriptionScore = todouble(properties.score.current)/todouble(properties.score.max)
| extend subScoreXsubWeight = todouble(subscriptionScore)*todouble(properties.weight)
| summarize upperValue = sum(subScoreXsubWeight), underValue = sum(todouble(properties.weight))
| extend overallScore = round(100*((upperValue)/(underValue)))

 

 

 

 

The result would be similar to this:

Figure 4: overall secure score query resultFigure 4: overall secure score query result

 

Follow this blog post to see the formulas used for Azure Security Center Secure Score.

 

 

 

The Workbook Visualization

The workbook will show by default four groups. Each group has five variables: group, title, subscription picker, overall secure score, secure score per subscription.

Figure 5: workbook single groupFigure 5: workbook single group

 

To modify the workbook, start by clicking the Edit button:

Figure 6: edit workbookFigure 6: edit workbook

 

 

Modify Group Name

  1. Select the group you want to modify and click the Edit button.Figure 7: edit groupFigure 7: edit group
  2. At the top, click on Advanced Settings, change the Group title, and click the button Done Editing.Figure 8: change group titleFigure 8: change group title

 

Modify Title

  1. Go to the title and click Edit:Figure 9: modify titleFigure 9: modify title
  2. Type the title you want in a Markdown syntax, and click the button Done Editing.Figure 10: type the titleFigure 10: type the title

 

 

Create More Groups

  1. Go to any group
  2. Click on the three dots and select CloneFigure 11: clone the groupFigure 11: clone the group

     

 

Pin It to Your Azure Dashboard

  1. Your workbook must be in Edit mode, then click the Pin button.Figure 12: pin itFigure 12: pin it

     

  2. Click on Pin All to send each component of your groups to the dashboard.Figure 13: pin allFigure 13: pin all

     

  3. Click either on Existing or Create New and choose your Dashboard Name. Then click Create And Pin.Figure 14: pin to dashboardFigure 14: pin to dashboard

     

  4. You will see a message saying it was successfully pinned. Click on that and start customizing your dashboard.Figure 15: successful messageFigure 15: successful message

     

     

  5. Customize your dashboard by clicking the Edit button and moving the information squares.Figure 16: edit dashboardFigure 16: edit dashboard

     

     Figure 17: done customizing dashboardFigure 17: done customizing dashboard

     

     

     

Next Steps

Try it out and share your experience. The workbook is published here in the Azure Security Center GitHub repository.

 

 

References

 

 

Reviewers

Miri Landau, Senior PM, ASC Engineering

Yuri Diogenes, Principal PM, CxE Security ASC