APIM is Azure API Management — a fully managed API gateway and management platform that sits between API consumers and your backend services. Main components - Gateway: receives every API call, applies policies and forwards requests to backends (App Service, Functions, AKS, Logic Apps, on-premises services or external APIs). A self-hosted gateway can run in your own environment. - Management plane: define APIs (import from OpenAPI, WSDL, Function Apps), products, subscriptions, versions and policies. - Developer portal: auto-generated documentation where developers discover APIs, try them, and get subscription keys. Policies — the core feature Policies are XML rules applied at inbound, backend, outbound and on-error stages, for example: - Security: validate-jwt (check Entra ID tokens), subscription keys, client certificates, IP filtering, CORS. - Traffic control: rate-limit and quota per key or per identity. - Transformation: rewrite URLs, set headers, convert XML to JSON, mask fields. - Performance: response caching. - Resilience: retry, timeouts and backend circuit breakers or load-balanced backend pools. <inbound> <validate-jwt header-name="Authorization" failed-validation-httpcode="401"> <openid-config url="https://login.microsoftonline.com/<tenant>/v2.0/.well-known/openid-configuration" /> <audiences><audience>api://orders</audience></audiences> </validate-jwt> <rate-limit-by-key calls="100" renewal-period="60" counter-key="@(context.Request.IpAddress)" /> </inbound> Why teams use it - A single, consistent front door for many microservices. - Centralised security, throttling and monitoring without changing backend code. - API versioning and revisions to evolve APIs safely. - Monetisation or partner access through products and subscriptions. - Analytics and integration with Application Insights. - AI gateway features to manage and secure calls to Azure OpenAI and other model endpoints (token limits, load balancing, semantic caching). Tiers include Developer (non-production), Basic, Standard and Premium (multi-region, VNet injection, availability zones), plus the v2 tiers and a Consumption tier for serverless, pay-per-call usage.
Ravindra Wadile · · 0 likes