ksh*_*kvn 0 azure python-3.x azure-queues azure-functions
我正在尝试使用队列触发器创建一个函数,这是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"
}
]
}
Run Code Online (Sandbox Code Playgroud)
在控制台日志中部署该函数时,出现错误:
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.
Run Code Online (Sandbox Code Playgroud)
什么是应用程序设置,我在任何地方都找不到它们?
阅读文档,您似乎无法直接在“连接”设置中指定连接字符串。相反,您必须包含“包含要用于此绑定的存储连接字符串的应用程序设置的名称”。
| 归档时间: |
|
| 查看次数: |
1003 次 |
| 最近记录: |