Skip to content

roleAssignment to any resource in any resource group #10192

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

You must be logged in to vote

There is currently a preview feature outlined as below.

You enable this feature in the bicepconfig.json file.

{
  "experimentalFeaturesEnabled": {
    "resourceTypedParamsAndOutputs": true
  }
}

More info here:

I believe it may be possible to enable to use a resource parameter for the scope of a role assignment based on this feature and passing a resource? I haven't tested it out, however I can try to follow up on this one.

There may also be another issue open to create a scope from a ResourceId, if I can find it I will link it later.

In the mean time using the static JSON file that you mentioned, via the following Bicep works well.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@yuanyi2121
Comment options

@brwilkinson
Comment options

@yuanyi2121
Comment options

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