-
Notifications
You must be signed in to change notification settings - Fork 730
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
User defined type causes invalid resources loop generation #14365
Comments
Hi @yfakariya, The example with a user-defined type is built as a "symbolic name" template, which requires that the value of the Did you encounter any errors deploying the template compiled with user-defined types? I don't see any errors in the built ARM artifacts, but I may be missing something. |
Thank you for quick and detailed response. As you say, I missed out |
Bicep version
0.28.1
Describe the bug
Loop for user defined array should be treated as built-in array.
That is, following two bicep sources should be built as same:
and
should be built as identically except parameter type declaration.
However, 2nd source is built as invalid ARM template as following:
The
resources
must be array with objects as following:More strangely, just declaring user defined array type causes such breaking for
resources
:It is built as:
It looks that declaration of user defined array causes this bug.
To Reproduce
Run
az bicep build
for above example, then check result json.Additional context
(none)
The text was updated successfully, but these errors were encountered: