/functions-docs-javascript

JavaScript samples that support Azure Functions docs

Primary LanguageJavaScriptMIT LicenseMIT

name description languages products page_type urlFragment
Azure Functions binding examples in JavaScript
Azure Functions examples using single and multi bindings.
javascript
azure
azure-sql-database
azure-cosmos-db
azure-storage
azure-functions
sample
functions-docs-javascript

Azure Functions binding examples in JavaScript

The following samples are used as a basis for Azure Functions 2.x+ binding examples in JavaScript.

Settings and configuration

The local.settings.example.json file is provided for your convenience. Rename the file to local.settings.json and add your own connection and API values before trying to run the examples in this repo.

If you're using Visual Studio Code, you can use the REST Client extension with the routes.http file. This file gives you the ability to call sample functions with a single click inside VS Code.

Samples

The following samples are available in this repo.

Name Description Trigger Input Output
HttpTrigger Triggered by an HTTP request. Http N/A Http
HttpTriggerRoute Triggered by an HTTP request, writes a queue message. Http N/A Queue
HttpAndTable Triggered by an HTTP request, writes a queue message. Http Table Http
QueueTrigger Reads a queue message Queue Queue N/A

Samples with extra outputs

Extra outputs are a way to process incoming HTTP information into more an Azure service without having to write code to use the Azure client library for that SDK.

The following samples are available in this repo.

Name Description Trigger Input Output
Azure Sql Triggered by an HTTP request, writes to Azure Sql Table. Documentation Http Http Azure Sql + HTTP
Cosmos DB Triggered by an HTTP request, writes a Cosmos DB container. Documentation Http Http Cosmos DB + HTTP
Storage Queue Triggered by an HTTP request, writes a Storage queue message. Documentation Http HTTP Storage Queue + HTTP