Skip to content

How to conditional deploy in a for loop #16669

Answered by jeskew
guimatheus92 asked this question in Q&A
Discussion options

You must be logged in to vote

The condition needs to be inside the loop. Conditions apply to each iteration of the loop, not the loop as a whole. There are some examples you can follow on https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/loops#loop-with-condition

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by guimatheus92
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