Script Release: Azure Access Reviews
Background
Continuing the theme of identity management, let’s take a look at [Get-AzureRoleAssignments]. The genesis of this tool was a seemingly simple request from my Security Operations team.
What resources and permissions does the
Security Analysts L1group provide?
At the time this group had only ever been used in the subscription that housed our Sentinel instance. This made the request easier, I wrote this script to enumerate the assignments for a specific group on a specific subscription. Later when we started doing actual access reviews it grew into the chonk that’s being released today.
Usage
In the simplest case, we can use the following syntax to connect to the specified tenant, iterate through all subscriptions, and enumerate all role assignments.
Get-AzureRoleAssignments.ps1 -tenantId XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX -PrincipalDisplayNames FinanceThis will drop a report in the current directory that will look something like this.
|
|
Additional arguments and use cases are available in the script’s README and Help output.