Get-AzRoleAssignment doesn't return role name if subscription is specified
Hello
I'm trying to loop over a list of subscriptions for all role assignments.
If within the context I'm in I do $ Get-AzRoleAssignment
I get the following fields all populated DisplayName ObjectId ObjectType RoleDefinitionName Scope
But if I do $ Get-AzRoleAssignment -SubscriptionId $s.Id
The RoleDefinitionName field is blank!
am I missing something? Thanks
PS C:\WINDOWS\system32> get-module -Name Az.Resources
ModuleType Version Name ExportedCommands
Script 4.0.2 Az.Resources {Add-AzADApplicationOwner, Add-AzADGroupMember, Add-AzADGroupOwner, Export-AzDeploymentTemplate...}
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @armleads-azure.
Issue Details
Hello
I'm trying to loop over a list of subscriptions for all role assignments.
If within the context I'm in I do $ Get-AzRoleAssignment
I get the following fields all populated DisplayName ObjectId ObjectType RoleDefinitionName Scope
But if I do $ Get-AzRoleAssignment -SubscriptionId $s.Id
The RoleDefinitionName field is blank!
am I missing something? Thanks
PS C:\WINDOWS\system32> get-module -Name Az.Resources
ModuleType Version Name ExportedCommands
Script 4.0.2 Az.Resources {Add-AzADApplicationOwner, Add-AzADGroupMember, Add-AzADGroupOwner, Export-AzDeploymentTemplate...}
| Author: | sarah026 |
|---|---|
| Assignees: | - |
| Labels: |
|
| Milestone: | - |
Hi @sarah026 , Apologies for the delayed response. I see that this issue was opened a while ago and no further activity had taken place. So wanted to check if you are still looking for assistance on this query or the issue was resolved? Please let us know .
Thank you
Hi @sarah026 We still have not heard back from you. Just wanted to check if you still need assistance on this? Please let us know
Thanks
We will now proceed to close this thread as we have not heard back from you. If there are further questions please feel free to open a new issue. We will gladly continue the discussion.
Thank you