Creating the function

Let's take a look at the following steps to create the function:

  1. In Solution Explorer, right-click the project, choose Add -> New Item -> Azure Function, and enter ScoreText in the name. This will be the name of the .cs file that defines the function.
  2. In the next dialog, fill the following parameters:
    • Function type: HttpTrigger
    • AccessRights: Anonymous
    • FunctionName: ScoreText
  1. Click on Create.

You will see the ScoreText.cs file appear in the project tree.

Get Serverless computing in Azure with .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.