Minimal Flask app for a demo deployment to Azure App Service.
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -r requirements.txt
python app.pyApp will be available at http://localhost:8000 and shows a simple Hello World page.
Create the Azure resources and deploy from this folder:
az group create --name rg-demo-python-app --location westeurope
az appservice plan create --name plan-demo-python-app --resource-group rg-demo-python-app --sku B1 --is-linux
az webapp create --resource-group rg-demo-python-app --plan plan-demo-python-app --name <unique-app-name> --runtime "PYTHON|3.12"
az webapp config set --resource-group rg-demo-python-app --name <unique-app-name> --startup-file "gunicorn --bind 0.0.0.0:\$PORT app:app"
az webapp up --name <unique-app-name> --resource-group rg-demo-python-app --runtime "PYTHON:3.12"/shows a simple HTML page withHello, World!