How to deploy a Flask + Docker app to Azure?

Alexander Burton (azsb1g19) 1 Reputation point
2022-01-03T15:07:27.593+00:00

How would I deploy an app or VM to azure that will run a Flask app that requires Docker? (and can service requests to a URL)

Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Sam Cogan 10,822 Reputation points Microsoft Employee Volunteer Moderator
    2022-01-03T16:27:52.043+00:00

    If your application is in a container, then the content of the container are irrelevant to Azure, whether it is Flask, .net etc it doesn't matter.
    To run it you want to use one of the services that support running containers in Azure:

    • Azure Web Apps
    • Azure Kubernetes Service
    • Azure Container Instances
    • Azure Container Apps

    They all have different benefits and costs. If you want the simplest way to get started then I would look at using Azure Web Apps for containers.


  2. Prrudram-MSFT 28,486 Reputation points Microsoft Employee Moderator
    2022-01-05T07:21:31.34+00:00

    Hi @Alexander Burton (azsb1g19) ,

    Welcome to the Microsoft Q&A platform. Happy to answer your question.

    You could achieve this in the following 5 steps. For details refer to creating-and-deploying-a-flask-app-with-docker-on-azure-in-5-easy-9f7aa7a12145

    Creating and Deploying a Flask app with Docker on Azure :

    Step Zero: Install Docker on your local machine and create a Docker Hub account
    Step One: Create your environment with Docker
    Step Three: Upload your Dockerfile to to Docker Hub so you can access is through Azure
    Step Four: Create your container resource on Azure with your published Docker Hub image
    Step Five: Navigate to your container’s IP Address from your browser

    162349-image.png

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.