%3CLINGO-SUB%20id%3D%22lingo-sub-1694069%22%20slang%3D%22en-US%22%3EAssigning%20Permissions%20in%20Azure%20Security%20Center%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1694069%22%20slang%3D%22en-US%22%3E%3CP%3EOver%20the%20course%20of%20the%20last%20couple%20weeks%2C%20I%20have%20been%20asked%20many%20questions%20about%20how%20the%20different%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsecurity-center%2Fsecurity-center-permissions%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3ERBAC%20roles%20in%20Azure%20Security%20Center%26nbsp%3B%3C%2FA%3E%20and%20how%20they%20should%20be%20assigned.%20In%20this%20blog%20post%2C%20I%20will%20discuss%20how%20to%20assign%20the%20roles%20used%20across%20Azure%20Security%20Center%20and%20the%20types%20of%20scenarios%20that%20determine%20how%20they%20could%20be%20assigned.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CSTRONG%3EAssigning%20permissions%20to%20users%20for%20specific%20workloads%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3ETo%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Frole-based-access-control%2Frole-assignments-portal%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eassign%20permissions%3C%2FA%3E%20for%20Azure%20workloads%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%20class%3D%22lia-align-left%22%3ELog%20into%20the%20Azure%20portal%20%26gt%3B%20type%20%E2%80%9CSubscriptions%E2%80%9D%20in%20the%20search%20bar%20%26gt%3B%20select%20your%20subscription%20%26gt%3B%20then%20look%20for%20Access%20Control%20(IAM).%26nbsp%3B%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Picture1.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F220273i1D59B577D68037C3%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Picture1.png%22%20alt%3D%22Picture1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%20class%3D%22lia-align-left%22%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EOnce%20in%20Access%20Control%20(IAM)%20you%20will%20need%20to%20add%20a%20role%20assignment%2C%20click%20on%20%E2%80%9CRole%20assignment%E2%80%9D%26gt%3B%20Add%20role%20assignment.%20The%20role%20assignment%20pane%20will%20open%20and%20you%20will%20select%20the%20role%20assignment%20to%20be%20granted%20to%20user.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Picture2.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F220274i296BDFEEFFBD3E61%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Picture2.png%22%20alt%3D%22Picture2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CEM%3ETo%20perform%20remediation%20of%20recommendations%2C%20users%20will%20need%20the%20appropriate%20permissions%20and%20access%20to%20those%20workloads.%3C%2FEM%3E%20For%20example%2C%20to%20remediate%20recommendations%20related%20to%20virtual%20machines%2C%20the%20user%20will%20need%20the%20Security%20Admin%20or%20Contributor%20on%20resource%20group%20level%20for%20people%20that%20should%20manage%20resources.%20This%20role%20allows%20users%20with%20that%20role%20assignment%20to%20view%20Virtual%20machines%20in%20the%20portal%20to%20make%20changes.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CSTRONG%3EAssigning%20permissions%20for%20using%20Logic%20Apps%2FWorkflow%20Automation%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOne%20thing%20that%20might%20be%20confusing%20in%20terms%20of%20permissions%20are%20Logic%20Apps%2C%20which%20are%20used%20in%20the%20%3CEM%3EWorkflow%20Automation%3C%2FEM%3E%20part%20of%20Azure%20Security%20Center.%20These%20Logic%20Apps%20can%20be%20automatically%20triggered%20once%20a%20new%20alert%20or%20recommendation%20appears.%20You%20cannot%20use%20any%20type%20of%20Logic%20App%20for%20Workflow%20Automation%2C%20but%20only%20those%20with%20a%20%3CEM%3ESecurity%20Center%20Alerts%20API%20Connector%3C%2FEM%3E%20or%20a%20%3CEM%3ESecurity%20Center%20Recommendations%20API%20Connector%3C%2FEM%3E.%20So%2C%20if%20you%20want%20to%20configure%20workflow%20automation%2C%20you%20must%20create%20a%20Logic%20App%20which%20then%20can%20be%20triggered.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20LogicApp%20itself%20uses%20a%20Managed%20Identity%20which%20can%20be%20granted%20access%20to%20resources%2C%20if%20necessary.%20For%20example%2C%20when%20your%20Logic%20App%20is%20supposed%20to%20get%20information%20about%20all%20resources%20in%20a%20subscription%20from%20Azure%20Resource%20Graph%20or%20the%20Azure%20Security%20Center%20Assessments%20API%20once%20a%20new%20recommendation%20pops%20up%2C%20the%20Managed%20Identity%20would%20need%20to%20be%20assigned%20the%20Reader%20or%20Security%20Reader%20role%20on%20the%20subscription.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20person%20who%20creates%20a%20new%20workflow%20automation%20does%20not%20necessarily%20have%20access%20to%20all%20the%20resources%20the%20Logic%20App%20will%20access%2C%20because%20the%20automation%20artifact%20itself%20has%20its%20own%20permissions.%20But%20what%20level%20of%20access%20is%20needed%20to%20create%20a%20workflow%20automation%3F%3C%2FP%3E%0A%3CP%3EYour%20user%20account%20needs%20to%20have%20the%20right%20to%20create%20a%20new%20workflow%20automation%20in%20a%20particular%20resource%20group%20and%20at%20the%20same%20time%2C%20to%20trigger%20the%20Logic%20App%20you%20want%20to%20use%20in%20your%20workflow%20automation.%20So%2C%20it%E2%80%99s%20not%20enough%20to%20only%20see%20the%20Logic%20App%20so%20you%20can%20use%20it%2C%20and%20it%20is%20also%20not%20enough%20to%20only%20be%20able%20to%20manage%20Azure%20Security%20Center.%20You%20will%20have%20to%20make%20sure%20that%20your%20account%20will%20get%20at%20least%20the%20following%20permissions%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CEM%3ELogic%20App%20Contributor%3C%2FEM%3E%20on%20the%20Logic%20App%E2%80%99s%20scope%2C%20so%20you%20can%20trigger%20it%3C%2FLI%3E%0A%3CLI%3E%3CEM%3EMicrosoft.Security%2Fautomations%2Fwrite%3C%2FEM%3E%20on%20the%20resource%20group%20you%20want%20to%20create%20the%20workflow%20automation%20in.%20This%20level%20of%20access%20is%20included%20in%20the%20%3CEM%3ESecurity%20Admin%3C%2FEM%3E%20and%20the%20%3CEM%3EContributor%3C%2FEM%3E%20roles.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CEM%3EIt%20is%20important%20to%20understand%2C%20that%20the%20Security%20Admin%20role%20alone%20does%20not%20allow%20you%20to%20see%20or%20manage%20resources%2C%20but%20only%20security-related%20information%20and%20settings.%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3E%3CBR%20%2F%3E%3C%2FEM%3E%3CSTRONG%3EPermissions%20for%20Quick%20Fixes%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EQuick%20Fix%20Remediation%20enables%20you%20to%20quickly%20remediate%20a%20recommendation%20directly%20in%20the%20console%20and%20improve%20your%20secure%20score%20quickly.%20Quick%20Fixes%2C%20use%20a%20template%20deployment%20or%20REST%20PATCH%20or%20PUT%20API%20call%20to%20configure%20the%20resource.%20To%20view%20the%20list%20of%20recommendations%20with%20Quick%20Fixes%2C%20you%20can%20click%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsecurity-center%2Fsecurity-center-remediate-recommendations%23quick-fix-remediation-logging-in-the-activity-log-%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Picture3.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F220279i69139FAE0F678EA7%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Picture3.png%22%20alt%3D%22Picture3.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3E%26nbsp%3B%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUsers%20that%20will%20be%20using%20the%20%E2%80%9CQuick%20Fix%E2%80%9D%20feature%20in%20Azure%20Security%20Center%20may%20require%20additional%20permissions%20depending%20on%20the%20logic%2Faction%20the%20in%20the%20specific%20recommendation.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20screenshot%20below%20shows%20the%20result%20of%20the%20%3CEM%3EDiagnostic%20logs%20in%20Logic%20Apps%20should%20be%20enabled%3C%2FEM%3E%20recommendation%20for%20a%20test%20user%20which%20I%E2%80%99ve%20granted%20three%20different%20sets%20of%20access%20rights%20on%20three%20different%20resource%20groups%20in%20a%20test%20subscription.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Picture4.jpg%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F220280iA03F6CF173991623%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Picture4.jpg%22%20alt%3D%22Picture4.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWith%20the%20Security%20Reader%20role%2C%20the%20user%20will%20see%20the%20assessment%20result%20for%20a%20particular%20recommendation%2C%20but%20in%20order%20to%20be%20able%20to%20remediate%20it%2C%20the%20account%20would%20need%20either%20the%20Security%20Administrator%2C%20or%20Contributor%20roles%20assigned.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20we%20take%20a%20deeper%20look%20at%20the%20Security%20Admin%20role%2C%20we%20realize%20that%20this%20role%20does%20not%20allow%20an%20account%20to%20directly%20access%20resources%2C%20such%20as%20storage%20accounts%2C%20VMs%2C%20virtual%20networks%2C%20but%20it%20will%20give%20your%20account%20the%20right%20to%20create%20resource%20deployments%20and%20configure%20everything%20which%20is%20related%20to%20security.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Picture5.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F220282i5C8669DE20D5EA16%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Picture5.png%22%20alt%3D%22Picture5.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20you%20learned%20above%2C%20the%20quick%20fix%20option%20in%20Azure%20Security%20Center%20leverages%20a%20REST%20PATCH%20or%20PUT%20API%20call%20which%20is%20what%20is%20incorporated%20in%20the%20Microsoft.Resources%2Fdeployments%2F*%20set%20of%20access%20rights.%20So%2C%20in%20case%20you%20want%20to%20build%20a%20custom%20role%20in%20addition%20to%20Security%20Reader%20(which%20will%20enable%20you%20to%20only%20see%2C%20but%20not%20change%20security%20configurations)%2C%20you%20need%20to%20make%20sure%20to%20include%20the%20deployments%20rights%20as%20sketched%20above.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EDepending%20on%20the%20scope%20you%20grant%20access%20rights%20on%2C%20the%20Secure%20Score%20within%20one%20subscription%20might%20change%20between%20user%20accounts.%20So%2C%20for%20example%2C%20if%20you%20have%20one%20subscription%20with%20several%20resource%20groups%2C%20and%20you%20assign%20one%20account%20the%20Security%20Admin%20role%20on%20subscription%20level%2C%20and%20a%20second%20account%20the%20Security%20Reader%20role%20on%20two%20of%20these%20resource%20groups%2C%20the%20second%20account%20might%20see%20a%20higher%20Secure%20Score%2C%20than%20the%20overall%20Secure%20Score%20the%20first%20account%20might%20see%20for%20the%20subscription.%20This%20is%20because%20the%20Secure%20Score%20calculation%20takes%20place%20on%20the%20scope%20of%20resources%20you%20can%20see%20related%20information%20for.%20The%20owner%20of%20the%20second%20account%2C%20who%20only%20sees%20Security%20Recommendations%20and%20Alerts%20for%20a%20subset%20of%20resources%2C%20might%20think%20that%20the%20overall%20Secure%20Score%20is%20a%20lot%20higher%20than%20what%20is%20true%20for%20the%20subscription.%20We%20will%20cover%20that%20topic%20with%20more%20details%20in%20an%20upcoming%20blog%20post.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ECommon%20ASC%20scoping%20Scenarios%20-%20and%20the%20why%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EAzure%20Security%20Center%20is%20a%20tool%20that%20can%20give%20you%20tenant-wide%20visibility%20into%20your%20security%20posture%20depending%20on%20the%20level%20and%20scope%20of%20access%20rights%20your%20user%20account%20has%20%26nbsp%3Bin%20your%20Azure%20environment.%20For%20example%2C%20if%20your%20account%20has%20a%20role%20assignment%20for%20the%20Security%20Reader%20role%20on%20your%20Tenant%20Root%20Group%20(the%20upmost%20Management%20Group%20in%20every%20Azure%20Tenant)%2C%20you%20will%20%2C%20existing%2C%20and%20future%20ones%2C%20within%20your%20company%E2%80%99s%20environment%2C%20r.%20If%20your%20account%20has%20been%20assigned%20the%20Contributor%20role%20on%20a%20single%20Resource%20Group%20in%20one%20of%20your%20subscriptions%20only%2C%20ASC%20will%20exclusively%20provide%20you%20with%20information%20about%20resources%20within%20this%20scope.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20the%20purpose%20of%20this%20post%2C%20we%20will%20focus%20on%20the%20three%20most%20common%20scenarios%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ESecurity%20is%20owned%20(and%20enforced)%20by%20a%20central%20team%3C%2FLI%3E%0A%3CLI%3ESecurity%20is%20owned%20by%20resource%20owners%3C%2FLI%3E%0A%3CLI%3EA%20mix%20of%20both%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EIn%20the%20first%20scenario%2C%20a%20central%20team%20is%20responsible%20for%20enforcing%20security%20over%20all%20subscriptions.%20It%20is%20common%20practice%20to%20assign%20this%20team%20the%20Security%20Administrator%20and%20Contributor%20roles%20on%20a%20central%20scope%2C%20such%20as%20the%20Tenant%20Root%20Management%20Group%2C%20so%20they%20can%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EEnforce%20security%20policies%20across%20all%20subscriptions%3C%2FLI%3E%0A%3CLI%3ERemediate%20security%20controls%20and%20recommendations%20for%20all%20resources%20in%20the%20environment%3C%2FLI%3E%0A%3CLI%3EEnforce%20resource%20eviction%20(quarantine)%20in%20case%20a%20security%20threat%20or%20configuration%20issue%20is%20found%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EThis%20is%20a%20scenario%20which%20will%20give%20the%20security%20team%20a%20lot%20of%20power%20and%20responsibility%2C%20which%20is%20good%20from%20a%20process%20point%20of%20view%2C%20but%20what%20also%20might%20lead%20to%20bad%20situations%20in%20terms%20of%20service%20availability.%20Therefore%2C%20this%20approach%20should%20be%20chosen%20for%20companies%20only%20that%20have%20a%20very%20high%20level%20of%20automation%20so%20it%20can%20be%20made%20sure%20that%20security%20won%E2%80%99t%20break%20their%20business.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20the%20second%20scenario%2C%20there%20is%20no%20central%20IT%20security%20team%2C%20or%20at%20least%2C%20the%20team%20does%20not%20own%20security%20for%20the%20company%E2%80%99s%20Azure%20subscriptions%2C%20which%20makes%20the%20resource%20owners%20responsible%20for%20security.%20In%20this%20scenario%2C%20the%20central%20team%20does%20not%20have%20access%20to%20any%20of%20the%20subscriptions%2C%20so%20subscription%20(or%20resource%20group)%20owners%20will%20have%20the%20Owner%20or%20Contributor%20roles%20assigned%20to%20their%20accounts%20on%20either%20subscription%20or%20resource%20group%20level.%20In%20this%20scenario%2C%20every%20resource%20owner%20will%20see%20security%20alert%2C%20controls%2C%20and%20recommendations%20for%20their%20owned%20resources%20only.%20However%2C%20this%20approach%20comes%20with%20at%20least%20four%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EThere%20is%20no%20central%20visibility%20for%20security%20threats%20and%20security%20posture%20information%3C%2FLI%3E%0A%3CLI%3EWithout%20enforcement%2C%20resource%20owners%20decide%20if%20they%20want%20to%20remediate%20security%20controls%20and%20recommendations%2C%20what%20might%20lead%20to%20security%20issues.%3C%2FLI%3E%0A%3CLI%3EResource%20owners%20only%20see%20security%20controls%20and%20recommendations%20for%20their%20particular%20scope.%20If%20there%20is%20no%20one%20who%20owns%20the%20overall%20security%20(and%20gets%20visibility%20into%20subscription-%20and%20tenant-wide%20recommendations)%2C%20they%20will%20never%20be%20seen%20and%20remediated.%3C%2FLI%3E%0A%3CLI%3E%26nbsp%3BSecurity%20policy%20is%20assigned%20per%20subscription%20and%20can%20be%20changed%20and%20controlled%20by%20the%20subscription%20owners%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EThis%20is%20why%20most%20of%20my%20customers%20chose%20to%20go%20with%20the%20third%20scenario%3A%20Resource%20owners%20will%20own%20security%20for%20their%20resources%2C%20but%20there%20is%20a%20central%20team%20that%20gets%20insights%20into%20the%20overall%20security%20posture.%20Role%20assignments%20for%20this%20scenario%20might%20be%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EOwner%3C%2FSTRONG%3E%20or%20%3CSTRONG%3EContributor%3C%2FSTRONG%3E%20roles%20for%20resource%20owners%20on%20subscription%20or%20resource%20group%20level%20which%20will%20enable%20them%20to%20see%20security%20controls%20and%20alerts%20for%20their%20resources%20and%20to%20remediate%20recommendations%20within%20their%20scope.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ESecurity%20Reader%3C%2FSTRONG%3E%20role%20on%20Management%20Group%20level%20for%20a%20central%20IT%20security%20team%20so%20they%20can%20gather%20insights%20for%20all%20subscriptions%20and%20make%20resource%20owner%20accountable%20for%20improving%20their%20resources%E2%80%99%20security%20postures.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ECustom%20RBAC%20role(s)%3C%2FSTRONG%3E%20on%20Management%20Group%20level%20for%20the%20central%20team%20to%20enable%20them%20doing%20advanced%20tasks%2C%20such%20as%20create%20a%20security%20policy%20on%20Management%20Group%20level%20which%20can%20then%20be%20assigned%20by%20the%20resource%20owners%20only.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3ELet's%20talk%20more%20about%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Frole-based-access-control%2Fcustom-roles%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ecustom%20RBAC.%3C%2FA%3E%20As%20you%20learned%20before%2C%20you%20need%20to%20have%20the%20Microsoft.Resources%2Fdeployments%2F*%20access%20rights%20to%20%26nbsp%3Bremediate%20recommendations%20using%20the%20quick%20fix%20feature%20in%20ASC%2C%20which%20is%20part%20of%20both%2C%20Security%20Admin%20and%20Contributor%20roles.%20But%20in%20the%20third%20scenario%2C%20we%20might%20not%20want%20to%20give%20this%20level%20of%20access%20to%20the%20central%20team%2C%20because%20they%20only%20should%20get%20visibility%20but%20not%20remediation%20rights.%20However%2C%20imagine%20they%20should%20be%20able%20to%20create%20new%20policy%20definitions%20that%20can%20be%20used%20by%20resource%20owners%20to%20enforce%20different%20settings%20in%20their%20subscriptions%20or%20resource%20groups.%20For%20example%2C%20you%20want%20to%20give%20resource%20owners%20the%20option%20to%20enable%20the%20ASC%20Standard%20Pricing%20tier%20on%20their%20resource%20scope%2C%20only.%20In%20this%20case%2C%20you%20could%20create%20a%20custom%20RBAC%20role%20which%20will%20give%20the%20central%20team%20the%20right%20to%20create%20a%20new%20policy%20definition%20on%20Management%20Group%20level%2C%20but%20not%20the%20right%20to%20assign%20the%20definition.%20This%20RBAC%20role%20definition%20could%20be%20created%20with%20the%20following%20access%20rights%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%7B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%3CFONT%20color%3D%22%233366FF%22%3E%22Name%22%3A%3C%2FFONT%3E%26nbsp%3B%3CFONT%20color%3D%22%23993366%22%3E%22Policy%20Definition%20Contributor%22%2C%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%3CFONT%20color%3D%22%233366FF%22%3E%22Id%22%3A%3C%2FFONT%3E%26nbsp%3B%3CFONT%20color%3D%22%230000FF%22%3Enull%2C%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%3CFONT%20color%3D%22%233366FF%22%3E%22IsCustom%22%3A%3C%2FFONT%3E%3CFONT%20color%3D%22%230000FF%22%3E%26nbsp%3Btrue%2C%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%3CFONT%20color%3D%22%233366FF%22%3E%22Description%22%3A%3C%2FFONT%3E%26nbsp%3B%3CFONT%20color%3D%22%23993366%22%3E%22Allows%20to%20create%20Policy%20Definitions%22%2C%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%3CFONT%20color%3D%22%233366FF%22%3E%22Actions%22%3A%3C%2FFONT%3E%20%5B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%3CFONT%20color%3D%22%23993366%22%3E%26nbsp%3B%26nbsp%3B%22Microsoft.Authorization%2FpolicyDefinitions%2F*%22%2C%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20color%3D%22%23993366%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22Microsoft.Authorization%2FpolicySetDefinitions%2F*%22%2C%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20color%3D%22%23993366%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22Microsoft.Management%2FmanagementGroups%2Fread%22%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%5D%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%3CFONT%20color%3D%22%233366FF%22%3E%22NotActions%22%3A%3C%2FFONT%3E%20%5B%5D%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%3CFONT%20color%3D%22%233366FF%22%3E%22AssignableScopes%22%3A%3C%2FFONT%3E%20%5B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%3CFONT%20color%3D%22%23993366%22%3E%26nbsp%3B%22%2Fproviders%2Fmicrosoft.management%2FmanagementGroups%2F%3CROOT%20management%3D%22%22%20group%3D%22%22%20id%3D%22%22%3E%22%3C%2FROOT%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%5D%3C%2FP%3E%0A%3CP%3E%7D%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWith%20that%20role%20assigned%20to%20the%20central%20team%2C%20they%20can%20then%20create%20one%20or%20several%20central%20deploy%20if%20not%20exists%20policies%20(DINE)%2C%20as%20you%20can%20find%20them%20in%20the%20Azure%20Security%20Center%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAzure-Security-Center%2Ftree%2Fmaster%2FPricing%2520%2526%2520Settings%2FAzure%2520Policy%2520definitions%2FBundle%2520Pricings%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EGitHub%20repository%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20learned%20that%20not%20only%20security%20alerts%20and%20recommendations%2C%20but%20also%20your%20Secure%20Score%20itself%20will%20always%20depend%20on%20the%20set%20of%20access%20rights%20your%20account%20will%20have.%20In%20a%20future%20blog%20post%2C%20we%20will%20cover%20this%20aspect%20more%20deeply%20because%20it%20is%20mandatory%20to%20understand%20how%20the%20overall%20Secure%20Score%20might%20be%20different%20from%20a%20Secure%20Score%20that%20is%20true%20for%20a%20subset%20of%20resources%2C%20only.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3EContributors%3A%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3ETom%20Janetscheck%2C%20Senior%20Program%20Manager%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EFernanda%20Vela%2C%20Program%20Manager%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3EReviewers%3A%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EYuri%20Diogenes%2C%20Principal%20Program%20Manager%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EMeital-Taran-Gutman%2C%20Principal%20PM%20Manager%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3ELiron%20Kachko%2C%20Senior%20Software%20Engineer%3C%2FEM%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%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%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%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%3C%2FLINGO-BODY%3E
Microsoft

Over the course of the last couple weeks, I have been asked many questions about how the different RBAC roles in Azure Security Center  and how they should be assigned. In this blog post, I will discuss how to assign the roles used across Azure Security Center and the types of scenarios that determine how they could be assigned.

 


Assigning permissions to users for specific workloads

To assign permissions for Azure workloads:

  1. Log into the Azure portal > type “Subscriptions” in the search bar > select your subscription > then look for Access Control (IAM).  Picture1.png
  2. Once in Access Control (IAM) you will need to add a role assignment, click on “Role assignment”> Add role assignment. The role assignment pane will open and you will select the role assignment to be granted to user.
    Picture2.png

To perform remediation of recommendations, users will need the appropriate permissions and access to those workloads. For example, to remediate recommendations related to virtual machines, the user will need the Security Admin or Contributor on resource group level for people that should manage resources. This role allows users with that role assignment to view Virtual machines in the portal to make changes. 


Assigning permissions for using Logic Apps/Workflow Automation

 

One thing that might be confusing in terms of permissions are Logic Apps, which are used in the Workflow Automation part of Azure Security Center. These Logic Apps can be automatically triggered once a new alert or recommendation appears. You cannot use any type of Logic App for Workflow Automation, but only those with a Security Center Alerts API Connector or a Security Center Recommendations API Connector. So, if you want to configure workflow automation, you must create a Logic App which then can be triggered.

 

The LogicApp itself uses a Managed Identity which can be granted access to resources, if necessary. For example, when your Logic App is supposed to get information about all resources in a subscription from Azure Resource Graph or the Azure Security Center Assessments API once a new recommendation pops up, the Managed Identity would need to be assigned the Reader or Security Reader role on the subscription.

 

The person who creates a new workflow automation does not necessarily have access to all the resources the Logic App will access, because the automation artifact itself has its own permissions. But what level of access is needed to create a workflow automation?

Your user account needs to have the right to create a new workflow automation in a particular resource group and at the same time, to trigger the Logic App you want to use in your workflow automation. So, it’s not enough to only see the Logic App so you can use it, and it is also not enough to only be able to manage Azure Security Center. You will have to make sure that your account will get at least the following permissions:

  • Logic App Contributor on the Logic App’s scope, so you can trigger it
  • Microsoft.Security/automations/write on the resource group you want to create the workflow automation in. This level of access is included in the Security Admin and the Contributor roles.

It is important to understand, that the Security Admin role alone does not allow you to see or manage resources, but only security-related information and settings.


Permissions for Quick Fixes

Quick Fix Remediation enables you to quickly remediate a recommendation directly in the console and improve your secure score quickly. Quick Fixes, use a template deployment or REST PATCH or PUT API call to configure the resource. To view the list of recommendations with Quick Fixes, you can click here.

 

Picture3.png

 

 

Users that will be using the “Quick Fix” feature in Azure Security Center may require additional permissions depending on the logic/action the in the specific recommendation.

 

The screenshot below shows the result of the Diagnostic logs in Logic Apps should be enabled recommendation for a test user which I’ve granted three different sets of access rights on three different resource groups in a test subscription.

 

Picture4.jpg

 

With the Security Reader role, the user will see the assessment result for a particular recommendation, but in order to be able to remediate it, the account would need either the Security Administrator, or Contributor roles assigned.

 

If we take a deeper look at the Security Admin role, we realize that this role does not allow an account to directly access resources, such as storage accounts, VMs, virtual networks, but it will give your account the right to create resource deployments and configure everything which is related to security.

 

Picture5.png

 

As you learned above, the quick fix option in Azure Security Center leverages a REST PATCH or PUT API call which is what is incorporated in the Microsoft.Resources/deployments/* set of access rights. So, in case you want to build a custom role in addition to Security Reader (which will enable you to only see, but not change security configurations), you need to make sure to include the deployments rights as sketched above.


Depending on the scope you grant access rights on, the Secure Score within one subscription might change between user accounts. So, for example, if you have one subscription with several resource groups, and you assign one account the Security Admin role on subscription level, and a second account the Security Reader role on two of these resource groups, the second account might see a higher Secure Score, than the overall Secure Score the first account might see for the subscription. This is because the Secure Score calculation takes place on the scope of resources you can see related information for. The owner of the second account, who only sees Security Recommendations and Alerts for a subset of resources, might think that the overall Secure Score is a lot higher than what is true for the subscription. We will cover that topic with more details in an upcoming blog post.

 

Common ASC scoping Scenarios - and the why

Azure Security Center is a tool that can give you tenant-wide visibility into your security posture depending on the level and scope of access rights your user account has  in your Azure environment. For example, if your account has a role assignment for the Security Reader role on your Tenant Root Group (the upmost Management Group in every Azure Tenant), you will , existing, and future ones, within your company’s environment, r. If your account has been assigned the Contributor role on a single Resource Group in one of your subscriptions only, ASC will exclusively provide you with information about resources within this scope.

 

For the purpose of this post, we will focus on the three most common scenarios:

  1. Security is owned (and enforced) by a central team
  2. Security is owned by resource owners
  3. A mix of both

In the first scenario, a central team is responsible for enforcing security over all subscriptions. It is common practice to assign this team the Security Administrator and Contributor roles on a central scope, such as the Tenant Root Management Group, so they can:

  • Enforce security policies across all subscriptions
  • Remediate security controls and recommendations for all resources in the environment
  • Enforce resource eviction (quarantine) in case a security threat or configuration issue is found

This is a scenario which will give the security team a lot of power and responsibility, which is good from a process point of view, but what also might lead to bad situations in terms of service availability. Therefore, this approach should be chosen for companies only that have a very high level of automation so it can be made sure that security won’t break their business.

 

In the second scenario, there is no central IT security team, or at least, the team does not own security for the company’s Azure subscriptions, which makes the resource owners responsible for security. In this scenario, the central team does not have access to any of the subscriptions, so subscription (or resource group) owners will have the Owner or Contributor roles assigned to their accounts on either subscription or resource group level. In this scenario, every resource owner will see security alert, controls, and recommendations for their owned resources only. However, this approach comes with at least four:

  1. There is no central visibility for security threats and security posture information
  2. Without enforcement, resource owners decide if they want to remediate security controls and recommendations, what might lead to security issues.
  3. Resource owners only see security controls and recommendations for their particular scope. If there is no one who owns the overall security (and gets visibility into subscription- and tenant-wide recommendations), they will never be seen and remediated.
  4.  Security policy is assigned per subscription and can be changed and controlled by the subscription owners

This is why most of my customers chose to go with the third scenario: Resource owners will own security for their resources, but there is a central team that gets insights into the overall security posture. Role assignments for this scenario might be:

  • Owner or Contributor roles for resource owners on subscription or resource group level which will enable them to see security controls and alerts for their resources and to remediate recommendations within their scope.
  • Security Reader role on Management Group level for a central IT security team so they can gather insights for all subscriptions and make resource owner accountable for improving their resources’ security postures.
  • Custom RBAC role(s) on Management Group level for the central team to enable them doing advanced tasks, such as create a security policy on Management Group level which can then be assigned by the resource owners only.

Let's talk more about custom RBAC. As you learned before, you need to have the Microsoft.Resources/deployments/* access rights to  remediate recommendations using the quick fix feature in ASC, which is part of both, Security Admin and Contributor roles. But in the third scenario, we might not want to give this level of access to the central team, because they only should get visibility but not remediation rights. However, imagine they should be able to create new policy definitions that can be used by resource owners to enforce different settings in their subscriptions or resource groups. For example, you want to give resource owners the option to enable the ASC Standard Pricing tier on their resource scope, only. In this case, you could create a custom RBAC role which will give the central team the right to create a new policy definition on Management Group level, but not the right to assign the definition. This RBAC role definition could be created with the following access rights:

 

{

  "Name": "Policy Definition Contributor",

  "Id": null,

  "IsCustom": true,

  "Description": "Allows to create Policy Definitions",

  "Actions": [

    "Microsoft.Authorization/policyDefinitions/*",

    "Microsoft.Authorization/policySetDefinitions/*",

    "Microsoft.Management/managementGroups/read"

  ],

  "NotActions": [],

  "AssignableScopes": [

    "/providers/microsoft.management/managementGroups/<Root Management Group ID>"

  ]

}

 

With that role assigned to the central team, they can then create one or several central deploy if not exists policies (DINE), as you can find them in the Azure Security Center GitHub repository.

 

You learned that not only security alerts and recommendations, but also your Secure Score itself will always depend on the set of access rights your account will have. In a future blog post, we will cover this aspect more deeply because it is mandatory to understand how the overall Secure Score might be different from a Secure Score that is true for a subset of resources, only.

 

 

Contributors:

Tom Janetscheck, Senior Program Manager

Fernanda Vela, Program Manager

 

Reviewers:

Yuri Diogenes, Principal Program Manager

Meital-Taran-Gutman, Principal PM Manager

Liron Kachko, Senior Software Engineer