Skip to content
Discussion options

You must be logged in to vote

I won't comment too much, other than to say, it's not natively supported.

I saw this idea posted not too long ago...

I am not aware of any open issues for it this, I am guessing we may have one.

  • I'll revisit this thread in a few days for some follow up.

main.bicep

param input array = [
  {
    key: 'k1'
    value: {
      prop1: 'value1'
    }
  }
  {
    key: 'k2'
    value: {
      prop1: 'value2'
    }
  }
]

module loop './nested_loop.bicep' = [for (item, i) in input: {
  name: 'loop${i}'
  params: {
    input: item
    index: i
  }
}]

output finalDictionary object = reference(resourceId('Microsoft.Resources/deployments', 'loop${(length(input) - 1)}')).outputs.dictionary.value

nest…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@brwilkinson
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