How to deploy streamlit on Azure?

Could anyone please tell me the steps to deploy streamlit app on Microsoft Azure

1 Like

Hi @temp_cmd

The steps depends. Do you wan’t the fastest way to get on Azure with a hoppy project or something you can use robustly for your work over a longer period of time?

I’ve deployed via Azure and I’ve chosen something robust and automated.

  • Azure DevOps Repo
  • Docker (expose your Streamlit App on port 80). Dockerfiles
  • Docker Hub as my container registry. Registry
  • Azure DevOps Pipelines for CI/ CD yaml files, My CI/ CD Setup
  • Azure Web App for containers (configure “Always on” to True). Overview

This takes some time to setup. When it’s done it’s amazing. When I merge into MASTER everything is automatically built, tested and deployed. And I can replicate everything and debug locally in an identical Docker container.

An easier way would (I think) be with an Azure Web App. But I’ve never tried that. For small hobby projects I’ve used Heroku before with success.

Hi Marc

I have the same problem. The solution is to embed the ping part in your python code?