Skip to content

function.json

Mathew Charles edited this page Nov 17, 2015 · 29 revisions

In a script function directory, there should be a companion function.json file that contains the configuration metadata for the function. Below are examples for each of the trigger types.

QueueTrigger Example:

{
  "trigger": {
    "type": "queue",
    "queueName": "samples-workitems"
}

BlobTrigger Example:

{
  "trigger": {
    "type": "blob",
    "blobPath": "samples-workitems"
  }
}

TimerTrigger Example:

{
  "trigger": {
    "type": "timer",
    "schedule": "*/10 * * * * *",
    "runOnStartup": true
  }
}

WebHookTrigger Example:

{
  "trigger": {
    "type": "webHook"
  }
}

ServiceBusTrigger Example (Queue):

{
  "trigger": {
    "type": "serviceBus",
    "queueName": "samples-workitems"
  }
}

ServiceBusTrigger Example (Topic):

{
  "trigger": {
    "type": "serviceBus",
    "topicName": "samples-topic",
    "subscriptionName": "samples-subscription"
  }
}

Learn

Azure Functions Basics

Advanced Concepts

Dotnet Functions

Java Functions

Node.js Functions

Python Functions

Host API's

Bindings

V2 Runtime

Contribute

Functions host

Language workers

Get Help

Other

Clone this wiki locally