-
Notifications
You must be signed in to change notification settings - Fork 762
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
Bicep deploy - additional params support #6159
Comments
This would be the case where, if the user has any param values in their main Bicep file, we add this dynamically to the flow of the deploy command.
@bhsubra
|
@bhsubra this will be our P1 first to-do for the 0.7 timeline |
Wouldn't it be better to focus efforts on #512 / #3381, with additional support for "add missing parameters to params file" I'd have thought users would either have a params file, or not - if they have a 'partial' params file, wouldn't they want to update it rather than leaving it partially complete? |
@anthony-c-martin Here's what we plan to do. We've chatted with Engin and he mentioned that his PR #6601 for generating a param file from a bicep file simply creates a new parameters file or overwrites an existing file of that name. @polatengin mentioned that if it were suggested, that PR could be modified to also gracefully update a file's generated parameter file if it already existed, especially if more params got added to the Bicep file, but I think that is additional behavior for that use case. I believe that his PR is sufficient to help with a user's scenario of wanting a parameters file. I think we should leave it up to a user if they for some reason have a partial params file, if they want to update it to include all of the parameters in the Bicep file or better yet, use @polatengin's new PR feature, that's their choice.
|
Oh, nice - I totally missed that we had a PR out to contribute #512! Thanks for the detailed explanation; if we have a demo of the above, I'd love to see it! Some thoughts/questions:
|
If we go with anthony's suggestion of caching, this may be similar to -> #6222 Thanks for your suggestion Anthony, we'll be asking the user if they want to update the parameters file. This would only happen IF a parameters file was involved in their deployment. @bhsubra and @anthony-c-martin, @stephaniezyen or @alex-frankel , Do we want this to be a VS Code pop up in the bottom right corner with the option of don't ask me again? "Would you like to update your [parameters.json] file to include the values declared for these missing parameters?" [Yes] [No] [Don't Ask me again] Or should it be included in the dialog flow? It feels like since it's a "smart option" it belongs in a pop-up seperate from the actual dialog each time |
Some questions regarding parameters with default values:
or should we allow below format?
I am a bit hesitant to ease the format for any of the types as it might end up complicating things. E.g. when param is of type object
|
Discussed this in team sync up last week. For v1, this is what we plan to do:
|
@anthony-c-martin , thanks for the input. We plan to not support array and objects in first iteration because of the complexities involved. Let me know if you have any concerns. Thanks! cc: @ucheNkadiCode |
Related to #6158 since we currently force the user to browse each time they deploy a bicep file |
Add support to ask for any additional params if they're not specified in the params file
Related to #1862
The text was updated successfully, but these errors were encountered: