Create your first Azure Function

Create a function app


To complete this tutorial, install: Visual Studio 2017 version 15.3, including the Azure development workload.

Install Visual Studio 2017 with the Azure development workload

Note: After you install or upgrade to Visual Studio 2017 version 15.3, you must manually update the Visual Studio 2017 tools for Azure Functions. You can update the tools from the Tools menu under Extensions and Updates… > Updates > Visual Studio Marketplace > Azure Functions and Web Jobs Tools > Update.

Create an Azure Functions project in Visual Studio

The Azure Functions project template in Visual Studio creates a project that can be published to a function app in Azure. A function app lets you group functions as a logic unit for easier management, deployment, and sharing of resources.

  1. Right mouse click on the project node in Solution Explorer, then choose Add > New Item. Choose Azure Function from the dialog box.

  2. In the New Project dialog, expand Visual C# > Cloud node, select Azure Functions, type a Name for your project, and click OK. The function app name must be valid as a C# namespace, so don’t use underscores, hyphens, or any other nonalphanumeric characters.

    New project dialog to create a function in Visual Studio

I ran into an issue I created the project