【发布时间】:2018-01-13 00:15:46
【问题描述】:
我正在使用 Azure Functions Preview 并想添加一个 QueueTrigerFunction。
函数定义如下:
[FunctionName("QueueTrigger")]
public static void Run([QueueTrigger("testqueue1", Connection = "AzureWebJobsStorage")]string myQueueItem, TraceWriter log)
{
log.Info($"C# Queue trigger function processed: {myQueueItem}");
}
使用 local.settings.json:
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "DefaultEndpointsProtocol=https;AccountName=test1storage;AccountKey=XXXXX==;EndpointSuffix=core.windows.net/;",
"AzureWebJobsDashboard": ""
}
}
当我启动 VS 调试器时,我收到以下错误消息:
[8/5/2017 1:07:56 AM] Microsoft.WindowsAzure.Storage:没有有效的组合 找到帐户信息。
我错过了什么?我需要检查 Azure 中的一些其他设置以确保正确配置此方案吗?
【问题讨论】:
标签: azure azure-functions azure-storage-queues azure-functions-runtime