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
/mnt/c/bicep/test.bicep(3,58) : Error BCP018: Expected the '=' character at this location.
/mnt/c/bicep/test.bicep(4,3) : Error BCP007: This declaration type is not recognized. Specify a parameter, variable, resource, or output declaration.
/mnt/c/bicep/test.bicep(5,3) : Error BCP007: This declaration type is not recognized. Specify a parameter, variable, resource, or output declaration.
/mnt/c/bicep/test.bicep(6,1) : Error BCP007: This declaration type is not recognized. Specify a parameter, variable, resource, or output declaration.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Apologies, the spec you linked to should have had a note saying conditions are not implemented yet. We will be getting to that as part of our 0.3 milestone. Tracked with #186
Ok if I close this? I will open a PR to update the spec accordingly.
Bicep version
Bicep CLI version 0.1.37-alpha (f88c6d9)
Describe the bug
A clear and concise description of what the bug is vs what you expected to happen
https://github.com/Azure/bicep/blob/master/docs/spec/resources.md#conditions
Should be able to conditionally deploy a resource
syntax looks like
Expect this to produce an ARM resource with a
"condition": "[expression here]"
statement, but instead this errors out.Example error message:
To Reproduce
Create a bicep file with
Run bicep --
bicep build test.bicep
view output:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: