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

Additional functionality to Build-Bicep -GenerateParameterFile #25

Closed
StefanIvemo opened this issue Feb 6, 2021 · 5 comments · Fixed by #144
Closed

Additional functionality to Build-Bicep -GenerateParameterFile #25

StefanIvemo opened this issue Feb 6, 2021 · 5 comments · Fixed by #144
Labels
enhancement New feature or request

Comments

@StefanIvemo
Copy link
Member

StefanIvemo commented Feb 6, 2021

Is your feature request related to a problem? Please describe.
The -GenerateParameterFile switch generates a parameter file with all parameters in the .bicep file. You should be able to specify what type of parameters should be added to the parameter file.

Describe the solution you'd like
-GenerateParameterFile should be a parameter supporting the following scenarios.

-GenerateParameterFile All - Should generate a parameter file with all parameters from template (Parameters with expressions should have expression as value)

-GenerateParameterFile Required - Should generate a parameter file with required parameters only

-GenerateParameterFile Default - Should generate a parameter file with all parameters that does not have an expression as default value

Additional context
Add any other context or screenshots about the feature request here.

@StefanIvemo StefanIvemo added the enhancement New feature or request label Feb 6, 2021
@PalmEmanuel
Copy link
Member

Should be connected to the functionality built in #28

@alex-frankel
Copy link

alex-frankel commented May 11, 2021

Can we also have functionality to only generate parameters, without transpiling the bicep code into the ARM template? Now that bicep works natively with PS and Az CLI, I want to build the parameters file from a bicep file and use that in my command as follows:

Generate-BicepParameters
az deployment sub create -f main.bicep -p main.parameters.json -l eastus -c

I want to recommend this module in response to this issue, but it appears this functionality is missing:
Azure/bicep#2626

@StefanIvemo
Copy link
Member Author

@alex-frankel I will fix that, it's a great idea. Plan to ship a new release any day now and we already have the code for such a function from an earlier attempt to improve parameter files.

@alex-frankel
Copy link

alex-frankel commented May 11, 2021

Thanks! It would be awesome if you can jump into the above thread once it's released to let them know.

@StefanIvemo
Copy link
Member Author

Created separate issue for the suggested new function to generate parameter files without transpiling the bicep file into ARM template #139

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants