pratik
pratik

Reputation: 185

Call azure function from another azure function in javascript

I am new in Azure technology. I have created two functions Master (masterFunction) and Child (childFunction) in Javascript.

I want to invoke Child function from Master function.

I have tried with childFunction.Run(req, log); but its not working.

Please suggest me to fix above issue. Thanks

Upvotes: 0

Views: 70

Answers (1)

suziki
suziki

Reputation: 14080

This does not work, the azure function actually executes code to meet the trigger conditions. For example, if your childfunction is triggered by a blob, then the way your masterfunction calls it is to satisfy the trigger condition of the childfunction, that is, add operations to the target blob in your masterfunction. If your childfunction is http, then you need to send a request to the childfunction url in the code of the masterfunction.

Upvotes: 1

Related Questions