Azure DevOps using Bicep has different behave on local machine compared to ADO runner
I am deploying very simple Azure log search alert rules using Bicep.
Code sample:
Azure Devops pass pipeline parameter between stages
How can I pass the parameter from stageA to stageB?
Passing multiple parameters to bicepparam from azure devops pipeline
We have a main.bicep
file which takes in multiple parameters from azure devops pipeline. The values of the parmaters change according the environment where we are deploying.
We call this file from azure-pipelines.yml
file as az deployment group validate --template-file main.bicep --parameters main.bicepparam
. Since this file takes multiple parameters, I don’t want to pass --parameters key=value
multiple times. I dont want to hardcode the values in the .bicepparam
file as the value can change according to the environment. Is there a better way to do it? I thought of creating a .bicepparam file for each environment but that involves duplication of parameters in all the files