Prerequisites
- Python 3.12+
- Azure CLI
- Docker (optional — ACR can build in the cloud)
Run locally (Python)
Azure CLI
cd quote-api
python -m venv .venvWindows:
Powershell
.venv\Scripts\Activate.ps1Linux/macOS:
Azure CLI
source .venv/bin/activateAzure CLI
pip install -r requirements.txt
uvicorn app.main:app --reload --port 8000Open http://localhost:8000/docs
Run with Docker
Azure CLI
cd quote-api
docker compose up --buildDeploy to Azure
Windows:
Powershell
cd quote-api
.\deploy.ps1Linux/macOS:
Azure CLI
cd quote-api
chmod +x deploy.sh
./deploy.shSet a unique ACR name if needed:
Azure CLI
ACR_NAME=myuniqueacr123 ./deploy.shThe script creates the resource group, ACR, builds the image, and deploys to Container Apps.
Short notes
- Local =
uvicornon 8000 or Docker Compose - Azure = one-script deploy (
deploy.ps1/deploy.sh) - ACR names must be globally unique