@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.
About calling Azure Funcions from Azure API Management Policy
Okugawa, Masanori
41
Reputation points
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.
Accepted answer
-
Pramod Valavala 20,591 Reputation points Microsoft Employee
2021-08-31T04:33:00.607+00:00