You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> bicep version
Bicep CLI version 0.30.23 (ec3612efc7)
Describe the bug
When I try to use a for loop and the spread operator inside the same resource definition, I get this error: System.NotImplementedException: Cannot emit unexpected expression of type ForLoopExpression
This may require #14106 to fully address. ARM copy properties (what for loops compile to) can't be used inside of a shallowMerge function (what spread operations compile to), so the loop would need to be translated to a map function expression for this work
Bicep version
Describe the bug
When I try to use a for loop and the spread operator inside the same resource definition, I get this error:
System.NotImplementedException: Cannot emit unexpected expression of type ForLoopExpression
To Reproduce
The error goes away if I extract the for loop in a variable, or remove usages of the spread operator.
The text was updated successfully, but these errors were encountered: