[Azure function] using env var in function.json

Dy Zapra, Keisha Marie 30 Reputation points
2023-05-29T09:42:12.5333333+00:00

Sample function.json

{
  "bindings": [
    {
      "queueName": "test-queue",
      "name": "message",
      "type": "serviceBusTrigger",
      "direction": "in",
      "isSessionsEnabled": true
    }
  ],
  "scriptFile": "handler.mjs"
}

is there a way to grab the "isSessionsEnabled" value from the env var/local.settings.json? This is for node.

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Sedat SALMAN 14,190 Reputation points MVP
    2023-05-29T12:18:32.2766667+00:00

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.