Skip to content
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

String functions for compile time #12198

Open
antsok opened this issue Oct 19, 2023 · 1 comment
Open

String functions for compile time #12198

antsok opened this issue Oct 19, 2023 · 1 comment
Labels
enhancement New feature or request Needs: Upvote This issue requires more votes to be considered

Comments

@antsok
Copy link

antsok commented Oct 19, 2023

Is your feature request related to a problem? Please describe.
When working with bicep files and loading JSON/text content to be used as an input, we are performing some string replacement functions.

For example,

var customPolicies = string(loadJsonContent('../../inputs/policies.json'))
var customPoliciesModified1 = replace(customPolicies, "valueOld", "valueNew")
var customPoliciesModified = array(json(customPoliciesModified1))

Currently, this gets converted into ARM functions and increases the size of the deployment and with large JSONs and many replaces it hits ARM limit on string literals in ARM template expressions.

Describe the solution you'd like
A way to apply string functions at a compile time.

@WhitWaldo
Copy link

Related to #444

@stephaniezyen stephaniezyen added Needs: Upvote This issue requires more votes to be considered and removed Needs: Triage 🔍 labels Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Needs: Upvote This issue requires more votes to be considered
Projects
Status: Todo
Development

No branches or pull requests

3 participants