Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

Bicep foreach syntax fixes #193

Closed
wants to merge 3 commits into from

Conversation

anevjes
Copy link

@anevjes anevjes commented Oct 30, 2024

The main change is the reformatting of resource declarations to place the for loop on the same line as the resource type, which is now valid and allows the infra provisioning to complete without errors

@anevjes anevjes requested a review from a team as a code owner October 30, 2024 01:46
@jgbradley1
Copy link
Collaborator

Were you experiencing deployment issues due to formatting? Looking at the acr.bicep file as an example, if I make your changes, running the command az bicep format --file acr.bicep to auto-format the code converts the changes back to the current syntax form.

@anevjes
Copy link
Author

anevjes commented Oct 31, 2024

Were you experiencing deployment issues due to formatting? Looking at the acr.bicep file as an example, if I make your changes, running the command az bicep format --file acr.bicep to auto-format the code converts the changes back to the current syntax form.

hi @jgbradley1 - thats correct - you run into BICEP errors due to formatting issues.

See example below:
image

I am also using latest bicep version:

Bicep CLI version 0.30.23 (ec3612efc7)

@jgbradley1 jgbradley1 closed this May 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants