Deploying an Azure Logic Apps Standard workflow through Azure DevOps Pipeline

Published Jul 19 2021 04:52 AM 3,024 Views
Microsoft

 

In this article, I am providing the step-by-step instructions on deploying a workflow to a Logic App Standard resource through Azure DevOps CI/CD pipelines.

 

Create an Azure DevOps Project:

 

You can login to Azure DevOps and create a project under an existing organization or even create a new organization as below.

Projects - Home (azure.com)

Shree_Divya_M_V_0-1625853190474.png

 

Choose a name and visibility for the project.

Shree_Divya_M_V_1-1625853190480.png

 

Build a CI pipeline:

 

1. Create a GitHub Repository with your project files- Host.json, proxies.json and Workflow Folder.

Shree_Divya_M_V_2-1625853190485.png

2. Generate Connections.JSON file

 

To generate Connections.json using managed identity, it is required to use a PowerShell Script to load all the API connections present in the resource group.

               Below is a sample PowerShell Script to perform this.

https://github.com/ShreeDivyaMV/LogicAppsSamples/blob/18a6a559793707cc380b934ea572eaf07edbac66/azure...

 

3. Create the build pipeline YAML file:

You can refer the below file for the build pipeline. Save this in your repository.

https://github.com/ShreeDivyaMV/LogicAppsSamples/blob/2637d385b738662add626f0fef18621084376539/azure...

 

Please modify the subscription ID, Path to the Generte-connections.ps1 file, source folder and workflow name as appropriate,

Shree_Divya_M_V_3-1625853190489.png

 

 

4. Go to Azure DevOps project which was created in the first step. Create a new pipeline and choose the source as GitHub.

 

Shree_Divya_M_V_4-1625853190494.png

 

 

 

 

 

Shree_Divya_M_V_5-1625853190498.png

 

5. Select the repository, choose the build pipeline and save it.

 

Shree_Divya_M_V_6-1625853190501.png

 

 

Shree_Divya_M_V_7-1625853190505.png

 

Shree_Divya_M_V_8-1625853190507.png

 

 

 

 

 

 

 

Build a CD pipeline:

 

1. Create a CD pipeline in the GitHub Repository. You can refer the below file. Please update the variable file path and add if any connection parameters are there, add them under app-setting as below

https://github.com/ShreeDivyaMV/LogicAppsSamples/blob/2637d385b738662add626f0fef18621084376539/azure...

 

Shree_Divya_M_V_9-1625853190512.png

 

 

2. Update the variable values in the variable YAML file.  https://github.com/ShreeDivyaMV/LogicAppsSamples/blob/18a6a559793707cc380b934ea572eaf07edbac66/azure...

 

The value for the variable “devServiceConnection” can be retrieved from the service connections tab of Azure DevOps Pipeline settings.

 

Shree_Divya_M_V_10-1625853190521.png

 

3. Create another pipeline under the Azure DevOps project referring to the file created above.

Shree_Divya_M_V_11-1625853190524.png

 

Run CI and CD pipelines to build and deploy the workflow:

 

1. Choose the CI pipeline from the Azure pipelines project and click on ‘Run Pipeline’. You can view the status and logs on the same screen.

2. Once it is successful, run the CD pipeline and verify in the Azure portal that workflow is deployed and running fine.

 

Shree_Divya_M_V_12-1625853190527.png

 

 

 

Note: This sample is deploying a workflow to an existing logic app and uses existing connections. In case you would like to deploy a Logic App as well through the CI/CD pipelines, you can refer the repository- logicapps/azure-devops-sample at master · Azure/logicapps (github.com)

 

 

References:

 

GitHub Repository used in this example: LogicAppsSamples/azure-devops-sample at master · ShreeDivyaMV/LogicAppsSamples (github.com)

Base Repository: logicapps/azure-devops-sample at master · Azure/logicapps (github.com)

Set up DevOps for single-tenant Azure Logic Apps - Azure Logic Apps | Microsoft Docs

 

6 Comments
%3CLINGO-SUB%20id%3D%22lingo-sub-2533050%22%20slang%3D%22en-US%22%3EDeploying%20an%20Azure%20Logic%20Apps%20Standard%20workflow%20through%20Azure%20DevOps%20Pipeline%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2533050%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20this%20article%2C%20I%20am%20providing%20the%20step-by-step%20instructions%20on%20deploying%20a%20workflow%20to%20a%20Logic%20App%20Standard%20resource%20through%20Azure%20DevOps%20CI%2FCD%20pipelines.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--408868323%22%20id%3D%22toc-hId--408868329%22%20id%3D%22toc-hId--408868329%22%20id%3D%22toc-hId--408868329%22%20id%3D%22toc-hId--408868329%22%20id%3D%22toc-hId--408868329%22%20id%3D%22toc-hId--408868329%22%20id%3D%22toc-hId--408868329%22%20id%3D%22toc-hId--408868329%22%20id%3D%22toc-hId--408868329%22%20id%3D%22toc-hId--408868329%22%20id%3D%22toc-hId--408868329%22%20id%3D%22toc-hId--408868329%22%20id%3D%22toc-hId--408868329%22%20id%3D%22toc-hId--408868329%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH1%20id%3D%22toc-hId--419371427%22%20id%3D%22toc-hId--419371433%22%20id%3D%22toc-hId--419371433%22%20id%3D%22toc-hId--419371433%22%20id%3D%22toc-hId--419371433%22%20id%3D%22toc-hId--419371433%22%20id%3D%22toc-hId--419371433%22%20id%3D%22toc-hId--419371433%22%20id%3D%22toc-hId--419371433%22%20id%3D%22toc-hId--419371433%22%20id%3D%22toc-hId--419371433%22%20id%3D%22toc-hId--419371433%22%20id%3D%22toc-hId--419371433%22%20id%3D%22toc-hId--419371433%22%20id%3D%22toc-hId--419371433%22%3E%3CSTRONG%3ECreate%20an%20Azure%20DevOps%20Project%3A%3C%2FSTRONG%3E%3C%2FH1%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20login%20to%20Azure%20DevOps%20and%20create%20a%20project%20under%20an%20existing%20organization%20or%20even%20create%20a%20new%20organization%20as%20below.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdev.azure.com%2Fshmvtest%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EProjects%20-%20Home%20(azure.com)%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Shree_Divya_M_V_0-1625853190474.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294711i78068DF5CB071B68%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Shree_Divya_M_V_0-1625853190474.png%22%20alt%3D%22Shree_Divya_M_V_0-1625853190474.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EChoose%20a%20name%20and%20visibility%20for%20the%20project.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Shree_Divya_M_V_1-1625853190480.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294713i657D262341E1C1FC%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Shree_Divya_M_V_1-1625853190480.png%22%20alt%3D%22Shree_Divya_M_V_1-1625853190480.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-2068141406%22%20id%3D%22toc-hId-2068141400%22%20id%3D%22toc-hId-2068141400%22%20id%3D%22toc-hId-2068141400%22%20id%3D%22toc-hId-2068141400%22%20id%3D%22toc-hId-2068141400%22%20id%3D%22toc-hId-2068141400%22%20id%3D%22toc-hId-2068141400%22%20id%3D%22toc-hId-2068141400%22%20id%3D%22toc-hId-2068141400%22%20id%3D%22toc-hId-2068141400%22%20id%3D%22toc-hId-2068141400%22%20id%3D%22toc-hId-2068141400%22%20id%3D%22toc-hId-2068141400%22%20id%3D%22toc-hId-2068141400%22%3E%3CSTRONG%3EBuild%20a%20CI%20pipeline%3A%3C%2FSTRONG%3E%3C%2FH1%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%20Create%20a%20GitHub%20Repository%20with%20your%20project%20files-%20Host.json%2C%20proxies.json%20and%20Workflow%20Folder.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Shree_Divya_M_V_2-1625853190485.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294712i9DEE0204A12E8F09%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Shree_Divya_M_V_2-1625853190485.png%22%20alt%3D%22Shree_Divya_M_V_2-1625853190485.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E2.%20Generate%20Connections.JSON%20file%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20generate%20Connections.json%20using%20managed%20identity%2C%20it%20is%20required%20to%20use%20a%20PowerShell%20Script%20to%20load%20all%20the%20API%20connections%20present%20in%20the%20resource%20group.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Below%20is%20a%20sample%20PowerShell%20Script%20to%20perform%20this.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FShreeDivyaMV%2FLogicAppsSamples%2Fblob%2F18a6a559793707cc380b934ea572eaf07edbac66%2Fazure-devops-sample%2F.pipelines%2Fscripts%2FGenerate-Connections.ps1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FShreeDivyaMV%2FLogicAppsSamples%2Fblob%2F18a6a559793707cc380b934ea572eaf07edbac66%2Fazure-devops-sample%2F.pipelines%2Fscripts%2FGenerate-Connections.ps1%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E3.%20Create%20the%20build%20pipeline%20YAML%20file%3A%3C%2FP%3E%0A%3CP%3EYou%20can%20refer%20the%20below%20file%20for%20the%20build%20pipeline.%20Save%20this%20in%20your%20repository.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FShreeDivyaMV%2FLogicAppsSamples%2Fblob%2F18a6a559793707cc380b934ea572eaf07edbac66%2Fazure-devops-sample%2F.pipelines%2Fclassic%2Fci-pipeline.yml%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FShreeDivyaMV%2FLogicAppsSamples%2Fblob%2F18a6a559793707cc380b934ea572eaf07edbac66%2Fazure-devops-sample%2F.pipelines%2Fclassic%2Fci-pipeline.yml%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20modify%20the%20subscription%20ID%2C%20Path%20to%20the%20Generte-connections.ps1%20file%2C%20source%20folder%20and%20workflow%20name%20as%20appropriate%2C%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Shree_Divya_M_V_3-1625853190489.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294714i19F6D2E8B235FDAE%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Shree_Divya_M_V_3-1625853190489.png%22%20alt%3D%22Shree_Divya_M_V_3-1625853190489.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E4.%20Go%20to%20Azure%20DevOps%20project%20which%20was%20created%20in%20the%20first%20step.%20Create%20a%20new%20pipeline%20and%20choose%20the%20source%20as%20GitHub.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Shree_Divya_M_V_4-1625853190494.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294715i79E37A8B59C6F631%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Shree_Divya_M_V_4-1625853190494.png%22%20alt%3D%22Shree_Divya_M_V_4-1625853190494.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Shree_Divya_M_V_5-1625853190498.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294716i98A00947E9E50887%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Shree_Divya_M_V_5-1625853190498.png%22%20alt%3D%22Shree_Divya_M_V_5-1625853190498.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E5.%20Select%20the%20repository%2C%20choose%20the%20build%20pipeline%20and%20save%20it.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Shree_Divya_M_V_6-1625853190501.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294717i6DA25869CF4772A0%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Shree_Divya_M_V_6-1625853190501.png%22%20alt%3D%22Shree_Divya_M_V_6-1625853190501.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Shree_Divya_M_V_7-1625853190505.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294719i456B63AFDD18507D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Shree_Divya_M_V_7-1625853190505.png%22%20alt%3D%22Shree_Divya_M_V_7-1625853190505.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-left%22%20image-alt%3D%22Shree_Divya_M_V_8-1625853190507.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294718iDB745769CDFCA307%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Shree_Divya_M_V_8-1625853190507.png%22%20alt%3D%22Shree_Divya_M_V_8-1625853190507.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1536264416%22%20id%3D%22toc-hId--1536264422%22%20id%3D%22toc-hId--1536264422%22%20id%3D%22toc-hId--1536264422%22%20id%3D%22toc-hId--1536264422%22%20id%3D%22toc-hId--1536264422%22%20id%3D%22toc-hId--1536264422%22%20id%3D%22toc-hId--1536264422%22%20id%3D%22toc-hId--1536264422%22%20id%3D%22toc-hId--1536264422%22%20id%3D%22toc-hId--1536264422%22%20id%3D%22toc-hId--1536264422%22%20id%3D%22toc-hId--1536264422%22%20id%3D%22toc-hId--1536264422%22%20id%3D%22toc-hId--1536264422%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId-951248417%22%20id%3D%22toc-hId-951248411%22%20id%3D%22toc-hId-951248411%22%20id%3D%22toc-hId-951248411%22%20id%3D%22toc-hId-951248411%22%20id%3D%22toc-hId-951248411%22%20id%3D%22toc-hId-951248411%22%20id%3D%22toc-hId-951248411%22%20id%3D%22toc-hId-951248411%22%20id%3D%22toc-hId-951248411%22%20id%3D%22toc-hId-951248411%22%20id%3D%22toc-hId-951248411%22%20id%3D%22toc-hId-951248411%22%20id%3D%22toc-hId-951248411%22%20id%3D%22toc-hId-951248411%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--856206046%22%20id%3D%22toc-hId--856206052%22%20id%3D%22toc-hId--856206052%22%20id%3D%22toc-hId--856206052%22%20id%3D%22toc-hId--856206052%22%20id%3D%22toc-hId--856206052%22%20id%3D%22toc-hId--856206052%22%20id%3D%22toc-hId--856206052%22%20id%3D%22toc-hId--856206052%22%20id%3D%22toc-hId--856206052%22%20id%3D%22toc-hId--856206052%22%20id%3D%22toc-hId--856206052%22%20id%3D%22toc-hId--856206052%22%20id%3D%22toc-hId--856206052%22%20id%3D%22toc-hId--856206052%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId-1631306787%22%20id%3D%22toc-hId-1631306781%22%20id%3D%22toc-hId-1631306781%22%20id%3D%22toc-hId-1631306781%22%20id%3D%22toc-hId-1631306781%22%20id%3D%22toc-hId-1631306781%22%20id%3D%22toc-hId-1631306781%22%20id%3D%22toc-hId-1631306781%22%20id%3D%22toc-hId-1631306781%22%20id%3D%22toc-hId-1631306781%22%20id%3D%22toc-hId-1631306781%22%20id%3D%22toc-hId-1631306781%22%20id%3D%22toc-hId-1631306781%22%20id%3D%22toc-hId-1631306781%22%20id%3D%22toc-hId-1631306781%22%3E%3CSTRONG%3EBuild%20a%20CD%20pipeline%3A%3C%2FSTRONG%3E%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%20Create%20a%20CD%20pipeline%20in%20the%20GitHub%20Repository.%20You%20can%20refer%20the%20below%20file.%20Please%20update%20the%20variable%20file%20path%20and%20add%20if%20any%20connection%20parameters%20are%20there%2C%20add%20them%20under%20app-setting%20as%20below%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FShreeDivyaMV%2FLogicAppsSamples%2Fblob%2F18a6a559793707cc380b934ea572eaf07edbac66%2Fazure-devops-sample%2F.pipelines%2Fclassic%2Fcd-pipeline.yml%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FShreeDivyaMV%2FLogicAppsSamples%2Fblob%2F18a6a559793707cc380b934ea572eaf07edbac66%2Fazure-devops-sample%2F.pipelines%2Fclassic%2Fcd-pipeline.yml%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Shree_Divya_M_V_9-1625853190512.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294720i67695BFA50FA4368%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Shree_Divya_M_V_9-1625853190512.png%22%20alt%3D%22Shree_Divya_M_V_9-1625853190512.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E2.%20Update%20the%20variable%20values%20in%20the%20variable%20YAML%20file.%20%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FShreeDivyaMV%2FLogicAppsSamples%2Fblob%2F18a6a559793707cc380b934ea572eaf07edbac66%2Fazure-devops-sample%2F.pipelines%2Fclassic%2Fvariables%2Fpipeline-vars.yml%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FShreeDivyaMV%2FLogicAppsSamples%2Fblob%2F18a6a559793707cc380b934ea572eaf07edbac66%2Fazure-devops-sample%2F.pipelines%2Fclassic%2Fvariables%2Fpipeline-vars.yml%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20value%20for%20the%20variable%20%E2%80%9CdevServiceConnection%E2%80%9D%20can%20be%20retrieved%20from%20the%20service%20connections%20tab%20of%20Azure%20DevOps%20Pipeline%20settings.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Shree_Divya_M_V_10-1625853190521.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294721iFCE1CD4EBFBF6612%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Shree_Divya_M_V_10-1625853190521.png%22%20alt%3D%22Shree_Divya_M_V_10-1625853190521.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E3.%20Create%20another%20pipeline%20under%20the%20Azure%20DevOps%20project%20referring%20to%20the%20file%20created%20above.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Shree_Divya_M_V_11-1625853190524.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294722i4B81B92EF9A311A8%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Shree_Divya_M_V_11-1625853190524.png%22%20alt%3D%22Shree_Divya_M_V_11-1625853190524.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-1620803683%22%20id%3D%22toc-hId-1620803677%22%20id%3D%22toc-hId-1620803677%22%20id%3D%22toc-hId-1620803677%22%20id%3D%22toc-hId-1620803677%22%20id%3D%22toc-hId-1620803677%22%20id%3D%22toc-hId-1620803677%22%20id%3D%22toc-hId-1620803677%22%20id%3D%22toc-hId-1620803677%22%20id%3D%22toc-hId-1620803677%22%20id%3D%22toc-hId-1620803677%22%20id%3D%22toc-hId-1620803677%22%20id%3D%22toc-hId-1620803677%22%20id%3D%22toc-hId-1620803677%22%20id%3D%22toc-hId-1620803677%22%3E%3CSTRONG%3ERun%20CI%20and%20CD%20pipelines%20to%20build%20and%20deploy%20the%20workflow%3A%3C%2FSTRONG%3E%3C%2FH1%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%20Choose%20the%20CI%20pipeline%20from%20the%20Azure%20pipelines%20project%20and%20click%20on%20%E2%80%98Run%20Pipeline%E2%80%99.%20You%20can%20view%20the%20status%20and%20logs%20on%20the%20same%20screen.%3C%2FP%3E%0A%3CP%3E2.%20Once%20it%20is%20successful%2C%20run%20the%20CD%20pipeline%20and%20verify%20in%20the%20Azure%20portal%20that%20workflow%20is%20deployed%20and%20running%20fine.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Shree_Divya_M_V_12-1625853190527.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294723iDACE95C5A5CD3BA7%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Shree_Divya_M_V_12-1625853190527.png%22%20alt%3D%22Shree_Divya_M_V_12-1625853190527.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENote%3A%20This%20sample%20is%20deploying%20a%20workflow%20to%20an%20existing%20logic%20app%20and%20uses%20existing%20connections.%20In%20case%20you%20would%20like%20to%20deploy%20a%20Logic%20App%20as%20well%20through%20the%20CI%2FCD%20pipelines%2C%20you%20can%20refer%20the%20repository-%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2Flogicapps%2Ftree%2Fmaster%2Fazure-devops-sample%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Elogicapps%2Fazure-devops-sample%20at%20master%20%C2%B7%20Azure%2Flogicapps%20(github.com)%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--186650780%22%20id%3D%22toc-hId--186650786%22%20id%3D%22toc-hId--186650786%22%20id%3D%22toc-hId--186650786%22%20id%3D%22toc-hId--186650786%22%20id%3D%22toc-hId--186650786%22%20id%3D%22toc-hId--186650786%22%20id%3D%22toc-hId--186650786%22%20id%3D%22toc-hId--186650786%22%20id%3D%22toc-hId--186650786%22%20id%3D%22toc-hId--186650786%22%20id%3D%22toc-hId--186650786%22%20id%3D%22toc-hId--186650786%22%20id%3D%22toc-hId--186650786%22%20id%3D%22toc-hId--186650786%22%3E%3CSTRONG%3EReferences%3A%3C%2FSTRONG%3E%3C%2FH1%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGitHub%20Repository%20used%20in%20this%20example%3A%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FShreeDivyaMV%2FLogicAppsSamples%2Ftree%2Fmaster%2Fazure-devops-sample%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ELogicAppsSamples%2Fazure-devops-sample%20at%20master%20%C2%B7%20ShreeDivyaMV%2FLogicAppsSamples%20(github.com)%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EBase%20Repository%3A%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2Flogicapps%2Ftree%2Fmaster%2Fazure-devops-sample%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Elogicapps%2Fazure-devops-sample%20at%20master%20%C2%B7%20Azure%2Flogicapps%20(github.com)%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Flogic-apps%2Fset-up-devops-deployment-single-tenant-azure-logic-apps%3Ftabs%3Dazure-devops%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ESet%20up%20DevOps%20for%20single-tenant%20Azure%20Logic%20Apps%20-%20Azure%20Logic%20Apps%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2533050%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20this%20article%2C%20I%20am%20providing%20the%20step-by-step%20instructions%20on%20deploying%20a%20workflow%20to%20a%20Logic%20App%20Standard%20resource%20through%20Azure%20DevOps%20CI%2FCD%20pipelines.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2533050%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ELogic%20Apps%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2585590%22%20slang%3D%22en-US%22%3ERe%3A%20Deploying%20an%20Azure%20Logic%20Apps%20Standard%20workflow%20through%20Azure%20DevOps%20Pipeline%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2585590%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1112177%22%20target%3D%22_blank%22%3E%40aauRHC%3C%2FA%3E%26nbsp%3BThanks%20for%20your%20inputs.%3C%2FP%3E%0A%3CP%3ETo%20fix%20the%20service%20connection%20related%20error%2C%20please%20verify%20that%20you%20have%20copied%20the%20name%20of%20your%20service%20connection%20from%20the%20project%20settings%20page%20of%20your%20Azure%20DevOps%20project%20and%20put%20it%20in%20the%20pipeline-vars.yml%20file.%20Please%20refer%20%26nbsp%3Bsection%20%22Build%20a%20CD%20pipeline%22%20in%20the%20article%20for%20more%20details.%20If%20the%20service%20connection%20to%20Azure%20doesn't%20exist%2C%20you%20can%20create%20one%20as%20well%20from%20the%20same%20page.%20The%20below%20article%20has%20the%20guidelines%20on%20creating%20the%20connection%20to%20an%20Azure%20subscription.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdevops%2Fpipelines%2Flibrary%2Fservice-endpoints%3Fview%3Dazure-devops%26amp%3Btabs%3Dyaml%23sep-azure-classic%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EService%20connections%20in%20Azure%20Pipelines%20-%20Azure%20Pipelines%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnd%20regarding%20the%20guideline%20on%20creating%20the%20pipelines%2C%20the%20GitHub%20sample%20has%20description%20on%20each%20tasks%20in%20the%20pipeline%20and%20I%20have%20highlighted%20the%20variables%20which%20need%20to%20be%20modified%20in%20the%20screenshots.%20I%20would%20elaborate%20the%20steps%20in%20the%20next%20edit%2C%20to%20make%20them%20more%20clearer.%3C%2FP%3E%0A%3CP%3EThanks%20again%20for%20visiting%20the%20blog.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2592397%22%20slang%3D%22en-US%22%3ERe%3A%20Deploying%20an%20Azure%20Logic%20Apps%20Standard%20workflow%20through%20Azure%20DevOps%20Pipeline%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2592397%22%20slang%3D%22en-US%22%3E%3CP%3EI%20was%20able%20to%20resolve%20my%20issue%20by%20changing%20the%20following%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20the%20files%3A%3CBR%20%2F%3E.pipelines%2Fclassic%2Fcd-pipeline.yml%3CBR%20%2F%3E.pipelines%2Fclassic%2Fci-pipeline.yml%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20code%20in%20the%20referenced%20git%20repository%20is%20set%20to%3A%3CBR%20%2F%3EazureSubscription%3A%20'Microsoft%20Azure%20Internal%20Consumption%20(ea3e783f-6b4a-4e74-b379-9fa512da2b7f)'%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethey%20should%20be%20set%20to%3A%3CBR%20%2F%3EazureSubscription%3A%20%24(devServiceConnection)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Esimilar%20to%20the%20files%20in%20the%20.pipelines%2Fcontainer%20folder%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2594321%22%20slang%3D%22en-US%22%3ERe%3A%20Deploying%20an%20Azure%20Logic%20Apps%20Standard%20workflow%20through%20Azure%20DevOps%20Pipeline%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2594321%22%20slang%3D%22en-US%22%3E%3CP%3EWhy%20GitHub%20repo%3F%20Can%20I%20get%20the%20code%20from%20Azure%20DevOps%20Git%20Repos%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2595738%22%20slang%3D%22en-US%22%3ERe%3A%20Deploying%20an%20Azure%20Logic%20Apps%20Standard%20workflow%20through%20Azure%20DevOps%20Pipeline%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2595738%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20%22Generate-Connections.ps1%22%20script%20doesn't%20handle%20%22serviceProviderConnections%22%2C%20is%20there%20any%20plan%20to%20update%20the%20script%20to%20support%20it%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%20I%20attempted%20to%20create%20a%20workflow%20with%20a%20%22List%20blobs%20(V2)%22%20action%20from%20local%20project%20with%20a%20new%20azure%20blob%20connection%2C%20when%20it%20was%20deployed%20to%20Azure%2C%20the%20workflow%20action%20shows%20an%20error%20saying%20%22Connector%20not%20found%22%20and%20when%20I%20browse%20to%20the%20API%20Connection%20the%20status%20says%20%22%3CSPAN%3EAccess%20Policies%20are%20missing%22.%20Is%20this%20working%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2630895%22%20slang%3D%22en-US%22%3ERe%3A%20Deploying%20an%20Azure%20Logic%20Apps%20Standard%20workflow%20through%20Azure%20DevOps%20Pipeline%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2630895%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F816725%22%20target%3D%22_blank%22%3E%40subhankars%3C%2FA%3E%26nbsp%3B%2C%20yes%20the%20code%20can%20be%20taken%20from%20any%20Git%20repo.%20I%20have%20just%20used%20GitHub%20in%20this%20example.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2584951%22%20slang%3D%22en-US%22%3ERe%3A%20Deploying%20an%20Azure%20Logic%20Apps%20Standard%20workflow%20through%20Azure%20DevOps%20Pipeline%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2584951%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20I%20initially%20create%20the%20CI%20pipeline%20and%20try%20to%20run%20it%2C%20I%20see%20the%20following%20error.%20There%20also%20is%20no%20change%20when%20I%20click%20%22Authorize%20resources%22%20either.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20was%20a%20resource%20authorization%20issue%3A%20%22The%20pipeline%20is%20not%20valid.%20Job%20logic_app_build%3A%20Step%20AzurePowerShell%20input%20ConnectedServiceNameARM%20references%20service%20connection%20%3CSPAN%3E%5BazureSubscription%5D%3C%2FSPAN%3E%20which%20could%20not%20be%20found.%20The%20service%20connection%20does%20not%20exist%20or%20has%20not%20been%20authorized%20for%20use.%20For%20authorization%20details%2C%20refer%20to%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fyamlauthz.%26quot%3B%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2Fyamlauthz.%22%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%20when%20I%20go%20to%20%22Run%20new%22%20%26gt%3B%20%22Stages%20to%20run%22%2C%20I%20see%20the%20following%20error%20message%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEncountered%20error(s)%20while%20parsing%20pipeline%20YAML%3A%3CBR%20%2F%3EJob%20logic_app_build%3A%20Step%20input%20azureSubscription%20references%20service%20connection%26nbsp%3B%3CSPAN%3E%5BazureSubscription%5D%3C%2FSPAN%3E%20which%20could%20not%20be%20found.%20The%20service%20connection%20does%20not%20exist%20or%20has%20not%20been%20authorized%20for%20use.%20For%20authorization%20details%2C%20refer%20to%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fyamlauthz%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2Fyamlauthz%3C%2FA%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWould%20you%20know%20what%20is%20causing%20this%20issue%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%20would%20it%20be%20possible%20to%20add%20more%20details%20around%3A%3C%2FP%3E%3CUL%3E%3CLI%3Ecreating%20the%20pipeline%20for%20%22ci-pipeline.yml%22%20in%20Azure%20DevOps%3C%2FLI%3E%3CLI%3Ethe%20values%20that%20need%20to%20be%20set%20for%20the%26nbsp%3B%22ci-pipeline.yml%22%2C%26nbsp%3B%22cd-pipeline.yml%22%2C%20%22pipeline-vars.yml%22%2C%20and%20other%20configuration%20values%3C%2FLI%3E%3CLI%3Esetting%20up%20the%20%22Security%20connection%22%20what%20the%20%22service%20or%20connection%20type%22%20should%20be%20and%20what%20security%20and%20permissions%20are%20required%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYour%20help%20in%20these%20matters%20are%20greatly%20appreciated.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Co-Authors
Version history
Last update:
‎Aug 10 2021 12:39 AM
Updated by: