I have a JavaScript httpTrigger Function on Azure that I want to call in another httpTrigger Function. Both are in the same resource group. I know about Durable Functions and Queue Storage but (according to my limited knowledge) neither is perfect in this scenario because:
Edit: I decided to go with Durable Functions after all. To anyone who wants to build a workflow on Microsoft infrastructure, there are typically a few options to choose from, including what was recommended by other users below:
You can use a http module to call another function
var http = require('http');
module.exports= function (context) {
context.log('JavaScript HTTP trigger function processed a request.');
var options = {
host: '<Another Function URL>',
port: '80',
path: '/test',
method: 'POST'
};
I decided to use Durable Functions.
Durable Functions require setting up a storage service for the Function App. You'll need to add a few application settings in your Function App (below) but before you do that, back up your current functions.
File sharesAccess keys from your storage accountAccess keys