How to deploy streamlit on Azure?

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 awesome-streamlit.org 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
  • set folderWatchBlacklist = [''] in the config.toml file

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.

1 Like