Skip to content

Assign Multiple RoleAssignments at Different Scopes #5926

Answered by brwilkinson
ArtiomLK asked this question in Q&A
Discussion options

You must be logged in to vote

This is possible... I would recommend to read over this thread of some of the complexities.

#5678

Also this blog which I believe was based on some of the discussions in that thread via @JFolberth

https://blog.johnfolberth.com/nested-loops-in-azure-bicep-with-an-rbac-example/

Then please share back any questions or follows up that you have here.

Essentially to do a role assignment, you deploy into the Scope of the resource E.g. the resource group,
Then you use an existing reference, then you can do the role assignment at that scope of that resource.

So if you have 2 resource groups, you need to have a module to deploy into the scope of those resources groups Etc.

Here is also an alternate …

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@brwilkinson
Comment options

@brwilkinson
Comment options

@ArtiomLK
Comment options

@brwilkinson
Comment options

@brwilkinson
Comment options

Answer selected by brwilkinson
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants