Sharing/Importing User Defined Types a crossed files? #11727
Unanswered
hotfix-houdini
asked this question in
Q&A
Replies: 1 comment
-
Compile-time imports were included as an experimental feature in Bicep 0.21.1. You will need to enable the feature via |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to re-use the same User Defined Type a crossed several different bicep modules. More specifically, I would like to have a user-defined-type as a param to Module A, which in turn just passes it to Module B.
Having a user-defined-type as a param for Module B works fine, but I'm not sure how to "bubble" that type up without copy-pasting the same type in calling modules that also want it as a parameter. The
import
keyword seems to only support extensibility providers and not specific files in the solution. Making an extensibility provider would be absolute overkill to just re-use some types.Is there a way to define user defined types in a file and import that into many different files?
Beta Was this translation helpful? Give feedback.
All reactions