Add a Function to your App

Next, create a Function that handles HTTP requests.

From the AZURE FUNCTIONS explorer, click the Create Function icon.

Create Function

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.

Choose Template

Choose Authentication

Upon completion, a new directory is created within your Function app named HttpTriggerJS that includes index.jsand 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.

Completed Project

Next, run your app locally to verify everything is working.

I created the Functions App