Add a Function to your App
Next, create a Function that handles HTTP requests.
From the AZURE FUNCTIONS explorer, click the Create Function icon.
Select the directory you currently have open - it's the default option so press
Enter. When prompted, choose HTTP trigger, use the default name of
HttpTriggerJS, and choose Anonymous authentication.
Upon completion, a new directory is created within your Function app named
HttpTriggerJS that includes
functions.json files. The
index.js file contains the source code that responds to the HTTP request and
functions.json contains the binding configuration for the HTTP trigger.
Next, run your app locally to verify everything is working.