Phi*_*mid 3 azure azure-storage-queues azure-functions azure-functions-runtime
我正在使用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}");
}
Run Code Online (Sandbox Code Playgroud)
使用local.settings.json:
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "DefaultEndpointsProtocol=https;AccountName=test1storage;AccountKey=XXXXX==;EndpointSuffix=core.windows.net/;",
"AzureWebJobsDashboard": ""
}
}
Run Code Online (Sandbox Code Playgroud)
当我启动VS调试器时,我收到以下错误消息:
[8/5/2017 1:07:56 AM] Microsoft.WindowsAzure.Storage:找不到有效的帐户信息组合.
我错过了什么?Azure中是否有一些其他设置需要检查以确保正确配置此方案?
我错过了什么?Azure中是否有一些其他设置需要检查以确保正确配置此方案?
我可以使用您提供的AzureWebJobsStorage连接字符串格式重现您提到的问题.请尝试EndpointSuffix=core.windows.net/;
从连接字符串中删除.然后它在我身边正常工作.
local.settings.json:
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "DefaultEndpointsProtocol=https;AccountName=storageaccountname;AccountKey=xxxxxxxxxxxx",
"AzureWebJobsDashboard": ""
}
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
2143 次 |
最近记录: |