question

OkugawaMasanori-0355 avatar image
0 Votes"
OkugawaMasanori-0355 asked OkugawaMasanori-0355 commented

About calling Azure Funcions from Azure API Management Policy

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-functionsazure-api-management
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

PramodValavala-MSFT avatar image
0 Votes"
PramodValavala-MSFT answered OkugawaMasanori-0355 commented

@OkugawaMasanori-0355 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.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.