Azure Bicep in DevOps release pipeline

0 votes

I have an Azure DevOps release pipeline to deploy resources using Azure CLI to multiple environments DEV, TEST, PROD. I want to start using Biceps files, but I don't know how to set up a bicep task in a release pipeline. 

My question is Do I need to use a Azure CLI script task type to run something like:

 az deployment group create --resource-group $(resourceGroupName) --template-file $(templateFile) --parameters "{ \"someparameter1\": { \"value\": \"$(someparameter1)\" } }"?

Any help would be appreciated.

Apr 14, 2022 in Other DevOps Questions by Kichu
• 19,040 points
655 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

There are two possible solutions. 

  1. Deploy bicep templates with the az deployment group "create -command" without building them.
  2. Compile the bicep template yourself with a bicep build.

In my opinion, it's better to go with the first approach as you don't have separate build and release pipelines.

answered Apr 17, 2022 by narikkadan
• 63,600 points

edited 3 days ago

Related Questions In Other DevOps Questions

0 votes
0 answers
0 votes
0 answers
0 votes
1 answer

How to configure and execute Azure Devops classic editor pipeline after commit in Github?

If you're looking for CI/CD triggers, all ...READ MORE

answered Feb 10, 2022 in Other DevOps Questions by Bhavitha
• 1,000 points
1,191 views
0 votes
0 answers
0 votes
1 answer
0 votes
0 answers

OWASP Zed Attack Proxy Scan in DevOps pipeline

I want to do the "Authenticated Scan" ...READ MORE

Mar 15, 2022 in DevOps Tools by Kichu
• 19,040 points
933 views
0 votes
1 answer
0 votes
0 answers

Multiple YAML build pipelines in Azure DevOps

Using the new YAML way I want ...READ MORE

Mar 15, 2022 in DevOps Tools by Kichu
• 19,040 points
1,263 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP