Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to main content

Get the Reddit app

Scan this QR code to download the app now
Or check it out in the app stores
r/AZURE icon
r/AZURE icon
Go to AZURE
r/AZURE
A banner for the subreddit

Join us in discord here: https://aka.ms/azurediscord.


Members Online

Get-AZRoleAssignment not showing Groups?

Question

Hello

I'm trying to get an export of all of my management groups, and then check the role assignments for each one.

However, when I run this:

Get-AzRoleAssignment -ResourceGroupName $mgmtGroup.Name

It returns all objects (service principals, users), but does not groups for some reason.

See below.
This is the PS output for Owners using this command:

Get-AzRoleAssignment -ResourceGroupName $mgmtGroup.Name -IncludeClassicAdministrators |Select RoleDefinitionName,ObjectType,DisplayName,SignInName

r/AZURE - PS Output
PS Output

But there is clearly a group there:

r/AZURE - Portal
Portal

This is really driving me nuts.
Anyone see anything like this before?

Share
Thinking Snoo

Be the first to comment

Nobody's responded to this post yet.
Add your thoughts and get the conversation going.