Reader small image

You're reading from  Azure DevOps Explained

Product typeBook
Published inDec 2020
PublisherPackt
ISBN-139781800563513
Edition1st Edition
Tools
Concepts
Right arrow
Authors (3):
Sjoukje Zaal
Sjoukje Zaal
author image
Sjoukje Zaal

Sjoukje Zaal is head of the Microsoft Cloud Center of Excellence, Microsoft Regional Director, and Microsoft Azure MVP with over 20 years' experience in architecture, development, consultancy, and design-related roles. She currently works at Capgemini, a global leader in consultancy, technology services, and digital transformation. She loves to share her knowledge and is active in the Microsoft community as a co-founder of the user groups Tech Daily Chronicle, Global XR Community, and the Mixed Reality User Group. She is also a board member of Azure Thursdays and Global Azure. Sjoukje is an international speaker and is involved in organizing many events. She has written several books and writes blogs.
Read more about Sjoukje Zaal

Stefano Demiliani
Stefano Demiliani
author image
Stefano Demiliani

Stefano Demiliani is a Microsoft MVP on Business Applications and Azure, MCT, Microsoft Certified Solution Developer (MCSD), Azure Certified Architect, and an expert in other Microsoft related technologies. His main activity is architecting and developing enterprise solutions based on the entire stack of Microsoft technologies (mainly focused on ERP and serverless applications). He has worked with Packt Publishing on many IT books related to Azure cloud applications and Dynamics 365 Business Central and is a frequent speaker at IT conferences around Europe. In his free time Stefano is also a runner and a cyclist.
Read more about Stefano Demiliani

Amit Malik
Amit Malik
author image
Amit Malik

Amit Malik is an IT enthusiast and technology evangelist from Delhi, India. He specializes in Virtualization, Cloud, and emerging technology space. He has an intense knowledge in building cloud solutions with Microsoft Windows Azure Pack. Amit holds various industry admired certifications from all major OEM's in Virtualization and Cloud space including MCSE for Private Cloud. Amit has designed and built numerous virtualization and private cloud solutions comprising the product lines of Microsoft, VMware, and Citrix. Apart from these, he can be found working on emerging technologies including VDI, hyper convergence, Software Defined Infrastructure solutions including networking and storage, Containers, Big Data, IoT, and other similar technologies. Amit is interested in building products and doing product management in near future for related technology space. You can always reach Amit on LinkedIn (https://in.linkedin.com/in/amitmalik99)or email (contact2amitmalik@gmail.com)
Read more about Amit Malik

View More author details
Right arrow

Chapter 11: Real-World CI/CD Scenarios with Azure DevOps

In this chapter, we'll show you some sample projects where the continuous integration and continuous delivery (CI/CD) processes are handled by using Azure DevOps. We'll be taking sample applications and setting up a CI/CD pipeline using Azure DevOps for managing the software development, deployment, and upgrade life cycle.

We'll be covering the following topics in this chapter:

  • Setting up a CI/CD pipeline for .NET-based applications
  • Setting up a CI/CD pipeline for a container-based infrastructure
  • Azure Architecture Center for DevOps

Technical requirements

To follow along with this chapter, you need to have an active Azure DevOps organization and an Azure subscription.

You can sign up for a test Azure DevOps organization at https://dev.azure.com. You can get a trial for an Azure subscription at https://azure.microsoft.com/en-in/free/ if you do not have one already.

The code for this chapter is available at https://github.com/PacktPublishing/Learning-Azure-DevOps---B16392/tree/master/Chapter11.

Setting up a CI/CD pipeline for .NET-based applications

A typical .NET-based application includes applications developed using Microsoft's .NET Framework and uses a SQL database in the backend. You may have multiple layers of applications, such as a frontend, backend (also known as the middle tier or API tier), and data tier (SQL Server).

Azure Pipelines, which is part of Azure DevOps, provides a comprehensive solution to build, deploy, and manage your .NET-based infrastructure deployments. In this section, we'll look at the steps to configure CI/CD for a sample .NET-based application.

We will be creating two environments, named staging and production, for the application and setup of a CI/CD pipeline.

Introduction to the sample application

We'll be using a simple ToDo application for this walkthrough. It's a web-based application that uses a SQL database in the backend.

It is built using Microsoft ASP.NET, targeted for .NET Framework version 4...

Setting up a CI/CD pipeline for a container-based application

In this example, we'll take a container-based application and build an end-to-end CI/CD pipeline. We'll take a Python and Redis-based sample application for the purpose of this demonstration.

In this example, we'll be using various Azure resources in the overall solution architecture. This includes the following:

  • Azure DevOps: CI/CD pipeline
  • Azure Kubernetes Service (AKS): For hosting the containers
  • Azure Container Registry (ACR): Container image storage and management

Introduction to the sample app

In this section, we'll be using a sample application called Azure Voting App. It is a standard multi-container-based application that uses the following components:

  • The Azure Voting App backend: This will be running on Redis.
  • The Azure Voting App frontend: Web application built with Python.

You can review the application code here: https://github.com/Azure...

Azure Architecture Center for DevOps

Azure Architecture Center is a centralized place to take guidance for architecting solutions on Azure using established patterns and practices. There are several sample architectures available around DevOps.

You can access Azure Architecture Center here: https://docs.microsoft.com/en-us/azure/architecture/.

Refer to the following links to learn more about planning the right architecture for DevOps across various infrastructure and application scenarios:

Summary

In this chapter, we looked at a .NET and SQL-based application and set up a CI/CD pipeline for it using Azure DevOps. We looked at how you manage your production and staging environments through approval workflows.

Similarly, we also looked at a container-based application and did a walkthrough of setting up an end-to-end CI/CD pipeline for the application using ACR and AKS.

In the end, we talked about Azure Architecture Center, which can be referred to while planning your DevOps architecture.

This was the final chapter, and we hope you have enjoyed reading this book!

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Azure DevOps Explained
Published in: Dec 2020Publisher: PacktISBN-13: 9781800563513
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at ₹800/month. Cancel anytime

Authors (3)

author image
Sjoukje Zaal

Sjoukje Zaal is head of the Microsoft Cloud Center of Excellence, Microsoft Regional Director, and Microsoft Azure MVP with over 20 years' experience in architecture, development, consultancy, and design-related roles. She currently works at Capgemini, a global leader in consultancy, technology services, and digital transformation. She loves to share her knowledge and is active in the Microsoft community as a co-founder of the user groups Tech Daily Chronicle, Global XR Community, and the Mixed Reality User Group. She is also a board member of Azure Thursdays and Global Azure. Sjoukje is an international speaker and is involved in organizing many events. She has written several books and writes blogs.
Read more about Sjoukje Zaal

author image
Stefano Demiliani

Stefano Demiliani is a Microsoft MVP on Business Applications and Azure, MCT, Microsoft Certified Solution Developer (MCSD), Azure Certified Architect, and an expert in other Microsoft related technologies. His main activity is architecting and developing enterprise solutions based on the entire stack of Microsoft technologies (mainly focused on ERP and serverless applications). He has worked with Packt Publishing on many IT books related to Azure cloud applications and Dynamics 365 Business Central and is a frequent speaker at IT conferences around Europe. In his free time Stefano is also a runner and a cyclist.
Read more about Stefano Demiliani

author image
Amit Malik

Amit Malik is an IT enthusiast and technology evangelist from Delhi, India. He specializes in Virtualization, Cloud, and emerging technology space. He has an intense knowledge in building cloud solutions with Microsoft Windows Azure Pack. Amit holds various industry admired certifications from all major OEM's in Virtualization and Cloud space including MCSE for Private Cloud. Amit has designed and built numerous virtualization and private cloud solutions comprising the product lines of Microsoft, VMware, and Citrix. Apart from these, he can be found working on emerging technologies including VDI, hyper convergence, Software Defined Infrastructure solutions including networking and storage, Containers, Big Data, IoT, and other similar technologies. Amit is interested in building products and doing product management in near future for related technology space. You can always reach Amit on LinkedIn (https://in.linkedin.com/in/amitmalik99)or email (contact2amitmalik@gmail.com)
Read more about Amit Malik