Valentin Richer
Valentin Richer

Reputation: 770

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

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

Then a message appears :

Value cannot be null. Parameter name: provider

Upvotes: 7

Views: 13224

Answers (2)

Ravi Macha
Ravi Macha

Reputation: 717

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.

Upvotes: 0

rogerfernandes
rogerfernandes

Reputation: 193

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

Upvotes: 1

Related Questions