-
Notifications
You must be signed in to change notification settings - Fork 731
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
Generate and validate default parameter file #4761
Comments
you can install the ARM VSCode extension. Then use snippets. it will provide this... Then you can continue with snippets to create individual params Switch the param file back to JSON language (e.g. F1, language, select) There could be an easier way... related to this: #3381 There is a thread on having the ability to have native Bicep param file format, I will link it if I find it. |
found it: #399 |
Would be nice to have #3381 solved to have this natively in the extension, but to add on @brwilkinson's comment it's also possible to use the following workaround to avoid manually entering the values
If you're a Powershell user I would also recommend the New-BicepParameterFile [-Path] <String> [-Parameters <String>] [[-OutputDirectory] <String>] [-WhatIf]
[-Confirm] [<CommonParameters>] |
I'd like to see exactly the functionality described by @matsest in the Bicep CLI and included as another output of the build step (though ideally it wouldn't be a blanket overwrite so much as:
Especially from a CI/CD standpoint, having a generated parameters file with the names, types and default values would simplify automatically populating the file as opposed to building it outright and having to read the template to extract out these values itself. |
Closing as dup of #512. It would be a great community contribution if anyone has time for it ;) |
Is your feature request related to a problem? Please describe.
I found it odd that for software that generates whole ARM templates, the documentation indicates I have to write my own parameter file by hand and that there's no built-in validator (given that Bicep contains all the metadata used for parameter field validation.
Describe the solution you'd like
I'd like to request a flag that generates a basic parameter file for the build complete with the default values for each parameter and a validation tool that lets me provide a template parameter file at build that Bicep can validate the values of.
The text was updated successfully, but these errors were encountered: