0

I'm trying to create a function with a queue trigger, here's the function.json:

  "scriptFile": "__init__.py",
  "bindings": [
    {
      "name": "CraigslistItemParser",
      "type": "queueTrigger",
      "direction": "in",
      "queueName": "craigslist",
      "connection": "DefaultEndpointsProtocol=https;AccountName=NAME;AccountKey=KEY;EndpointSuffix=core.windows.net"
    }
  ]
}

When deploying the function in the console logs I get the error:

The 'CraigslistItemParser' function is in error: Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.CraigslistItemParser'. Microsoft.Azure.WebJobs.Extensions.Storage: Storage account connection string 'DefaultEndpointsProtocol=https;AccountName=NAME;AccountKey=KEY;EndpointSuffix=core.windows.net' does not exist. Make sure that it is a defined App Setting.

What is the App Setting, I can’t find them anywhere?

4c74356b41
  • 69,186
  • 6
  • 100
  • 141
kshnkvn
  • 876
  • 2
  • 18
  • 31

1 Answers1

6

Reading the documentation it looks like you can't specify a connection string directly in the "connection" setting. Instead, you must include "the name of an app setting that contains the Storage connection string to use for this binding."

https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-queue#trigger---configuration

Slothario
  • 2,830
  • 3
  • 31
  • 47