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
You can easily adopt DevOps with your Azure IoT Edge applications with the built-in Azure IoT Edge tasks in Azure Pipelines. This article demonstrates how you can use Azure Pipelines to build, test, and deploy Azure IoT Edge modules using YAML. Alternatively, you can [use the classic editor](how-to-continuous-integration-continuous-deployment-classic.md).
17
+
Adopt DevOps with Azure IoT Edge applications using the built-in Azure IoT Edge tasks in Azure Pipelines. This article shows how to use Azure Pipelines to build, test, and deploy Azure IoT Edge modules using YAML. You can also[use the classic editor](how-to-continuous-integration-continuous-deployment-classic.md).
18
18
19
19
:::image type="content" source="./media/how-to-continuous-integration-continuous-deployment/model.png" alt-text="Diagram of continuous integration and continuous development branches for development and production.":::
20
20
21
-
In this article, you learn how to use the built-in [Azure IoT Edge tasks](/azure/devops/pipelines/tasks/build/azure-iot-edge) for Azure Pipelines to create build and release pipelines for your IoT Edge solution. Each Azure IoT Edge task added to your pipeline implements one of the following four actions:
21
+
In this article, you learn how to use the built-in [Azure IoT Edge tasks](/azure/devops/pipelines/tasks/build/azure-iot-edge) for Azure Pipelines to create build and release pipelines for your IoT Edge solution. Each Azure IoT Edge task in the pipeline performs one of the following actions:
22
22
23
23
| Action | Description |
24
24
| --- | --- |
@@ -27,7 +27,7 @@ In this article, you learn how to use the built-in [Azure IoT Edge tasks](/azure
27
27
| Generate deployment manifest | Takes a deployment.template.json file and the variables, then generates the final IoT Edge deployment manifest file. |
28
28
| Deploy to IoT Edge devices | Creates IoT Edge deployments to one or more IoT Edge devices. |
29
29
30
-
Unless otherwise specified, the procedures in this article do not explore all the functionality available through task parameters. For more information, see the following resources:
30
+
Unless specified, this article doesn't cover all the functionality available through task parameters. For more information, see the following resources:
@@ -36,26 +36,26 @@ Unless otherwise specified, the procedures in this article do not explore all th
36
36
37
37
## Prerequisites
38
38
39
-
* An Azure Repos repository. If you don't have one, you can [Create a new Git repo in your project](/azure/devops/repos/git/create-new-repo). For this article, we created a repository called **IoTEdgeRepo**.
40
-
* An IoT Edge solution committed and pushed to your repository. If you want to create a new sample solution for testing this article, follow the steps in [Develop Azure IoT Edge modules using Visual Studio Code](tutorial-develop-for-linux.md). For this article, we created a solution in our repository called **IoTEdgeSolution**, which has the code for a module named **filtermodule**.
39
+
* An Azure Repos repository. If you don't have one, [Create a new Git repo in your project](/azure/devops/repos/git/create-new-repo). For this article, the repository is called **IoTEdgeRepo**.
40
+
* An IoT Edge solution committed and pushed to your repository. To create a new sample solution for testing this article, follow the steps in [Develop Azure IoT Edge modules using Visual Studio Code](tutorial-develop-for-linux.md). For this article, we created a solution in our repository called **IoTEdgeSolution**, which has the code for a module named **filtermodule**.
41
41
42
-
For this article, all you need is the solution folder created by the IoT Edge templates in either Visual Studio Code or Visual Studio. You don't need to build, push, deploy, or debug this code before proceeding. You'll set up those processes in Azure Pipelines.
42
+
For this article, all you need is the solution folder created by the IoT Edge templates in either Visual Studio Code or Visual Studio. You don't need to build, push, deploy, or debug this code before proceeding. You set up those processes in Azure Pipelines.
43
43
44
-
Know the path to the **deployment.template.json** file in your solution, which is used in several steps. If you're unfamiliar with the role of the deployment template, see [Learn how to deploy modules and establish routes](module-composition.md).
44
+
Make sure you know the path to the **deployment.template.json** file in your solution, which is used in several steps. If you're unfamiliar with the role of the deployment template, see [Learn how to deploy modules and establish routes](module-composition.md).
45
45
46
46
>[!TIP]
47
47
>If you're creating a new solution, clone your repository locally first. Then, when you create the solution you can choose to create it directly in the repository folder. You can easily commit and push the new files from there.
48
48
49
49
* A container registry where you can push module images. You can use [Azure Container Registry](/azure/container-registry/) or a third-party registry.
50
-
* An active Azure [IoT hub](../iot-hub/iot-hub-create-through-portal.md) with at least two IoT Edge devices for testing the separate test and production deployment stages. You can follow the quickstart articles to create an IoT Edge device on [Linux](quickstart-linux.md) or [Windows](quickstart.md)
50
+
* An active Azure [IoT hub](../iot-hub/iot-hub-create-through-portal.md) with at least two IoT Edge devices for testing the separate test and production deployment stages. Follow the quickstart articles to create an IoT Edge device on [Linux](quickstart-linux.md) or [Windows](quickstart.md).
51
51
52
-
For more information about using Azure Repos, see[Share your code with Visual Studio and Azure Repos](/azure/devops/repos/git/share-your-code-in-git-vs).
52
+
Learn more about using Azure Repos in[Share your code with Visual Studio and Azure Repos](/azure/devops/repos/git/share-your-code-in-git-vs).
53
53
54
54
## Create a build pipeline for continuous integration
55
55
56
56
In this section, you create a new build pipeline. You configure the pipeline to run automatically when you check in any changes to the sample IoT Edge solution and to publish build logs.
57
57
58
-
1. Sign in to your Azure DevOps organization (`https://dev.azure.com/{your organization}`) and open the project that contains your IoT Edge solution repository.
58
+
1. Sign in to your Azure DevOps organization (`https://dev.azure.com/{your organization}`), and open the project that contains your IoT Edge solution repository.
59
59
60
60
:::image type="content" source="./media/how-to-continuous-integration-continuous-deployment/initial-project.png" alt-text="Screenshot showing how to open your DevOps project.":::
61
61
@@ -79,7 +79,7 @@ In this section, you create a new build pipeline. You configure the pipeline to
79
79
80
80
:::image type="content" source="./media/how-to-continuous-integration-continuous-deployment/show-assistant.png" alt-text="Screenshot that shows how to select Show assistant to open Tasks palette.":::
81
81
82
-
7. To add a task, place your cursor at the end of the YAML or wherever you want the instructions for your task to be added. Search for and select **Azure IoT Edge**. Fill out the task's parameters as follows. Then, select **Add**.
82
+
7. To add a task, place your cursor at the end of the YAML or wherever you want the instructions for your task to be added. Search for and select **Azure IoT Edge**, fill out the task's parameters as follows, and then select **Add**.
83
83
84
84
| Parameter | Description |
85
85
| --- | --- |
@@ -131,7 +131,7 @@ In this section, you create a new build pipeline. You configure the pipeline to
131
131
132
132
9. Select **Save** from the **Save and run** dropdown in the top right.
133
133
134
-
10. The trigger for continuous integration is enabled by default for your YAML pipeline. If you wish to edit these settings, select your pipeline and select **Edit** in the top right. Select **More actions** next to the **Run** button in the top right and go to **Triggers**. **Continuous integration** shows as enabled under your pipeline's name. If you wish to see the details for the trigger, check the **Override the YAML continuous integration trigger from here** box.
134
+
10. The trigger for continuous integration is enabled by default for your YAML pipeline. If you want to edit these settings, select your pipeline, and select **Edit** in the top right. Select **More actions** next to the **Run** button in the top right, and go to **Triggers**. **Continuous integration** shows as enabled under your pipeline's name. If you want to see the details for the trigger, check the **Override the YAML continuous integration trigger from here** box.
135
135
136
136
:::image type="content" source="./media/how-to-continuous-integration-continuous-deployment/check-trigger-settings.png" alt-text="Screenshot showing how to review your pipeline's trigger settings from the Triggers menu under More actions.":::
0 commit comments