Hi @PK
Please confirm my understanding:
APIM --> Azure function (backend call) --> Azure function sending message to service bus
Yes, you can create your function app and import an function app as an API in APIM. Can you share the screenshot where you don't see the option to import function app in APIM.
If the scenario is APIM --> Azure function (to modify the body) --> APIM backend call to service bus REST API
Then you can use Send request advanced policy to call the HTTP function and your APIM backend will be calling the service bus REST API.
Update 6/11:
@PK I will get the confirmation from my team if this is supported yet as I don't see the option from azure portal when you navigate to the Backend for a particular API. When we import an function as an APIM there are multiple other configuration that are created for you in your APIM resource. For now you need to create the Backend and configure it in your API.
In the Inbound you need to set the set-backend-service policy for your API methods.
Update 6/14:
I have got the confirmation from my team that the option to select the backend as function on the existing API's/operation option is not currently available.
In future they will try to add this functionality and improve the backend entities interface overall but there's no specific timeline just yet.