Introduction

Completed

Azure and Azure DevOps support development of just about any kind of application, including Python. Azure DevOps allows you to build and deploy to just about anywhere. On Azure, you can deploy to a virtual machine, an app service, a serverless solution, or as a container. You can even deploy your application from Azure DevOps to another cloud or on-premises.

In this module, you'll create an automated CI/CD pipeline for a basic Python application that uses Django. You'll learn how a project can begin in GitHub and flow through Azure Pipelines to build, publish, and deploy to Azure App Service.

While this module focuses on the core tasks that are required to build and deploy your app, it's important to understand that all of the other features of Azure Pipelines are still available for Python applications. You can integrate testing, define multiple stages, and perform other tasks just like you would for your existing applications. We omit these tasks here to keep things focused.

Learning objectives

After completing this module, you'll be able to:

  • Explain how Azure and Azure DevOps support Python applications.
  • Create a project in Azure Pipelines that builds and deploys a basic Python application that uses Django to Azure App Service.
  • Trigger the pipeline and see your application be built and deployed to Azure.

Prerequisites

This module is self-contained so that you can complete it on its own. However, we strongly recommend that you familiarize yourself with how Azure DevOps works, and with the kinds of deployment environments that are available to you on Azure, such as Azure App Service. If you're new to Azure or Azure DevOps, we have an extensive series of learning paths to help guide you:

This module also assumes you’re already familiar with Python, although that isn’t a requirement for completing the steps involved. If you'd like to learn more about the basics of Python first, see Python for beginners.