Function.json settings for local development writing to Azurite Store

by | Apr 21, 2025 | IT Tips | 0 comments

Found this in Drafts been so long I can't remember where I used it... YMMV

my function.json

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
  "bindings": [
    {
      "name": "myTimer",
      "type": "timerTrigger",
      "direction": "in",
      "schedule": "2 */30 * * * *"
    },
    {
      "name": "myInputBlob",
      "type": "blob",
      "path": "%PREVIOUS_FILE%",
      "connection": "AzureWebJobsStorage",
      "direction": "in"
    },
    {
      "name": "myOutputBlob",
      "type": "blob",
      "path": "%PREVIOUS_FILE%",
      "connection": "AzureWebJobsStorage",
      "direction": "out"
    }
  ]
}

Read

1
let previousData = context.bindings.myInputBlob;

Write

1
context.bindings.myOutputBlob = currentData;


0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.