-
Notifications
You must be signed in to change notification settings - Fork 747
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
Runtime error when referencing property which is a number #4007
Comments
Good find, thanks for reporting! |
I did some investigation here - it's actually an issue with the expression serialization/parsing library that we use from the Deployments library, rather than the Bicep code.
I think there are two possible fixes:
|
I don't think you can do option 2 because array indexing is represented by having a I think the only option is option 1. (I assume by checking if "fully numeric" you mean checking it matches the parser rules.) |
Bicep version
Bicep CLI version 0.4.613 (d826ce8)
Describe the bug
The following template compiles successfully, but fails with a deployment error:
But it fails at deployment time with the following error:
Additional context
The bug appears to be with the bicep compiler incorrectly translating
map['1']
to[variables('map').1]
. It should be converted to[variables('map')['1']]
The text was updated successfully, but these errors were encountered: