-
Notifications
You must be signed in to change notification settings - Fork 779
Allow parameters to be omitted so they can be supplied at deploy-time #10454
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
Comments
Agree that we need to revisit this behavior given at least az CLI allows you to add parameters in the deployment command that are not present in the parameters file. @stephaniezyen -- can we discuss this in the next bicep params sync? |
+1 on this... I wanted to migrate from json parameter file but this is currently blocking me as I cannot omit secret parameters I want to seed in key vaults. With json parameter file, I could not specify those and set them from CLI instead. |
Closing as dup of #12019 |
@alex-frankel I quickly looked at the proposed scenario in #12019, but I do not see the use case specified in this issue explicitly listed in the scenario detailed in the linked issue. I probably missed it though... |
With the PR that @polatengin is implementing, you will be able to declare |
@alex-frankel I doubt, especially according to statement "using null is valid only on shared bicepparam files and it turns off the parameter validation process on the file". |
@ggirard07 - you were right :) We are going to get the first iteration out which will only allow @polatengin & @stephaniezyen are working on the ability to explicitly declare params which you know will be provided on the command line. Something like: using 'main.bicep'
@providedWithDeployment()
param foo Leaving this closed as Engin will decide if the details will be provided in #12019 or somewhere else. |
I'm going to reopen this one as it came up again and we don't have the design closed yet. I don't want to lose track of this. |
@alex-frankel thanks for the effort on the topic. I kindly wanted to ask if there is any progress/roadmap on this topic? |
This got discussed yesterday actually. @stephaniezyen and @polatengin are working on a proposal to satisfy the requirements on this one. It's looking like there will be a few options that we will need some feedback on. |
I would also expect to be possible to mix .bicepparam file along with the json file with additional parameters. An example scenario would be .bicepparam file with parameters kept in the source control and the json file with secrets. |
Bicep version
196661b
Describe the bug

Currently, if a required parameter is not assigned a value in a
.bicepparams
file, a BCP258 error will be generated.IMHO this should not be the expected behavior, since it is legit for a user to provide the value at deploy time via the Azure CLI / Azure PowerShell command prompt. The quick fix might be to change the error to a warning.
The text was updated successfully, but these errors were encountered: