Deploy Python Flask Apps with Entra ID Authentication

Published: 14 March 2025
on channel: Mike in the Cloud
4,566
89

In this video, we'll walk through deploying a Python Flask application to Azure Web Apps integrated with Microsoft Entra ID (Azure AD). Step-by-step, you'll learn how to:

Build a simple Flask app and test it locally.

Link to the code: https://github.com/kramit/pythonAuthDemo

Register the Flask application within Microsoft Entra (Azure AD).

Authenticate and fetch user information (user.read scope) to confirm everything is set up correctly.

Create and configure an Azure Web App in the Azure Portal.

Deploy the Flask app directly to Azure using Visual Studio Code (VS Code).

Upload environment variables (.env file) securely to Azure App Service.

Test the deployed web application in Azure to verify it's working correctly with Entra ID authentication.

This tutorial covers essential topics such as Python Flask, Azure Web Apps, Azure App Service, Microsoft Entra ID (formerly Azure Active Directory), OAuth authentication, environment variables management, cloud deployment, and DevOps practices.

By the end of this tutorial, you'll understand how to seamlessly integrate Flask with Azure Web Apps and Microsoft Entra ID for secure authentication, scalable cloud hosting, and efficient web application management.

Deploy Python Flask Apps with Entra ID Authentication


On this page of the site you can watch the video online Deploy Python Flask Apps with Entra ID Authentication with a duration of hours minute second in good quality, which was uploaded by the user Mike in the Cloud 14 March 2025, share the link with friends and acquaintances, this video has already been watched 4,566 times on youtube and it was liked by 89 viewers. Enjoy your viewing!