This repo is an example of deploying a Python application on Azure AppService with the help of Azure Developer CLI (azd).
The example deploys a Streamlit app, but it can be any Python script or application on Flask, FastAPI, etc.
A good practice is to create a virtual environment like:
python3 -m venv .venv ; source .venv/bin/activate(the exact command can be different depending on your OS and setup)
Then install Python dependencies:
pip install -r app/requirements.txtAnd run:
streamlit run app/app.pyFor Azure, follow azd docs, but it's as simple as:
azd provision
azd deployor just:
azd upThe Makefile also has examples of some useful commands.