question

MohsenAkhavan avatar image
0 Votes"
MohsenAkhavan asked KalyanChanumolu-MSFT commented

Problem for running Azure Function (time trigger and servicebus trigger) in Azure Data Factory

I have two azure functions (Python) :
1. Time Trigger: this function run every 5 minutes and run a query and send data to a service bus
2. Service Bus Topic trigger: this function run when receiving function's "1" data in the service bus

Now, I want to add these functions to the Data factory pipeline. When I added Azure function activity on the pipeline, it needs the REST API method for the function call. My functions aren't HTTP triggers.

What are the solutions for running this scenario?

azure-data-factoryazure-functionsazure-service-bus
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

KalyanChanumolu-MSFT avatar image
0 Votes"
KalyanChanumolu-MSFT answered KalyanChanumolu-MSFT commented

@MohsenAkhavan Thank you for reaching out.

Currently Azure functions does not support adding bindings for timer/servicebus trigger and http trigger in one function app.
You can still manually invoke a non HTTP-triggered function using the function app key

However, an easy option could be to move the common logic from your timer/service bus triggered function into a separate method, create a new HTTP triggered function and call it from there.
You can then add it to an ADF pipeline


If an answer is helpful, please "Accept answer" or "Up-Vote" which might help other community members reading this thread.
And if you have further questions or issues, please let us know.

· 2
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.

It's in a function. Both of them are separate.
One function is Time Trigger another one is Service bus trigger.
Now, I want to add both of them to Azure Data Factory. This is the scenario. Is it possible?

0 Votes 0 ·

@MohsenAkhavan I understand that they are 2 separate functions, but you cannot add Timer Triggered and Service Bus triggered functions to an ADF pipeline directly.
You will have to create new HTTP triggered functions and call the same logic as your Timer/Service Bus triggered functions.

0 Votes 0 ·