Share via

Azure DevOps Pipeline - Dynamically deploy multiple ARM templates through same pipeline

Anders K 1 Reputation point
2021-06-08T07:42:30.687+00:00

Hello there,

I have a git repo in Azure DevOps containing a Azure Resource Group project used to develop and manage our Logic App templates - and only logic apps.

The project will, as time goes, have more and more logic app templates and when each of those are approved, I want them deployed in our production environment with as little human interaction as possible. When a pull request gets completed, I want it to automatically deployed into production.

My question is whether or not this is possible with only 1 pipeline? Since I have to choose the ARM template and parameter file beforehand in the pipeline task, I'm wondering if the template filename can be set at the time of creating the pull request and pass it to the pipeline as a variable?

I was first thinking about providing the template filename as a tag for the pull request and use that throughout the pipelines, but I can't find a way to do that and it seems way to error prone.

I've then thought about doing it the two following ways, but they are suboptimal compared to what I really want.

  1. To have the template filename manually set, after the pull request has been completed, during the creation of a release or
  2. To create a new pipeline for each logic app in the project.

Thanks!

Regards - Anders

Azure Logic Apps
Azure Logic Apps

An Azure service that automates the access and use of data across clouds without writing code.

0 comments No comments

2 answers

Sort by: Most helpful
  1. JayaC-MSFT 5,606 Reputation points
    2021-06-08T12:23:42.31+00:00

    Hello @Anders K , deployment of multiple templates is possible if we create separate tasks. Here is a similar thread : https://stackoverflow.com/questions/61667478/how-to-deploy-multiple-arm-with-azure-devops-pipeline
    Let me know if this helps.

    Was this answer helpful?


  2. Anonymous
    2021-06-08T12:21:13.203+00:00

    The product group for Azure DevOps / TFS actively monitors questions over at
    https://developercommunity.visualstudio.com/report?space=21&entry=problem
    https://developercommunity.visualstudio.com/report?space=22&entry=problem

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.