Closed nicolgit closed 3 years ago
IMHO good point to start Select-AzSubscription -Subscription 43f1aca6-f3da-42f0-b27b-f265ae98ff5f $roles = Get-AzRoleAssignment | Where-Object { $_.ObjectType -ne "ServicePrincipal" -and $_.ObjectType -ne "Unknown" } | Select-Object Scope, DisplayName, SignInName, RoleDefinitionName, ObjectType $roles | Export-Csv -Path ".\rbac-roles.csv" -UseCulture -NoTypeInformation
Select-AzSubscription -Subscription 43f1aca6-f3da-42f0-b27b-f265ae98ff5f $roles = Get-AzRoleAssignment | Where-Object { $_.ObjectType -ne "ServicePrincipal" -and $_.ObjectType -ne "Unknown" } | Select-Object Scope, DisplayName, SignInName, RoleDefinitionName, ObjectType $roles | Export-Csv -Path ".\rbac-roles.csv" -UseCulture -NoTypeInformation
This feature has been implemented with the Azure Data Loader
IMHO good point to start
Select-AzSubscription -Subscription 43f1aca6-f3da-42f0-b27b-f265ae98ff5f $roles = Get-AzRoleAssignment | Where-Object { $_.ObjectType -ne "ServicePrincipal" -and $_.ObjectType -ne "Unknown" } | Select-Object Scope, DisplayName, SignInName, RoleDefinitionName, ObjectType $roles | Export-Csv -Path ".\rbac-roles.csv" -UseCulture -NoTypeInformation