Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Value cannot be null. Parameter name: provider when using a ServiceBus Trigger in Azure

Tags:

azure

When using a Service Bus Trigger in an Azure Function, an extension Bundle is required which is set in the file host.json

"extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle",
    "version": "[1.*, 3.0.0)"
}

Then a message appears :

Value cannot be null. Parameter name: provider

like image 275
Valentin Richer Avatar asked Jul 19 '19 13:07

Valentin Richer


1 Answers

Removing Entity Path from Azure Service Bus Connection String did the trick for me.

It's placed at the end of the Connection String:

Endpoint=sb://%YourNamespace%.servicebus.windows.net/;SharedAccessKeyName=%SASpolicy_name%;SharedAccessKey=%SASkey%=;EntityPath=queue-name
like image 147
rogerdossantos Avatar answered Oct 25 '22 06:10

rogerdossantos