Slide 1

Slide 1 text

No content

Slide 2

Slide 2 text

Azure API Management More than a façade for your APIs Michael Rüefli

Slide 3

Slide 3 text

Michael Rüefli Partner | Solutions Architect scopewyse GmbH michael.rueefli@scopewyse.com www.miru.ch @drmiru drmiru About me | Tech Azure Cloud Platform & Security Security in focus, MCT (Microsoft Certified Trainer) Community worker About me | Private Father, Husband, Skydiver, Skier

Slide 4

Slide 4 text

Agenda ▪ APIM overview ▪ Deployment models ▪ Publish your 1st API ▪ Gotchas ▪ Security ▪ Q&A

Slide 5

Slide 5 text

Azure API Management overview

Slide 6

Slide 6 text

What is APIM? Let's ask someone who should know ;-)

Slide 7

Slide 7 text

▪ Azure API Management is a cloud-based service that enables organizations to create, publish, and manage APIs. ▪ With Azure API Management, organizations can secure, scale, and analyze their APIs to better serve their customers and partners. What is Azure API Management

Slide 8

Slide 8 text

Overview

Slide 9

Slide 9 text

▪ Centralize access to APIs / web services ▪ Version control ▪ Authentication & protection ▪ Request & response mods ▪ Performance optimization ▪ API usage tracking Typical use cases

Slide 10

Slide 10 text

▪ REST ▪ SOAP ▪ oDATA ▪ GraphQL ▪ Websockets Protocol support

Slide 11

Slide 11 text

Next Gen Firewall Web Application Firewall Proxy for frontend apps What API Management is not

Slide 12

Slide 12 text

SKUs Developer Consumption Basic Standard Premium Private Endpoint Vnet Integration SLA Self hosted GWs Policies Availability zones Developer Portal Gitops Multiple custom domains https://learn.microsoft.com/en-us/azure/api-management/api-management-features

Slide 13

Slide 13 text

DEMO

Slide 14

Slide 14 text

Deployment models API Management Self hosted Gateway Backend Service API Management Backend Service VPN / ER private API Management Backend Service VPN / ER private App Gateway WAF private public public Backend Service Backend Service HTTPS Backend Service Cloud / Hybrid Hybrid Hybrid Secured

Slide 15

Slide 15 text

Private networking API Management Private Endpoint Private DNS Zone subnet vnet Private Ingress Public Egress API Management Private DNS Zone subnet vnet Private Ingress Private Egress Backend Service Backend Service Gateway vNET Integration Private Link

Slide 16

Slide 16 text

Internal / External APIs

Slide 17

Slide 17 text

Publishing an API

Slide 18

Slide 18 text

1. Create an API definition 2. Create / adapt policies 3. Create a product 4. Add API to the product 5. Publish product 6. Assign subscription to the product API Publishing

Slide 19

Slide 19 text

▪ CORS ▪ Rate Limiting ▪ Header ▪ validation ▪ Manipulation ▪ Cache Policies - define what happens to calls

Slide 20

Slide 20 text

Demo

Slide 21

Slide 21 text

Gotchas

Slide 22

Slide 22 text

▪ Private Endpoint and vNet injection can't be combined ▪ APIM delegated subnet needs to be in Hub vNet ▪ vNet integrated APIM + WAF = split DNS config Gotchas (1/2)

Slide 23

Slide 23 text

▪ UDR on APIM Subnet: 0.0.0.0/0 -> NH: Internet ▪ Changes on vNet / custom Domain config require instance reboot ~25min ▪ Using NSG on APIM subnet -> https://learn.microsoft.com/en-us/azure/api-management/api-management- using-with-vnet?tabs=stv2#configure-nsg-rules Gotchas (2/2)

Slide 24

Slide 24 text

Security

Slide 25

Slide 25 text

▪ Use WAF in front of APIM ▪ Be strict giving API master keys ▪ Use JWT validation policy for AAD AuthN ▪ Pull named values (secrets) from a Key Vault ▪ Restrict trace functionality to Admins Security Good Practices API Management Networking Authentication Configuration Policies

Slide 26

Slide 26 text

Q&A

Slide 27

Slide 27 text

No content