DSC icon indicating copy to clipboard operation
DSC copied to clipboard

Support `.bicepparam` file

Open Gijsreyn opened this issue 4 months ago • 2 comments

Summary of the new feature / enhancement

As a user, I would like the ability to pass in a .bicepparam file to the --parameters-file subcommand. With Bicep support now added, it makes sense to include it through an extension.

Proposed technical implementation details (optional)

No response

Gijsreyn avatar Aug 12 '25 15:08 Gijsreyn

This should probably be a new import arg type to pass the parameter file passed to DSC to bicep without interpretation

SteveL-MSFT avatar Aug 18 '25 16:08 SteveL-MSFT

After taking a closer look, I think this can rather fall under the discover extension type. The reason is the output and potential passing it to the correct parameter command:

Image

When calling the Az CLI or using Azure PowerShell, a .bicepparam file can be added to TemplateFile or TemplateParameterFile, introducing additional complexity in determining on the DSC side what the user actually wants. Instead of doing it directly in the engine, a script can determine what the user intended. For example, when the using statement is empty, it should be added as a parameter file. But this is just a thought.

Gijsreyn avatar Aug 29 '25 11:08 Gijsreyn