![](/img/trans.png)
[英]How to pull the messages from Azure Service Bus Queue in Java?
[英]how to implement an azure service bus queue trigger / storage connection error
我想从 azure 中的服务总线队列中获取消息,对于 HttpTrigger 和 kafkaTrigger 以外的所有触发器,我需要在本地设置中为 AzureWebJobsStorage 指定一个值(连接字符串)。 我在 azure 中部署了一个 blob 存储,因此我获取了存储帐户的连接字符串并将其放入 loca.settings.json
{
"IsEncrypted": false,
"Values": {
"FUNCTIONS_WORKER_RUNTIME": "java",
"AzureWebJobsStorage" : "DefaultEndpointsProtocol=https;AccountName=xxx;AccountKey=xxx;EndpointSuffix=core.windows.net",
"myConnection" : "<Connection string>"
}
}
但我从 azure 得到一个例外
The 'messageReceiver' function is in error: Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.messageReceiver'. Microsoft.WindowsAzure.Storage: No valid combination of account information found.
我检查了多次连接字符串是正确的。 他们说我需要删除端点后缀,但这不起作用。 先感谢您。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.