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
Copy file name to clipboardExpand all lines: articles/business-process-tracking/set-up-continuous-integration-deployment.md
+59-37Lines changed: 59 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,23 +18,25 @@ This guide shows how to set up a CI/CD pipeline by using the Azure Logic Apps St
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
-
- Visual Studio Code and the required prerequisites.
21
+
- Visual Studio Code installed with the Azure Logic Apps (Standard) extension and the required prerequisites.
22
22
23
23
For more information, see [Create Standard logic app workflows with Visual Studio Code](/azure/logic-apps/create-standard-workflows-visual-studio-code.md#prerequisites).
24
24
25
25
- A Visual Studio Code workspace with an undeployed Standard logic app project.
26
26
27
27
- An Azure DevOps Services Git repository where you store your source code and artifacts.
28
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).
29
+
To create and run pipelines in Azure DevOps, you need the capability to run pipelines on Microsoft-hosted agents. To use Microsoft-hosted agents, your Azure DevOps organization must have access to Microsoft-hosted parallel jobs.
30
30
31
-
After you create your repository, follow these steps to initialize your repository, so you can push your local changes to Azure DevOps:
31
+
If you don't have a repository, follow the steps in [Create a new Git repo in your project](/azure/devops/repos/git/create-new-repo). To create repository, you need a GitHub account or Microsoft account, an Azure DevOps organization, and an Azure DevOps project where you're an administrator.
32
32
33
-
1. Clone your repository. Find and save the clone URL.
33
+
After you create the repository, clone the repository to your computer and initialize the repository, so that you can push local changes to Azure DevOps:
34
34
35
-
For more information, see [Clone an existing Git repo](/azure/devops/repos/git/clone).
35
+
1. Follow the steps in [Clone the repo to your computer](/azure/devops/repos/git/create-new-repo#clone-the-repo-to-your-computer), for example:
36
36
37
-
1. In Visual Studio Code, open your Standard logic app project.
1. After you get the clone URL, go to Visual Studio Code, and open your Standard logic app project.
38
40
39
41
1. From the **Terminal** menu, select **New Terminal**.
40
42
@@ -66,23 +68,24 @@ Now, generate deployment scripts for your logic app project. This approach lets
66
68
67
69
1. If your logic app project isn't currently visible, in Visual Studio Code, on the Activity Bar, select **Explorer**.
68
70
69
-
1. In the **Explorer** window, open the shortcut menu for the project folder, and select **Generate Deployment Scripts**.
71
+
1. In the **Explorer** window, open the shortcut menu for the project folder, and select **Generate deployment scripts**.
70
72
71
-
1. Follow the prompts to provide the following deployment information for your logic app:
73
+
1. Follow the prompts to provide the following deployment information as required for your logic app:
72
74
73
75
| Parameter | Description |
74
76
|-----------|-------------|
77
+
|**Resource group**| Select or create a new Azure resource group. |
78
+
|**Logic app name**| Provide a unique name for your logic app resource. |
79
+
|**Storage account name**| The name for the Azure storage account to use with your logic app. |
80
+
|**App Service plan name**| The name to assign to the App Service plan. |
75
81
|**Subscription**| The Azure subscription. |
76
-
|**Resource Group**| The Azure resource group. |
77
82
|**Location**| The Azure region. |
78
-
|**Logic App Name**| The name for your logic app resource. |
79
-
|**Storage Account Name**| The name for the Azure storage account to use with your logic app. |
80
83
81
-
The deployment process creates the infrastructure (CI) and application (CD) pipelines and parameters files in a deployment folder, for example:
84
+
The deployment script generation process creates a **deployment** folder that contains files for your infrastructure (CI) and application (CD) pipelines along with parameters files, for example:
82
85
83
-
<**SCREENSHOT**>
86
+
:::image type="content" source="media/set-up-continuous-integration-deployment/deployment-scripts.png" alt-text="Screenshot shows Visual Studio code and generated deployment script files." lightbox="media/set-up-continuous-integration-deployment/deployment-scripts.png":::
84
87
85
-
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:
88
+
1.Commit these updates Azure DevOps by running the following Git commands from the command prompt:
86
89
87
90
`git add -A`<br>
88
91
`git commit -m "<your-commit-comment>"`<br>
@@ -92,13 +95,25 @@ Now, generate deployment scripts for your logic app project. This approach lets
92
95
93
96
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), but use the following custom steps:
94
97
95
-
1. Select **Existing Azure Pipeline YAML File**.
98
+
1. In your Azure DevOps project, go to **Pipelines**. Select **Create pipeline**, or **New pipeline** if pipelines exist, for example:
99
+
100
+
:::image type="content" source="media/set-up-continuous-integration-deployment/pipelines.png" alt-text="Screenshot shows Visual Studio code and generated deployment script files." lightbox="media/set-up-continuous-integration-deployment/pipelines.png":::
101
+
102
+
1. On the **Select** tab, select the repo type and the repo to use.
103
+
104
+
This example selects **Azure DevOps**.
105
+
106
+
1. On the **Inventory** tab, select **Non-production** > **Configure pipeline**.
96
107
97
-
1.Select the appropriate branch.
108
+
1.On the **Configure** tab, select **Existing Azure Pipeline YAML file**.
98
109
99
-
Earlier, you pushed local changes to Azure DevOps. Now, you can select the infrastructure pipeline that is created in Visual Studio Code.
110
+
1. For **Branch**, select the appropriate branch.
100
111
101
-
1. To find the pipeline, go to the following location:
112
+
This example selects the **main** branch.
113
+
114
+
Earlier, you pushed changes with generated deployment script files to Azure DevOps. Now, you can select the infrastructure pipeline file that you created in Visual Studio Code.
115
+
116
+
1. For **Path**, browse to and select the **infrastucture-pipeline.yaml** file at the following location:
102
117
103
118
**/pipelines/infrastructure-pipeline.yaml**
104
119
@@ -108,51 +123,58 @@ Now, create a pipeline in your repository for your logic app infrastructure. For
108
123
109
124
## Create a continuous integration (CI) pipeline
110
125
111
-
Create a pipeline in your repository for continuous integration. For the general steps, see [Create your first pipeline](/azure/devops/pipelines/create-first-pipeline), but use the following custom steps:
126
+
Create a pipeline in your repo for continuous integration.
112
127
113
-
1.Select **Existing Azure Pipeline YAML File**.
128
+
1.Follow the steps from the previous section until you specify the path for the CI pipeline.
114
129
115
-
1.Select**CI-pipeline.yml**.
130
+
1.For**Path**, browse to and select the **CI-pipeline.yaml** file at the following location:
116
131
117
-
1. Provide the name for the pipeline, but the pipeline folder is optional.
132
+
**/pipelines/CI-pipeline.yaml**
133
+
134
+
1. Select **Continue** > **Review**. Provide the name for the pipeline, but the pipeline folder is optional.
135
+
136
+
1. To complete this task, select **Save**.
118
137
119
138
## Create a continuous deployment (CD) pipeline
120
139
121
-
In Azure DevOps, create another Pipeline in your repository. For additional information, please refer to Azure DevOps documentation. When creating a Pipeline, use the following configuration:
140
+
Create a pipeline in your repo for continuous deployment.
141
+
142
+
1. Follow the steps from the previous section until you specify the path for the CD pipeline.
143
+
144
+
1. For **Path**, browse to and select the **CD-pipeline.yaml** file at the following location:
122
145
123
-
1. Select **Existing Azure Pipeline YAML File**.
146
+
**/pipelines/CD-pipeline.yaml**
124
147
125
-
1. Select **CD-pipeline.yml**.
148
+
1. Select **Continue** > **Review**. Provide the name for the pipeline, but the pipeline folder is optional.
126
149
127
-
1.Provide the name for the pipeline, but the pipeline folder is optional.
150
+
1.To complete this task, select **Save**.
128
151
129
152
## Create a service connection
130
153
131
-
A service connection is an authenticated connection between Azure Pipelines and external or remote services that you use to complete tasks. In this scenario, the service connection lets your CI/CD process create and manage resources in Azure. These steps create a Microsoft Entra ID app registration that you use as an authentication credential.
154
+
A service connection is an authenticated connection between your pipelines and external or remote services that you use to complete tasks. In this scenario, the service connection lets your CI/CD pipelines create and manage resources in Azure. These steps create a Microsoft Entra ID app registration that you use as an authentication credential. For more information, see [Create Azure Resource Manager service connection that uses workload identity federation](/azure/devops/pipelines/library/connect-to-azure#create-an-azure-resource-manager-service-connection-that-uses-workload-identity-federation).
132
155
133
-
1.Follow the steps in [Create Azure Resource Manager service connection that uses workload identity federation](/azure/devops/pipelines/library/connect-to-azure#create-an-azure-resource-manager-service-connection-that-uses-workload-identity-federation).
156
+
1.In your Azure DevOps project, go to **Project settings** > **Pipelines** > **Service connections**.
134
157
135
-
1.Make sure that you select **Azure Resource Manager** as the service connection type, and then select **Next**.
158
+
1.Select **Create service connection**. On the **New service connection** pane, select **Azure Resource Manager** as the service connection type, and then select **Next**.
136
159
137
-
1.Provide the following information:
160
+
1.On the **New Azure service connection** pane, provide the following information:
1. Note the name for the created Microsoft Entra ID app registration.
152
174
153
175
## Find the Microsoft Entra ID application registration
154
176
155
-
Confirm that your Microsoft Entra ID application has the necessary role and permissions for your scenario and get the object ID for later use.
177
+
Confirm that your Microsoft Entra ID application has the necessary role and permissions for your scenario and get the object ID for later use. For more information about app registrations, see [Register an application in Microsoft Entra ID](/entra/identity-platform/quickstart-register-app).
156
178
157
179
1. In the Azure portal search box, enter the name for the Microsoft Entra ID application.
0 commit comments