How to use array output in a for loop #3082
-
Hi,
I got an error:
I need this to lookup the ObjectID for a Azure AD Group to use in a roleAssingment This is my deployment script:
How can i do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
This is a current ARM deployments runtime limitation unfortunately. The array of a loop cannot be a runtime-only property, which essentially means we have to know the boundaries of all arrays used for loops before the deployment starts. It's definitely a limitation we'd love to lift, but no ETA for when that will happen. Is there a way to know the length of this |
Beta Was this translation helpful? Give feedback.
This is a current ARM deployments runtime limitation unfortunately. The array of a loop cannot be a runtime-only property, which essentially means we have to know the boundaries of all arrays used for loops before the deployment starts. It's definitely a limitation we'd love to lift, but no ETA for when that will happen. Is there a way to know the length of this
oids
array and provide it as an input parameter instead or is that length going to by dynamic?