Sharing/Importing User Defined Types a crossed files? #11727
Unanswered
hotfix-houdini
asked this question in
Q&A
Replies: 2 comments
-
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
-
In case someone else finds this answer before the Microsoft Learn documentation, this is now supported without the need to enable experimental features. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
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