Azure / azure-relay-node

☁️Node.js library for Azure Relay Hybrid Connections
https://docs.microsoft.com/en-us/azure/service-bus-relay/relay-what-is-it
MIT License
12 stars 15 forks source link

Trouble connecting #5

Closed khowling closed 7 years ago

khowling commented 7 years ago

I've created a hybrid connection in Azure portal, and the connection string i get is :

Endpoint=hc://mynamespace01.hybrid.biztalk.windows.net/laptop;SharedAccessKeyName=defaultSender;SharedAccessKey=xxxx

how do i get the example listener to connect?

node listener.js mynamespace01.hybrid.biztalk.windows.net laptop defaultSender xxxx

gives:

errorError: getaddrinfo ENOTFOUND

dlstucki commented 7 years ago

It looks like you're trying to mix BizTalk Hybrid Connections (v1) with the new Azure Relay Hybrid Connections (v2). Ensure you create your Hybrid Connection in the Azure Portal inside a Relay Namespace.

Portal Uri would look something like (note the "Microsoft.Relay"): https://ms.portal.azure.com/#blade/HubsExtension/Resources/resourceType/Microsoft.Relay%2Fnamespaces

The connection string should look like (note the Endpoint has a scheme of "sb://"): Endpoint=sb://mynamespace.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=....