bicep icon indicating copy to clipboard operation
bicep copied to clipboard

Bicep build-param forces multi-line arrays in generated json

Open jetuser opened this issue 1 year ago • 0 comments

Bicep version Bicep CLI version 0.23.1 (b02de2da48)

Describe the bug When running bicep build-params to generate a json parameters file for ARM, all array parameters are forced into multi-line format. There are scenarios where you might want to avoid that (e.g. token replacement by tooling) that might require a single line format.

To Reproduce Run bicep build-params against any bicepparam file with an array parameter

Additional context It would be extremely useful in my case if we could pass an argument to build-params to force it to keep the value element in the generated json as a singleline (e.g. "value:" ["SOMEVALUE"]). This argument would need to be exposed in the msbuild extension as well as we are generating these json files at build time.

jetuser avatar May 21 '24 19:05 jetuser