-
Notifications
You must be signed in to change notification settings - Fork 39
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
Override parameters for bicep parameter files #139
Comments
I am also seeing this issue using Bicep and bicepparam files and would like to give this a +1. At this point, the resolution for me was to deploy the Bicep template along with a JSON ARM parameter file instead of a bicepparam file. |
@bishal-pdMSFT @t-dedah - any update on this? |
This is not possible (yet) because bicepparam doesn't support it. See: https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/parameter-files?tabs=Bicep#parameter-precedence You can use the https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/bicep-functions-parameters-file#readenvironmentvariable function. |
Just wanted to add my +1 to this. I am experiencing this issue on my project. When running the |
As a workaround, you could trying running a |
Regarding workarounds, can confirm the action does not override parameters: >-
main.bicepparam
customParameter=overrideValue but it does work if specified in parameters: main.bicepparam
additionalArguments: >-
-p customParameter=overrideValue |
I believe this should be fixed by Azure/azure-cli#28826. |
I believe this needs to be revisited. I've just tried the workaround as mentioned by @jtomkiew-mng and can confirm that's working as expected. |
I'm in the process of creating workflows to deploy bicep & bicepparam files and need to pass some overrides however when doing so the overrides are not being set when the workflow is running.
Workflow error:
I have tested using an ARM template and parameter file and this appears to be working as expected.
Any idea on how to resolve this issue?
The text was updated successfully, but these errors were encountered: