Skip to content
Discussion options

You must be logged in to vote

You can create your base Modules for any Resource kind. Most of the time this will be a Resource Group scoped deployment.

Then you can layer another module on top of that which can start as a Subscription Scoped deployment.

However when you call the first module, you scope it to the specific resource group that you want to target.

Here is an example of a Subscription scoped deployment.

https://github.com/brwilkinson/AzureDeploymentFramework/blob/main/ADF/bicep/sub-RBAC.bicep#L54

module UAI 'sub-RBAC-ALL.bicep' = [for (uai, index) in uaiinfo: if (bool(Stage.UAI) && contains(uai,'RBAC')) {
    name: 'dp-rbac-uai-${Prefix}-${uai.name}'
    params: {
        Deployment: deployment
        Prefix

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@sandeepkumarv232
Comment options

@brwilkinson
Comment options

@brwilkinson
Comment options

@sandeepkumarv232
Comment options

@brwilkinson
Comment options

Answer selected by brwilkinson
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
Converted from issue

This discussion was converted from issue #6585 on April 20, 2022 16:53.