Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bicep foreach syntax fixes #193

Open
wants to merge 3 commits into
base: main
Choose a base branch
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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants