You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -3,7 +3,7 @@ title: Set Up CI and CD for Business Processes
3
3
description: Learn how to set up continuous integration and continuous deployment for business processes in different environments without rebuilding or remapping.
4
4
ms.service: azure-business-process-tracking
5
5
ms.topic: how-to
6
-
ms.reviewer: estfan, keweare, azla
6
+
ms.reviewer: estfan, kewear, azla
7
7
ms.date: 06/09/2025
8
8
# Customer intent: As an integration developer, I want to set up continuous integration and continuous delivery for business processes without having to rebuild and map business stages to workflows across different environments, such as development, test, and production.
9
9
---
@@ -12,164 +12,95 @@ ms.date: 06/09/2025
12
12
13
13
To deploy a business process across various environments, such as development, test, and production, without having to remap business stages to workflow operations and rebuild logic app projects, you can set up continuous integration (CI) and continuous deployment (CD)
14
14
15
-
This guide shows how to set up a CI-CD pipeline by using the Azure Logic Apps Standard Tasks for Azure DevOps.
15
+
This guide shows how to set up a CI/CD pipeline by using the Azure Logic Apps Standard Tasks for Azure DevOps.
16
16
17
17
## Prerequisites
18
18
19
19
- An Azure account and subscription. If you don't have an Azure subscription, [sign up for a free Azure account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
20
20
21
-
> [!NOTE]
22
-
>
23
-
> If you're using an [Azure integration environment and application groups](../integration-environments/overview.md)
24
-
> to organize your Azure resources, and you want to map your business process to Azure resources in your
25
-
> integration environment, all your Azure resources must use the same subscription, including your business
26
-
> processes and integration environment. If you're not using an Azure integration environment, you can map
27
-
> your business process to Azure resources where you have access.
21
+
- Visual Studio Code and the required prerequisites.
28
22
29
-
- An Azure DevOps repository for your source code and artifacts
23
+
For more information, see [Create Standard logic app workflows with Visual Studio Code](create-standard-workflows-visual-studio-code.md#prerequisites).
30
24
31
-
If you don't have a repository, follow these steps:
25
+
- A Visual Studio Code workspace with an undeployed Standard logic app project.
32
26
33
-
1.
27
+
- An Azure DevOps Services Git repository where you store your source code and artifacts.
34
28
29
+
If you don't have a repository, follow the steps in [Set up a Git repository](/devops/develop/git/set-up-a-git-repository).
35
30
36
-
- The most recent **Azure Logic Apps Standard Tasks** extension for Azure Pipelines
31
+
After you create your repository, follow these steps to initialize your repository, so you can push your local changes to Azure DevOps:
37
32
38
-
This extension provides automated, build, connections deployment, and release tasks for Azure Logic Apps (Standard). For more information, see [**Azure Logic Apps Standard Tasks**](https://marketplace.visualstudio.com/items?itemName=ms-logicapps-ado.azure-logic-apps-devops-tasks).
39
-
40
-
- An updeployed Standard logic app project in Visual Studio Code
41
-
42
-
43
-
44
-
<aname="create-business-process"></a>
45
-
46
-
## Create a business process
47
-
48
-
1. In the [Azure portal](https://portal.azure.com) search box, enter and select **Business Process Tracking**.
49
-
50
-
:::image type="content" source="media/create-business-process/select-business-process-tracking.png" alt-text="Screenshot shows Azure portal search box with business process tracking entered." lightbox="media/create-business-process/select-business-process-tracking.png":::
51
-
52
-
1. On the **Business Process Tracking** toolbar, select **Create**.
53
-
54
-
1. On the **Create business process** page, on the **Basics** tab, provide the following information:
55
-
56
-
| Property | Required | Value | Description |
57
-
|----------|----------|-------|-------------|
58
-
|**Subscription**| Yes | <*Azure-subscription*> | The Azure subscription to use for your business process. |
59
-
|**Resource group**| Yes | <*Azure-resource-group-name*> | A new or existing Azure resource group. <br><br>This example uses **City-Power-and-Light-RG**. |
60
-
|**Business process name**| Yes | <*process-name*> | A name for your business process. Use only alphanumeric characters, hyphens, underscores, parentheses, or periods. <br><br>This example uses **Resolve-Power-Outage**. |
61
-
|**Description**| No | <*process-description*> | The purpose for your business process. |
62
-
|**Region**| Yes | <*Azure-region*> | The Azure region for your business process. |
63
-
64
-
The following example shows the information for the sample business process:
65
-
66
-
:::image type="content" source="media/create-business-process/business-process-details.png" alt-text="Screenshot shows page for Create business process with Basics tab selected." lightbox="media/create-business-process/business-process-details.png":::
67
-
68
-
1. When you're done, select **Next: Transaction ID**. On the **Transaction ID** tab, provide the following information:
33
+
1. Clone your repository. Find and save the clone URL.
69
34
70
-
| Property | Required | Value | Description |
71
-
|----------|----------|-------|-------------|
72
-
|**Transaction ID**| Yes | <*transaction-ID*> | This important and unique ID identifies a transaction, such as an order number, ticket number, case number, or another similar business identifier that's available across all stages in your business process. <br><br>This example uses the transaction ID named **TicketNumber** to correlate events across the different systems in the example business process, which include CRM, Work Order Management, and Marketing. <br><br>**Note**: Azure Business Process Tracking automatically includes and records the transaction timestamp so that you don't have to separately add this value. Although you can define only a single transaction ID when you create a business process, you can later define other business properties in each stage that you want to record. |
73
-
|**Data type**| Yes | <*transaction-ID-data-type*> | The data type for your transaction ID: **String** or **Integer**. <br><br>This example uses the **Integer** data type. |
35
+
For more information, see [Clone an existing Git repo](/azure/devops/repos/git/clone).
74
36
75
-
The following example shows the sample transaction ID:
37
+
1. In Visual Studio Code, open your Standard logic app project.
76
38
77
-
:::image type="content" source="media/create-business-process/define-transaction-id.png" alt-text="Screenshot shows page for Create business process page with Transaction ID tab selected." lightbox="media/create-business-process/define-transaction-id.png":::
39
+
1. From the **Terminal** menu, select **New Terminal**.
78
40
79
-
1.When you're done, select **Next: Data storage**. On the **Data storage** tab, provide the following information:
41
+
1.From the command prompt, go to the folder that has your project's workspace file.
80
42
81
-
| Property | Required | Value | Description |
82
-
|----------|----------|-------|-------------|
83
-
|**Subscription**| Yes | <*Azure-subscription*> | The Azure subscription for your Data Explorer instance. |
84
-
|**Cluster**| Yes | <*cluster-name*> | The name for the cluster in your Data Explorer instance. |
85
-
|**Database**| Yes | <*database-name*> | The name for the database in your Data Explorer instance. |
86
-
|**Table**| Yes | <*table-name*> | The name for the table to create or use. To update an existing table, select the option to **Use an existing table**. <br><br>**Note**: Although you can use the same name as an existing table, which updates that table, for security purposes, create a unique and separate table for each business process. This practice helps you avoid mixing sensitive data with non-sensitive data and is useful for redeployment scenarios. |
87
-
|**Use an existing table**| No | Enabled or disabled | To update an existing table, select this option. |
43
+
A workspace is a text file with the **.code-workspace** extension. To find the folder with this file, open the **.vscode** folder in your root folder.
88
44
89
-
1.When you're done, select **Create**.
45
+
1.At the command prompt, run the following Git commands:
90
46
91
-
After the Azure portal completes deployment for your new **Business Process** resource, the portal automatically opens the resource's **Overview** page.
47
+
`git init`<br>
48
+
`git add -A`<br>
49
+
`git commit -m "<your-commit-comment>"`<br>
50
+
`git remote add origin <clone-URL>`<br>
51
+
`git push --set-upstream origin main`<br>
92
52
93
-
1.Now, continue on to add the stages for your business process.
53
+
1.At the prompt, provide your Git credentials to the Git Credential Manager.
94
54
95
-
<aname="add-stage"></a>
55
+
- The latest **Azure Logic Apps Standard Tasks** extension for Azure Pipelines
96
56
97
-
## Add a business process stage
98
-
99
-
After you create your business process, add the stages for that process. For example, suppose you're an integration developer at a power company. You manage a solution for a customer work order processor service that's implemented by multiple Standard logic app resources and their workflows. Your customer service team follows the following business process to resolve a customer ticket for a power outage:
100
-
101
-
:::image type="content" source="media/create-business-process/business-process-stages-example.png" alt-text="Conceptual diagram shows example power outage business process stages for customer service at a power company." lightbox="media/create-business-process/business-process-stages-example.png":::
102
-
103
-
1. In the [Azure portal](https://portal.azure.com), open your business process resource, if not already open.
104
-
105
-
1. On the resource menu, under **Business process tracking**, select **Editor**.
106
-
107
-
1. In the editor, select **Add stage**.
108
-
109
-
:::image type="content" source="media/create-business-process/add-stage.png" alt-text="Screenshot shows business process editor with Add stage selected." lightbox="media/create-business-process/add-stage.png":::
110
-
111
-
1. On the **Add stage** pane, provide the following information:
112
-
113
-
> [!TIP]
114
-
>
115
-
> To quickly draft the stages in your business process, just provide the stage
116
-
> name, select **Add**, and then return later to provide the remaining values
117
-
> when you [map the business process to a Standard logic app workflow](map-business-process-workflow.md).
118
-
119
-
| Property | Required | Value | Description |
120
-
|----------|----------|-------|-------------|
121
-
|**Stage name**| Yes | <*stage-name*> | The name for this process stage. Use only alphanumeric characters, hyphens, underscores, parentheses, or periods. |
122
-
|**Description**| No | <*stage-description*> | The purpose for this stage. |
123
-
124
-
This example creates a stage named **Create_ticket**:
125
-
126
-
:::image type="content" source="media/create-business-process/add-stage-quick.png" alt-text="Screenshot shows pane named Add stage with stage name, description, and properties to track." lightbox="media/create-business-process/add-stage.png":::
127
-
128
-
In the **Properties to track** table, on the **Success** tab, your previously defined transaction ID is automatically included. This value is required for correlation across stages and workflows.
57
+
This extension provides automated, build, connections deployment, and release tasks for Azure Logic Apps (Standard). For more information, see [**Azure Logic Apps Standard Tasks**](https://marketplace.visualstudio.com/items?itemName=ms-logicapps-ado.azure-logic-apps-devops-tasks).
129
58
130
-
On the **Success** and **Failure** tabs, you can optionally define and map other business property values that you want to record. You can use these property values to correspondingly identify a successful or failed stage, which is left entirely to your interpretation, business scenarios, or needs.
59
+
## Generate deployment scripts
131
60
132
-
-**Success** tab: Define and map other business property values to identify and record from a successful stage.
61
+
Now, generate deployment scripts for your logic app project. This approach lets you create the required infrastructure with the CI and CD scripts that help you deploy your logic app to Azure. For more information, see [Automate build and deployment for Standard logic app workflows with Azure DevOps](automate-build-deployment-standard.md).
133
62
134
-
-**Failure** tab: Define and map other business property values to identify and record from a failed stage.
63
+
1. If your logic app project isn't currently visible, in Visual Studio Code, on the Activity Bar, select **Explorer**.
135
64
136
-
To define other business property values to use for this stage, follow these steps:
65
+
1. In the **Explorer** window, open the shortcut menu for the project folder, and select **Generate Deployment Scripts**.
137
66
138
-
1.Under **Properties to track**, select **Success** or **Failure** as appropriate.
67
+
1.Follow the prompts to provide the following deployment information for your logic app:
139
68
140
-
1. Under the **Properties to track** table, select **Add property**.
69
+
| Parameter | Description |
70
+
|-----------|-------------|
71
+
|**Subscription**| The Azure subscription. |
72
+
|**Resource Group**| The Azure resource group. |
73
+
|**Location**| The Azure region. |
74
+
|**Logic App Name**| The name for your logic app resource. |
75
+
|**Storage Account Name**| The name for the Azure storage account to use with your logic app. |
141
76
142
-
1. Enter the property name and type, which is either a **String** or **Integer**.
77
+
The deployment process creates the infrastructure (CI) and application (CD) pipelines and parameters files in a deployment folder, for example:
143
78
144
-
For example, this stage specifies a few more properties, such as **CustomerName**, **CustomerEmail**, and **CustomerPhone**, to record from a successfully completed stage:
79
+
<**SCREENSHOT**>
145
80
146
-
:::image type="content" source="media/create-business-process/add-properties.png" alt-text="Screenshot shows pane named Add stage with stage name, description, and more properties to track." lightbox="media/create-business-process/add-properties.png":::
81
+
1. After the generated deployment scripts appear in your project, synchronize these updates to Azure DevOps by running the following Git commands from the command prompt:
147
82
148
-
1. When you're done, select **Add stage**.
83
+
`git add -A`<br>
84
+
`git commit -m "<your-commit-comment>"`<br>
85
+
`git push`
149
86
150
-
Now, you can continue adding more stages or [map each business property in your stage to the respective operation and outputs in a Standard logic app workflow](map-business-process-workflow.md).
87
+
## Create the infrastructure pipeline
151
88
152
-
1. To add another stage, choose one of the following options on the process editor:
89
+
Now, create a pipeline in your repository for your logic app infrastructure. For the general steps, see [Create your first pipeline](/azure/devops/pipelines/create-first-pipeline?view=azure-devops&tabs=java%2Cbrowser), but use the following custom steps:
153
90
154
-
- Under the last stage, select the plus sign (**+**) for **Add a stage**.
155
-
156
-
- Between stages, select the plus sign (**+**), and then select either **Add a stage** or **Add a parallel stage**, which creates a branch in your business process.
91
+
1. Select **Existing Azure Pipeline YAML File**.
157
92
158
-
> [!TIP]
159
-
>
160
-
> To delete a stage, open the stage's shortcut menu, and select **Delete**.
93
+
1. Select the appropriate branch.
161
94
162
-
1. Repeat the preceding steps to add another stage as needed.
95
+
Earlier, you pushed local changes to Azure DevOps. Now, you can select the infrastructure pipeline that is created in Visual Studio Code.
163
96
164
-
The following example shows a completed business process:
97
+
1. To find the pipeline, go to the following location:
165
98
166
-
:::image type="content" source="media/create-business-process/business-process-stages-complete.png" alt-text="Screenshot shows process editor with completed business process stages." lightbox="media/create-business-process/business-process-stages-complete.png":::
99
+
**/pipelines/infrastructure-pipeline.yaml**
167
100
168
-
1.When you're done, on the process editor toolbar, select **Save**.
101
+
1.Select **Continue** > **Review**. Provide the name for the pipeline, but the pipeline folder is optional.
169
102
170
-
1.Now, continue on to [map each business property to the respective operation and outputs in a Standard logic app workflow](map-business-process-workflow.md) so that you can get insights about your deployed resource.
103
+
1.To complete this task, select **Save**.
171
104
172
-
## Next step
105
+
## Related content
173
106
174
-
> [!div class="nextstepaction"]
175
-
> [Map a business process to a Standard logic app workflow](map-business-process-workflow.md)
0 commit comments