title | description | author | ms.topic | ms.date | ms.author |
---|---|---|---|---|---|
Azure Functions HTTP triggers and bindings |
Learn to use HTTP triggers and bindings in Azure Functions. |
craigshoemaker |
reference |
02/14/2020 |
cshoe |
Azure Functions may be invoked via HTTP requests to build serverless APIs and respond to webhooks.
Action | Type |
---|---|
Run a function from an HTTP request | Trigger |
Return an HTTP response from a function | Output binding |
The code in this article defaults to .NET Core syntax, used in Functions version 2.x and higher. For information on the 1.x syntax, see the 1.x functions templates.
Working with the trigger and bindings requires that you reference the appropriate package. The NuGet package is used for .NET class libraries while the extension bundle is used for all other application types.
Language | Add by... | Remarks |
---|---|---|
C# | Installing the NuGet package, version 3.x | |
C# Script, Java, JavaScript, Python, PowerShell | Registering the extension bundle | The Azure Tools extension is recommended to use with Visual Studio Code. |
C# Script (online-only in Azure portal) | Adding a binding | To update existing binding extensions without having to republish your function app, see Update your extensions. |
Functions 1.x apps automatically have a reference the Microsoft.Azure.WebJobs NuGet package, version 2.x.