Skip to content

bicep decompile-params generates invalid output with error BCP051 #13785

@peter-bertok

Description

@peter-bertok

Bicep version
Bicep CLI version 0.26.54 (5e20b29)

Describe the bug
When running:

bicep decompile-params --force --bicep-file template.bicep params.json

The output starts with the line:

using '/template.bicep'

This first line is invalid and shows the following error: The specified path begins with "/". Files must be referenced using relative paths.bicep(BCP051)

Additional context
While this is easy to fix manually, I'm using this to automatically generate ".bicepparam" files. The idea is to provide a PowerShell script with a table of parameter values and bicep file names, and then have it bulk-generate these files for inclusion in source repos, pipelines, etc... Hence, it is important for the output to be immediately valid and usable as-is.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions