@Uday Kumar As per your local.settings.json you have define service bus connection string using connection
parameter.
Please make sure that you have define the same parameter in your Service Bus trigger Connection
If there is mismatch then I do observe the same error as you have shared. The same is covered example section of the document.
In the document example it is mentioned as ServiceBusConnection
so my local.settings.json should also have ServiceBusConnection paramter define.
public static void Run([ServiceBusTrigger("myqueue", Connection = "ServiceBusConnection")]
In your case as you have define it as connection
so your trigger should be define as below:
public static void Run([ServiceBusTrigger("myqueue", Connection = "connection")]
In case if you have also define AzureWebJobsServiceBus
then your Connection should be empty as mentioned in configuration section. It looks like you have define both.
Feel free to get back to me if you are still facing the isue.