Configuring Azure Pipelines

Azure Pipelines lets you build, test, and deploy with the CI/CD with any language, platform, and cloud provider. Let's perform the following steps to configure Azure Pipelines for the first time:

  1. After you log in to your Azure DevOps account, you will see the links to the main functionality on the left-hand Overview menu. From the Overview menu, click on the Pipelines menu. The following screenshot shows the Welcome to the project! page:

  1. Click on the Create Pipeline button.
  1. As part of the pipeline creation process, you need to set your code repository location. You can import a project from any Git repository. In our example, we will use GitHub as our repository. The following screenshot shows all the other available options:

  1. Click on Authorize AzurePipelines:

  1. Select a repository and click on Approve & Install:

  1. Now, select the repository you would like to configure a pipeline.
  2. Choose Docker to build and push an image to Azure Container Registry. This option will upload the container artifact to the Azure Container Registry service. The following screenshot shows the Docker option that we will be using:

  1. Review your pipeline YAML and click Save and run to approve it.
  2. You will see the pipeline. Click on the Build job to view its details:

With that, you've learned how to configure an Azure Pipeline.