[英]Value cannot be null. Parameter name: provider when using a ServiceBus Trigger in Azure
When using a Service Bus Trigger in an Azure Function, an extension Bundle is required which is set in the file host.json
在 Azure 函数中使用服务总线触发器时,需要在文件host.json
设置的扩展包
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[1.*, 3.0.0)"
}
Then a message appears :然后出现一条消息:
Value cannot be null.值不能为空。 Parameter name: provider参数名称:提供者
Removing Entity Path from Azure Service Bus Connection String did the trick for me.从 Azure 服务总线连接字符串中删除实体路径对我有用。
It's placed at the end of the Connection String:它位于连接字符串的末尾:
Endpoint=sb://%YourNamespace%.servicebus.windows.net/;SharedAccessKeyName=%SASpolicy_name%;SharedAccessKey=%SASkey%=;EntityPath=queue-name
If you do not have permission to that Subscription OR resource group you will see this error.如果您没有该订阅或资源组的权限,您将看到此错误。 Also make sure that HOST.JSON file is in sync with - Function app Environment configurations.还要确保 HOST.JSON 文件与 - 函数应用环境配置同步。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.