-
Notifications
You must be signed in to change notification settings - Fork 728
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
Module outputs as input parameter is not referenced correctly #13947
Comments
This seems like a gap in how Bicep translates output references into ARM JSON expressions. In the second case, the ARM expression should look something like: "input": {
"value": "[toObject(items(reference('a').outputs), lambda('kvp', lambdaVariables('kvp').key), lambda('kvp', lambdaVariables('kvp').value.value))]"
} We block using such an expression directly in Bicep since each property on a reference to module outputs uses the type of the output rather than an object with a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bicep version
0.26.170
Describe the bug
I would like to use the output of a module as the input parameter of another module. The syntax is allowed but when at deployment time, the referenced properties is missing the
value
attribute.To Reproduce
Additional context
This is what is generated when creating the object manually (working case)
When passing outputs directly (non working case)
and then the value is reference with
"[parameters('input').webAppName]"
, so I guess it missed the.value
part.Could it be possible to either add the
.value
when the parameter is coming from the outputs object, or automatically create the value mapping ? The former would better as we may not use all properties of the output.This would help to get rid of a lot mapping boilerplate code
The text was updated successfully, but these errors were encountered: