question

AnderskdK avatar image
0 Votes"
AnderskdK asked JayaC-MSFT commented

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

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DSPatrick avatar image
0 Votes"
DSPatrick answered

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--


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JayaC-MSFT avatar image
0 Votes"
JayaC-MSFT answered JayaC-MSFT commented

Hello @AnderskdK, 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.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @JayaC-MSFT

That would require a task for each existing logic app as well as creating new tasks when new logic apps gets added, or am I mistaken?

0 Votes 0 ·