Deploy FastAPI to Azure

Job ID: 40156185

Budget: $30 – $250 USD

I have a working FastAPI project that now needs to run on Azure App Service and redeploy automatically through GitHub Actions. The repository is ready; what I need is the Azure-side configuration plus a clean CI/CD workflow so every push to main builds, tests, and ships flawlessly.

Key points
• Target runtime: Azure App Service (Linux container)
• CI/CD: GitHub Actions—set up secrets, service connections, and a repeatable YAML workflow
• Use best practices for environment variables, health probes, and roll-back safety

Deliverables
1. Live HTTPS endpoint on Azure App Service running the FastAPI app
2. GitHub Actions pipeline that:
– installs dependencies
– runs unit tests
– builds & pushes the container (or zip package)
– deploys to the App Service slot
3. Short README or inline comments so I can reproduce or tweak the process later

Once everything deploys smoothly on a push to main, we’re done. Let’s get this app online.