Skip to content

Instantly share code, notes, and snippets.

@cmatskas
Created January 4, 2017 21:24
Show Gist options
  • Save cmatskas/75093451c2bc3d047c7e97391a2c66f2 to your computer and use it in GitHub Desktop.
Save cmatskas/75093451c2bc3d047c7e97391a2c66f2 to your computer and use it in GitHub Desktop.
ListRBACForAllResources
Login-AzureRmAccount
Get-AzureRmSubscription
Select-AzureRmSubscription -subscriptionId <yourSubscriptionId>
Get-AzureRmResource | foreach-object {Get-AzureRmRoleAssignment -ResourceGroupName $_.Name}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment