Create & Build CI/CD Pipelines with Azure DevOps — Part 2

Build Release Pipeline

Azure DevOps logo and azure release pipeline cover image for blog with microsoft logos

To start creating a release pipeline, do the following:

  1. Open the Releases tab in Azure Pipelines, open the + drop-down in the list of release pipelines, and choose to Create release pipeline.
  2. The easiest way to create a release pipeline is to use a template. Select the Azure App Service Deployment template. Then choose Apply.
  3. If you created your new release pipeline from a build summary, check that the build pipeline and artifact which are shown in the Artifacts section on the Pipeline tab. If you created a new release pipeline from the Releases tab, choose the + Add link and select your build artifact.
  4. Choose the Continuous deployment icon in the Artifacts section, check that the continuous deployment trigger is enabled, and add a filter to include the main branch.
  5. Open the Tasks tab and, with Stage 1 selected, configure the task property variables as follows:
  • Azure Subscription: Select a connection from the list under Available Azure Service Connections or create a more restricted permissions connection to your Azure subscription. Suppose you are using a TFS or do not see the desired Azure subscription in the list of subscriptions; manually set up the connection. If you are using Azure Pipelines and see an Authorize button next to the input, click on it to authorize Azure Pipelines to connect to your Azure subscription.
  • App Service Name: Select the name of the web app from your subscription.

Step-by-Step Procedure to Configure a Release Pipeline

To create a release pipeline, choose “Releases” from the Left menu and click on “Create New Release Pipeline” or “New release Pipeline.” It displays a new release pipeline screen as shown below:

Use a service connection in Azure Pipelines

To deploy to Azure App Service, you’ll need to use an Azure Resource Manager service connection. The Azure service connection stores the credentials to connect Azure Pipelines or Azure DevOps Server to Azure.

Conclusion

We have shown how to use Azure DevOps to build a release pipeline with the CI/CD pipeline as the artifact source. Thanks for reading, and be sure to reach out to our experts at Payoda Technologies to learn more about building CI/CD pipelines to maximize the impact on your business.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Payoda Technology Inc

Payoda Technology Inc

276 Followers

Your Digital Transformation partner. We are here to share knowledge on varied technologies, updates; and to stay in touch with the tech-space.