SlideShare a Scribd company logo
Running Flask apps on
Azure App Service
simon.waight@microsoft.com
@simonwaight
blog.siliconvalve.com
Quickly build, deploy and scale applications
without worrying about infrastructure
Azure App Service
High productivity
Python, Node, Java, .NET
Docker, PHP, Ruby
Staging &
deployment
Testing in
production
App gallery
marketplace
Fully managed
Auto scale &
load balancing
High availability
w/ auto patching
Reduced
operations costs
Backup &
recovery
Enterprise grade
Global data
center footprint
Hybrid
support
Azure AD
integration
Secure &
compliant
App
Service
High
productivity
Your choice of languages,
pre-built packages, and tools
Develop
A
Build
</>
Deploy
Monitor
High
productivity
Your choice of languages,
pre-built packages, and tools
Develop
IDE
tools
Language
Pre-built
packages
.NET
High
productivity
Your choice of languages,
pre-built packages, and tools
Build
z
z
Source
code
CI
engines
Container
registry
Web
ARM
Docker
k8s
Docker
Compose
Zip
war
High
productivity
Your choice of languages,
pre-built packages, and tools
Deploy
z
Slots
CD
tools
Deploy
packages
High
productivity
Your choice of languages,
pre-built packages, and tools
Monitor
Monitoring
Tools
Debug
tools
P R O V I S I O N I N G A P Y T H O N W E B A P P H O S T
Demo Time
Understanding App Service CI / CD
• Kudu and Oryx are the two App Service engines controlling CI and CD
• Kudu does a web-hook triggered pull from source control and performs
local compile and deployment
• Kudu recognises Python apps based on *.py, requirements.txt
or runtime.txt
• Kudu automatically:
• Activates a virtual environment
• Uses PIP to restore modules in requirements.txt.
• Configure via Azure Portal easiest, but also possible via CLI
• Both Kudu and Oryx are open source and available on GitHub.
Python features on App Service
• The Python runtime is deployed from a baseline Docker image
• Docker image:
• Uses Gunicorn WSGI HTTP Server
• Includes Flask web framework. Run Django (or other) frameworks by using
requirements.txt for installation
• Is built using a Dockerfile published on GitHub
• App Settings can be accessed as environment variables using os.eviron
• Troubleshoot runtime issues via web SSH and streaming logs
• Utilise Managed Service Identities (MSI) to access other Azure resources.
Running Flask apps on
Azure App Service
simon.waight@microsoft.com
@simonwaight
blog.siliconvalve.com
https://wp.me/p26dla-T6

More Related Content

PPTX
Continues Integration and Continuous Delivery with Azure DevOps - Deploy Anyt...
PDF
Microsoft Tech Summit Switzerland 2019 - DOCKER + AZURE DEVOPS + KUBERNETES = ♥
PDF
.NET Day Switzerland 2019 - DOCKER + AZURE DEVOPS + KUBERNETES = ♥
PPT
APIs And SDKs Breaking Into And Succeeding In A Specialty Market
DOCX
Sai krishna
PDF
Transformational DevOps with AWS Native Tools
DOCX
Resume: DevOps/Technology Architect - Satya Prakash
PDF
Azure Pipeline Tutorial | Azure DevOps Tutorial | Edureka
Continues Integration and Continuous Delivery with Azure DevOps - Deploy Anyt...
Microsoft Tech Summit Switzerland 2019 - DOCKER + AZURE DEVOPS + KUBERNETES = ♥
.NET Day Switzerland 2019 - DOCKER + AZURE DEVOPS + KUBERNETES = ♥
APIs And SDKs Breaking Into And Succeeding In A Specialty Market
Sai krishna
Transformational DevOps with AWS Native Tools
Resume: DevOps/Technology Architect - Satya Prakash
Azure Pipeline Tutorial | Azure DevOps Tutorial | Edureka

What's hot (19)

PDF
A Pathway to Continuous Integration/Continuous Delivery on AWS
DOCX
Amit_Resume
PPTX
Tour of Azure DevOps
PPTX
Kubernetes VS. App Service: When the orchestrator challenges the platform
PDF
.NET Online TechTalk “Azure Cloud for DEV”
PPTX
Azure, DevOps and the Commodore 64
PPTX
CI/CD on AWS
PPTX
PowerShell and Azure DevOps
PDF
The parallel universes of DevOps and cloud developers
PPTX
CI/CD on pure AWS
PPTX
The Power of Azure DevOps - Global Azure Day 2020
PPTX
Getting Started with Azure DevOps
DOCX
DevOps Resume of Sanu Panji
PPTX
NativeScript Developer Day Keynote - Todd Anglin & Burke Holland
DOC
Serguei_Kouzmine_Resume
PDF
Infrastructure as Code
PDF
DCEU 18: Making Legacy Legendary - A Windows 2003 Application Journey to the ...
PDF
AWS CDK Introduction
PPTX
Infrastructure automation with .NET
A Pathway to Continuous Integration/Continuous Delivery on AWS
Amit_Resume
Tour of Azure DevOps
Kubernetes VS. App Service: When the orchestrator challenges the platform
.NET Online TechTalk “Azure Cloud for DEV”
Azure, DevOps and the Commodore 64
CI/CD on AWS
PowerShell and Azure DevOps
The parallel universes of DevOps and cloud developers
CI/CD on pure AWS
The Power of Azure DevOps - Global Azure Day 2020
Getting Started with Azure DevOps
DevOps Resume of Sanu Panji
NativeScript Developer Day Keynote - Todd Anglin & Burke Holland
Serguei_Kouzmine_Resume
Infrastructure as Code
DCEU 18: Making Legacy Legendary - A Windows 2003 Application Journey to the ...
AWS CDK Introduction
Infrastructure automation with .NET
Ad

Similar to Running Python Flask web apps on Azure App Service (20)

PPTX
Microsoft Innovation Summit
PPTX
Evolution of VS code Java ecosystem
PPTX
Azure DevOps työkalut - Roundtable 14.3.2019
PDF
DevOps e a transformação digital de aplicações
PPTX
Google-App-Engine-A-Comprehensive-Overview (1).pptx
PPTX
Deploy multi-environment application with Azure DevOps
PPTX
Modern Development with Microsoft
PPTX
Azure DevOps CI/CD For Beginners
PPTX
Drive business outcomes using Azure Devops
PDF
Escape the Walls of PaaS: Unlock the Power & Flexibility of DigitalOcean App ...
PDF
Let's banish "it works on my machine"
PPTX
Continuous Delivery with a PaaS Application
PPTX
Webinar: Automate Your Environment Provisioning for Mobile App Development
PDF
Google Drive Integration
PDF
Embarcadero's Connected Development
PPTX
Dload mobile development
PDF
Maria Tverdostup Resume 2017
PDF
.NET Cloud-Native Bootcamp
PDF
Accelerate Your Automation Testing Effort using TestProject & Docker | Docker...
PPTX
Introduction to Single page application in web desing
Microsoft Innovation Summit
Evolution of VS code Java ecosystem
Azure DevOps työkalut - Roundtable 14.3.2019
DevOps e a transformação digital de aplicações
Google-App-Engine-A-Comprehensive-Overview (1).pptx
Deploy multi-environment application with Azure DevOps
Modern Development with Microsoft
Azure DevOps CI/CD For Beginners
Drive business outcomes using Azure Devops
Escape the Walls of PaaS: Unlock the Power & Flexibility of DigitalOcean App ...
Let's banish "it works on my machine"
Continuous Delivery with a PaaS Application
Webinar: Automate Your Environment Provisioning for Mobile App Development
Google Drive Integration
Embarcadero's Connected Development
Dload mobile development
Maria Tverdostup Resume 2017
.NET Cloud-Native Bootcamp
Accelerate Your Automation Testing Effort using TestProject & Docker | Docker...
Introduction to Single page application in web desing
Ad

Recently uploaded (20)

PPTX
Machine Learning_overview_presentation.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
sap open course for s4hana steps from ECC to s4
PPT
Teaching material agriculture food technology
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Machine Learning_overview_presentation.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
The AUB Centre for AI in Media Proposal.docx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Dropbox Q2 2025 Financial Results & Investor Presentation
Spectral efficient network and resource selection model in 5G networks
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
sap open course for s4hana steps from ECC to s4
Teaching material agriculture food technology
Encapsulation_ Review paper, used for researhc scholars
Per capita expenditure prediction using model stacking based on satellite ima...
A comparative analysis of optical character recognition models for extracting...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Machine learning based COVID-19 study performance prediction
Unlocking AI with Model Context Protocol (MCP)
MYSQL Presentation for SQL database connectivity
Agricultural_Statistics_at_a_Glance_2022_0.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx

Running Python Flask web apps on Azure App Service

  • 1. Running Flask apps on Azure App Service simon.waight@microsoft.com @simonwaight blog.siliconvalve.com
  • 2. Quickly build, deploy and scale applications without worrying about infrastructure Azure App Service High productivity Python, Node, Java, .NET Docker, PHP, Ruby Staging & deployment Testing in production App gallery marketplace Fully managed Auto scale & load balancing High availability w/ auto patching Reduced operations costs Backup & recovery Enterprise grade Global data center footprint Hybrid support Azure AD integration Secure & compliant
  • 3. App Service High productivity Your choice of languages, pre-built packages, and tools Develop A Build </> Deploy Monitor
  • 4. High productivity Your choice of languages, pre-built packages, and tools Develop IDE tools Language Pre-built packages .NET
  • 5. High productivity Your choice of languages, pre-built packages, and tools Build z z Source code CI engines Container registry
  • 6. Web ARM Docker k8s Docker Compose Zip war High productivity Your choice of languages, pre-built packages, and tools Deploy z Slots CD tools Deploy packages
  • 7. High productivity Your choice of languages, pre-built packages, and tools Monitor Monitoring Tools Debug tools
  • 8. P R O V I S I O N I N G A P Y T H O N W E B A P P H O S T
  • 10. Understanding App Service CI / CD • Kudu and Oryx are the two App Service engines controlling CI and CD • Kudu does a web-hook triggered pull from source control and performs local compile and deployment • Kudu recognises Python apps based on *.py, requirements.txt or runtime.txt • Kudu automatically: • Activates a virtual environment • Uses PIP to restore modules in requirements.txt. • Configure via Azure Portal easiest, but also possible via CLI • Both Kudu and Oryx are open source and available on GitHub.
  • 11. Python features on App Service • The Python runtime is deployed from a baseline Docker image • Docker image: • Uses Gunicorn WSGI HTTP Server • Includes Flask web framework. Run Django (or other) frameworks by using requirements.txt for installation • Is built using a Dockerfile published on GitHub • App Settings can be accessed as environment variables using os.eviron • Troubleshoot runtime issues via web SSH and streaming logs • Utilise Managed Service Identities (MSI) to access other Azure resources.
  • 12. Running Flask apps on Azure App Service simon.waight@microsoft.com @simonwaight blog.siliconvalve.com https://wp.me/p26dla-T6