40400 Endpoint not found-error from Azure service bus (App function)

1.8k Views Asked by At

Im trying to create an "azure app function", that is listening on a Service Bus queue. Im using the quick start-method, so the only writing so far has been inserting the connection string

I have created a service bus instance and a queue and a policy permission (listen). I copied that connection string and removed the last part of it, so I my connection string is connection

Endpoint=sb://bla.servicebus.windows.net/;SharedAccessKeyName=bla-policy-principal-queue-listen;SharedAccessKey=<thekey>

I get error message :

Microsoft.ServiceBus: 40400: Endpoint not found., Resource:sb://bla.servicebus.windows.net/mysbqueue0. 

I have seen a couple of similar questions but not for app functions, and the answers didnt make any sense to me. There are no code except the logging that was in the template

Im sending the messages from dynamics 365. Do I have to register the listener somewhere?

All suggestions are welcome, troubleshooting, or anything :)

1

There are 1 best solutions below

0
On

You need to specify queue name aswell