Skip to content

Commit d91e47f

Browse files
author
ecfan
committed
Draft updates
1 parent 56618ff commit d91e47f

File tree

4 files changed

+59
-37
lines changed

4 files changed

+59
-37
lines changed
44.4 KB
Loading
35.5 KB
Loading
74.9 KB
Loading

articles/business-process-tracking/set-up-continuous-integration-deployment.md

Lines changed: 59 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,25 @@ This guide shows how to set up a CI/CD pipeline by using the Azure Logic Apps St
1818

1919
- 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).
2020

21-
- Visual Studio Code and the required prerequisites.
21+
- Visual Studio Code installed with the Azure Logic Apps (Standard) extension and the required prerequisites.
2222

2323
For more information, see [Create Standard logic app workflows with Visual Studio Code](/azure/logic-apps/create-standard-workflows-visual-studio-code.md#prerequisites).
2424

2525
- A Visual Studio Code workspace with an undeployed Standard logic app project.
2626

2727
- An Azure DevOps Services Git repository where you store your source code and artifacts.
2828

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

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

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

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

37-
1. In Visual Studio Code, open your Standard logic app project.
37+
:::image type="content" source="media/set-up-continuous-integration-deployment/clone-repo.png" alt-text="Screenshot shows Azure DevOps, Files page, and selected Clone button." lightbox="media/set-up-continuous-integration-deployment/clone-repo.png":::
38+
39+
1. After you get the clone URL, go to Visual Studio Code, and open your Standard logic app project.
3840

3941
1. From the **Terminal** menu, select **New Terminal**.
4042

@@ -66,23 +68,24 @@ Now, generate deployment scripts for your logic app project. This approach lets
6668

6769
1. If your logic app project isn't currently visible, in Visual Studio Code, on the Activity Bar, select **Explorer**.
6870

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**.
7072

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

7375
| Parameter | Description |
7476
|-----------|-------------|
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. |
7581
| **Subscription** | The Azure subscription. |
76-
| **Resource Group** | The Azure resource group. |
7782
| **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. |
8083

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

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":::
8487

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

8790
`git add -A`<br>
8891
`git commit -m "<your-commit-comment>"`<br>
@@ -92,13 +95,25 @@ Now, generate deployment scripts for your logic app project. This approach lets
9295

9396
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:
9497

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**.
96107

97-
1. Select the appropriate branch.
108+
1. On the **Configure** tab, select **Existing Azure Pipeline YAML file**.
98109

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

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

103118
**/pipelines/infrastructure-pipeline.yaml**
104119

@@ -108,51 +123,58 @@ Now, create a pipeline in your repository for your logic app infrastructure. For
108123

109124
## Create a continuous integration (CI) pipeline
110125

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

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

115-
1. Select **CI-pipeline.yml**.
130+
1. For **Path**, browse to and select the **CI-pipeline.yaml** file at the following location:
116131

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**.
118137

119138
## Create a continuous deployment (CD) pipeline
120139

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

123-
1. Select **Existing Azure Pipeline YAML File**.
146+
**/pipelines/CD-pipeline.yaml**
124147

125-
1. Select **CD-pipeline.yml**.
148+
1. Select **Continue** > **Review**. Provide the name for the pipeline, but the pipeline folder is optional.
126149

127-
1. Provide the name for the pipeline, but the pipeline folder is optional.
150+
1. To complete this task, select **Save**.
128151

129152
## Create a service connection
130153

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).
132155

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**.
134157

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**.
136159

137-
1. Provide the following information:
160+
1. On the **New Azure service connection** pane, provide the following information:
138161

139-
| Parameter | Description |
140-
|-----------|-------------|
141-
| **Identity type** | Select **App registration (automatic)**. |
142-
| **Credential** | Select **Workload identity federation (Recommended)**. |
143-
| **Scope** | Select **Subscription**. |
162+
| Parameter | Value or description |
163+
|-----------|----------------------|
164+
| **Identity type** | **App registration (automatic)**. |
165+
| **Credential** | **Workload identity federation (Recommended)**. |
166+
| **Scope level** | **Subscription**. |
144167
| **Subscription** | Your Azure subscription. |
145168
| **Resource group** | The Azure resource group. |
146169
| **Service Connection Name** | The name for the service connection. |
147-
| **Service Management Reference** (optional) | Context information. |
148170

149171
1. When you're done, select **Save**.
150172

151173
1. Note the name for the created Microsoft Entra ID app registration.
152174

153175
## Find the Microsoft Entra ID application registration
154176

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).
156178

157179
1. In the Azure portal search box, enter the name for the Microsoft Entra ID application.
158180

0 commit comments

Comments
 (0)