Skip to content

RBAC - Modification / Removal in BICEP #4432

Answered by alex-frankel
HariRajan2014 asked this question in Q&A
Discussion options

You must be logged in to vote

Can you clarify a bit more about the scenario of needing to add a role assignment, then quickly remove it? Is this specific to assigning blueprints?

Once we have stacks, in two separate deployments of a stack you could do this:

Stack at Time 0:

  • Role Def
  • Role assignment:

Updated stack at Time 1:

  • Role Def

That will remove the role assignment since it is no longer in the bicep/template code.

That's more of a scenario of needing the role assignment at one point, but then deciding it's not needed later, so you update the definition of the goal state. What's a bit more unusual about this scenario is that you know at the beginning you won't need the role assignment eventually.

cc @bmoore-msft

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

@HariRajan2014
Comment options

@alex-frankel
Comment options

@bmoore-msft
Comment options

@HariRajan2014
Comment options

Answer selected by HariRajan2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants