azure api management,

Introduction to Azure API Management

Sven Malvik Sven Malvik Connect Jan 25, 2021 · 5 mins read
Introduction to Azure API Management

Azure API Management (APIM) is a way to create consistent and modern API gateways for existing backend services. It provides an interface for your backend services and APIs while making sure they’re secured, monitored, maintained, well documented and published in the cloud. This post is a brief introduction into Azure API Management.

An overview of what you get with APIM

  • Rate-limiting: Control the amount of incoming requests. You know your APIs and you know that it might not make sense that a requester pays a bill 10 times in a minute. Rate-limiting can be set based on keys that you choose yourself.
  • Monitor APIs: Identify issues like slow responses.
  • Unify backend APIs: Azure API Management works as an orchestration tool of your backend APIs whether they are in Azure or on-premise. A unified API interface is simple to use for your clients.
  • Analytics: Do you want to monetize your services? Azure API Management got an interface for that. It can also be integrated with Application Insights. You’ll get a full dashboard to see all the data you need.
  • Security: An security breach can ruin your organization.Azure API Management provides OAuth 2.0 user authorization and can be integrated with Azure Active Directory. It can validate JWT token and much more.
  • Transform Data: Policies in Azure API Management let you transform payload into different formats like xml to json. That’s just one feature. As you code policies with .NET Core in C# you got all the flexibility you want.
  • Performance: Caching let you improvement the performance of requests and make your clients happy.
  • Cost Management: There are different pricing options for Azure API Management.

Hopefully, this gave you a somewhat overview of what APIM can do and what the platform has to offer. Now we’re going to dive deeper into the different tools and talk about some of the functions and advantages in detail.

Abstract your back-end implementation & API documentation

Azure API Management supports several API formats. Let’s take a look:

Azure API Management API Format OverviewAzure API Management API Format Overview

Type Details
Blank API Create a blank API definition and then specify all required parameters.
OpenAPI OpenAPI was called Swagger is a specification that document all endpoints and all parameters.
WADL Web Application Description Language is a xml description of Http-based web services. It’ lighter that WSDL.
WSDL Web Service Description Language is a xml description of any network type. WADL focuses only on http.
Logic App Logic Apps orchestrate and automate workflows and integrations with many data sources.
App Service APIs hosted in an App service.
Function App Serverless code that can be triggered.


Azure API Management comes with a Developer Portal for you clients. It’s a web portal where API clients can learn about your APIs. It contains of the APIs that are deployed in your Azure API Management instance. The content is generated based on the APIs. You have the option to customize the developer portal and adjust the look and feel so it fits better to your organization.

System groups

APIM has 3 build-in groups:

  • Administrators: Members of this group are the Azure subscription administrators. The administrators can manage APIM service instances and create the APIs, operations, and products that are used by the developers.
  • Developers: Authenticated developer portal users are members of this group. Developers are the customers that build applications using your APIs. The developers can access the developer portal and build applications that call the operations of an API.
  • Guests: Unauthenticated developer portal users, such as prospective customers visiting the developer portal of an API Management instance are members of this group. They can be granted certain read-only access, such as the ability to view APIs but not call them.

You are not limited to these 3 groups and can create your own custom groups or use existing groups in Azure Active Directory.

APIM policies let you change the behavior of APIs. These are statements executed on the request or response. You can perform access management based on http headers. Authentication policies, cross-domain validations, and any other security measure can be checked before reaching your backends. Learn all details policies in Azure APIM.

Data Manipulation

Azure API Management let you transform data like back and forth from xml to json. But APIM has a lot more features that can be used within policies. Take a look:

Azure API Management Policy SnippetsAzure API Management Policy Snippets

Monitor APIs

APIM provide metrics that may help to analyze backend calls, errors and performance by using Azure Monitor with diagnostic settings.

Azure API Management MetricsAzure API Management Metrics

Cost Management

Azure API Management has 5 different pricing tiers to choose from:

  • Developer, Premium: The developer tier is great for developers that use the premium tier in production as both share the same features like vnet integration.
  • Basic, Standard: Both are production level tiers that go from entry-level production to medium-volume production.
  • Consumption: The serverless consumption tier lets you pay for what you use - 1M calls for free. It deploys within 2 minutes compared to the others of approx. 45 minutes so it’s great for testing out APIs. For production use it’s great as it has a built-in high availability and autoscaling. Switching between consumption and dedicated SKU tiers (Developer, Basic, Standard, and Premium) is not supported as this plan has not all the features as the rest. Take a look at Azure API Management Key Parameters for a more detailed overview of all tiers.

Conclusion

Azure API Management is a great tool for unifying your backend API landscape, especially if you have them mixed in different Azure services like AKS, Functions and App Service but also if some are running still on-premise.

Join Newsletter
Get the latest updates right in your inbox. I never spam!
Sven Malvik
Written by Sven Malvik

Latest Stories

Understanding Policies in Azure API Management

Policies are the heart of Azure API Management. They let us change the behavior of our APIs in a very flexible manner. Before I dive in t...

Apr 18, 2020

Event-Driven Infrastructure with App Configuration

Azure App Configuration is great for externalizing application configurations. But what if an application is our infrastructure? How coul...

Sep 12, 2020

AZ-303 Self-Study Guide for Becoming an Azure Solution Architect

Microsoft updated it’s role based exam for AZ-300. It’s now called AZ-303 and launched last year. This certification is a great proof for...

Feb 01, 2021

Logging in Azure API Management

This post is a complete step-by-step guide on how to send logs from Azure API Management to Azure Event Hub with PowerShell. We start by ...

Apr 11, 2020

AZ-900 Self-Study Guide for Azure Fundamentals

There are many good reasons to become Microsoft Azure Certified and take the Microsoft Azure AZ-900 exam. If you are reading this blog po...

Feb 03, 2021

How to Secure Azure Functions App with Azure API Management

How to use an Azure Managed Identity to authenticate against an Azure Functions app that is exposed through Azure API Management. Our Fun...

Feb 02, 2021

8 Actions to Cut Infrastructure Costs in 2021

8 Actions to Cut Infrastructure Costs in 2021 is the result of a research I did. I wanted to know more about the impact of the pandemic f...

Jan 10, 2021

How To Debug Policies in Azure API Management. A Step-by-Step Guide.

In this post I want to briefly go through the Azure API Management extension for VSCode and how we can debug policies. It’s one of the qu...

Jan 16, 2021

Azure API Management with Terraform

Terraform is a popular tool for managing infrastructure resources. I counted about 120 supported providers. Azure is one of them. In this...

Apr 04, 2020

Serving Website Images from Azure CDN with SSL

In this post I will show you step by step how to serve images on a website from Azure CDN with SSL enabled. My blog has a couple of Azure...

Apr 25, 2020

How to Reference Key Vault Secrets in Azure API Management

In an enterprise, an Azure API Management instance is often shared by many teams and many developers. The developers may all have access ...

Feb 05, 2021

Latest Stories

Understanding Policies in Azure API Management

Understanding Policies in Azure API Management

Policies are the heart of Azure API Management. They let us change the behavior of our APIs in a very flexible manner. Before I dive in t...

Apr 18, 2020

Event-Driven Infrastructure with App Configuration

Event-Driven Infrastructure with App Configuration

Azure App Configuration is great for externalizing application configurations. But what if an application is our infrastructure? How coul...

Sep 12, 2020

AZ-303 Self-Study Guide for Becoming an Azure Solution Architect

AZ-303 Self-Study Guide for Becoming an Azure Solution Architect

Microsoft updated it’s role based exam for AZ-300. It’s now called AZ-303 and launched last year. This certification is a great proof for...

Feb 01, 2021

Logging in Azure API Management

Logging in Azure API Management

This post is a complete step-by-step guide on how to send logs from Azure API Management to Azure Event Hub with PowerShell. We start by ...

Apr 11, 2020

AZ-900 Self-Study Guide for Azure Fundamentals

AZ-900 Self-Study Guide for Azure Fundamentals

There are many good reasons to become Microsoft Azure Certified and take the Microsoft Azure AZ-900 exam. If you are reading this blog po...

Feb 03, 2021

How to Secure Azure Functions App with Azure API Management

How to Secure Azure Functions App with Azure API Management

How to use an Azure Managed Identity to authenticate against an Azure Functions app that is exposed through Azure API Management. Our Fun...

Feb 02, 2021

8 Actions to Cut Infrastructure Costs in 2021

8 Actions to Cut Infrastructure Costs in 2021

8 Actions to Cut Infrastructure Costs in 2021 is the result of a research I did. I wanted to know more about the impact of the pandemic f...

Jan 10, 2021

How To Debug Policies in Azure API Management. A Step-by-Step Guide.

How To Debug Policies in Azure API Management. A Step-by-Step Guide.

In this post I want to briefly go through the Azure API Management extension for VSCode and how we can debug policies. It’s one of the qu...

Jan 16, 2021

Azure API Management with Terraform

Azure API Management with Terraform

Terraform is a popular tool for managing infrastructure resources. I counted about 120 supported providers. Azure is one of them. In this...

Apr 04, 2020

Serving Website Images from Azure CDN with SSL

Serving Website Images from Azure CDN with SSL

In this post I will show you step by step how to serve images on a website from Azure CDN with SSL enabled. My blog has a couple of Azure...

Apr 25, 2020

How to Reference Key Vault Secrets in Azure API Management

How to Reference Key Vault Secrets in Azure API Management

In an enterprise, an Azure API Management instance is often shared by many teams and many developers. The developers may all have access ...

Feb 05, 2021