Skip to main content

FastAPI with API Management

A FastAPI app deployed as a secured Azure Function with an API Management Policy in front, set up such that API calls require a subscription key but auto-generated documentation is publicly viewable. Project also includes 100% test coverage with Pytest plus a development workflow with ruff, isort, and black.

Architecture

Architecture diagram for FastAPI with API Management

Resources included

Resource
Description
Azure Functions
Execute event-driven serverless code functions with an end-to-end development experience.
Azure API Management
Publish APIs to developers, partners, and employees securely and at scale.
Azure Storage
Secure, scalable cloud storage for your data, apps, and workloads.
Azure Application Insights
Monitor the performance, availability, and usage of web applications in real time.
Azure Key Vault
Safeguard and maintain control of keys and other secrets.
Azure Diagnostic Settings
Collect platform logs and metrics and route them to supported destinations.
Azure Log Analytics
Analyze and act on telemetry collected in Azure Monitor Logs.