How to call another function with in an Azure function

Galet picture Galet · Sep 20, 2017 · Viewed 31.3k times · Source

I have written 3 functions as follows

  1. create users in db
  2. fetch users from db
  3. process users

In [3] function, I will call [2] function to get users using Azure function url as below:-

https://hdidownload.azurewebsites.net/api/getusers

Is there any other way to call Azure function with in another Azure function without full path as above?

Answer

Mikhail Shilkov picture Mikhail Shilkov · Sep 20, 2017

There's nothing built-in in Function Apps to call one HTTP function from other functions without actually making the HTTP call.

For simple use cases I would just stick to calling by full URL.

For more advanced workflows, have a look at Durable Functions, paticularly Function Chaining.