You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The template function documentation has several bicep examples. Whilst the examples do correctly document the functiosn in question, there are often better ways to avoid those functions in Bicep.
Describe the solution you'd like
Whilst the non optimal examples are probably still ultimately needed as they're needed to document the function, it would be ideal of the documentation could highlight situations where the functions can be replaced with more idiomatic bicep that better maintain type safety. For example:
reference() --> resource.foo when the resource was defined in the same module
reference() --> existing syntax for getting a resource not used in the same module.
Is your feature request related to a problem? Please describe.
https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-resource?tabs=bicep
The template function documentation has several bicep examples. Whilst the examples do correctly document the functiosn in question, there are often better ways to avoid those functions in Bicep.
Describe the solution you'd like
Whilst the non optimal examples are probably still ultimately needed as they're needed to document the function, it would be ideal of the documentation could highlight situations where the functions can be replaced with more idiomatic bicep that better maintain type safety. For example:
reference()
-->resource.foo
when the resource was defined in the same modulereference()
-->existing
syntax for getting a resource not used in the same module.*resourceId()
-->resource.id
The text was updated successfully, but these errors were encountered: