Relative Content

Tag Archive for azureazure-devopsazure-pipelinesazure-bicep

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