Replies: 1 comment
-
Hi @mcdonamw, thanks for reaching out! We have designed the -AtScope parameter to support this feature, and implemented it in #27113. Which will be released in next version. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to pull a list of role assignments at a given resource level, specifically a resource group. I found I was able to do this with
Get-AzRoleAssignment -ResourceGroupName $ResourceGroupName | where-object {$_.Scope -eq $ResourceGroupId}
.I was hoping to drop that additional filter logic and noticed that Get-AzRoleAssignment also has a Scope parameter and thought it would do exactly what I need, but it appears to act no differently than the query above and I still require the additional filter logic. When looking at the statement, it seems really redundant:
Get-AzRoleAssignment -Scope $ResourceGroupId | where-object {$_.Scope -eq $ResourceGroupId}
.Is this intended?
Beta Was this translation helpful? Give feedback.
All reactions