About calling Azure Funcions from Azure API Management Policy

Okugawa, Masanori 41 Reputation points
2021-08-30T17:31:53.587+00:00

I want to use the functions created in Azure functions to transparently check the API managed by API Management. Is it possible?

For example, create a function in Azure Functions that refers to the opening and closing times registered in the database and checks whether the current time is during service hours. The API Management policy calls the function and responds with an error to the API caller in response to the function's response.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,768 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,298 questions
0 comments No comments
{count} votes

Accepted answer
  1. Pramod Valavala 20,591 Reputation points Microsoft Employee
    2021-08-31T04:33:00.607+00:00

    @Okugawa, Masanori Yes. You can use the send-request policy to make a call to your Azure Function and based on the response, you could either forward the request or use the return-response policy to send back an error response.


0 additional answers

Sort by: Most helpful