Azure Deployment
info
AquaGen API runs on Azure App Service (prod-aquagen). Deployment is done directly from VS Code using the Azure App Service extension — no CI/CD pipeline.
Deployment Workflow
code changes → push to production branch → deploy to prod-aquagen via VS Code Azure extension
- Make and test changes locally
- Push to the
productionbranch:git checkout production
git pull origin production
git merge feature/your-branch
git push origin production - Open VS Code → Azure extension → App Services → right-click
prod-aquagen→ Deploy to Web App - Select the workspace folder when prompted
- VS Code zips the workspace, uploads, and builds on Azure — takes ~20 seconds
The terminal output confirms:
✓ Zip and deploy workspace ~14s
✓ Build app "prod-aquagen" in Azure ~6s
✓ Deploy to app "prod-aquagen" Succeeded in 21s
Azure App Services
The following App Service instances are running under the Microsoft Azure Sponsorship subscription:
| App Service | Purpose |
|---|---|
prod-aquagen | Production API |
Azure Resources
| Resource | Service |
|---|---|
| Cosmos DB | Primary database (standard-categories and test databases) |
| Azure Key Vault | All secrets and credentials |
| Application Insights | Monitoring and telemetry |
| Azure AD | Admin SSO authentication |
All secrets are fetched from Key Vault at startup via smi.get(SecretName.XYZ). No credentials are stored in the codebase or app settings directly.
Troubleshooting
Deployment failed
Check the VS Code Azure output panel for the error message.
App not starting after deploy
Stream logs from the Azure extension: Azure → App Services → prod-aquagen → Logs (Read-only)
Common causes
- Missing or changed Key Vault secret name
- Dependency not in
requirements.txt - Python version mismatch
Next Steps
- Configuration Guide — App settings and environment variables
- Monitoring Guide — Application Insights and alerts