title: Connection String to connect to Local ServiceBus from Node
body: <p>I am trying to connect to a local instance of Windows service bus using Node.js.</p>
  
  <p>I have obtained my connection string from powershell:</p>
  
  <pre><code>PS C:\Users\Juan&gt; Get-SBClientConfiguration
  Endpoint=sb://juan-vaio/MyNamespace;StsEndpoint=https://juan-vaio:9355/MyNamespace;RuntimePort=9354;ManagementPort=9355
  </code></pre>
  
  <p>However when using this connection string from Node using the azure-node package I get the following error:</p>
  
  <p>CODE</p>
  
  <pre><code>var connectionString = "Endpoint=sb://localhost/MyNamespace;StsEndpoint=https://localhost:9355/MyNamespace;RuntimePort=9354;ManagementPort=9355";
  var serviceBusService = Azure.createServiceBusService(connectionString);
  </code></pre>
  
  <p>ERROR</p>
  
  <pre><code>      throw new Error('Invalid connection string setting key "' + key + '"');
              ^
  Error: Invalid connection string setting key "runtimeport"
  </code></pre>
  
  <p>I have tried removing the runtimeport setting of the connection string, but then it fails because of the ManagementPort. And if I remove that one two it finally cannot connect because of incomplete settings:</p>
  
  <pre><code>  throw new NoMatchError('The provided connection string "' + connectionString
          ^
  NoMatchError: The provided connection string "Endpoint=sb://localhost/MyNamespace;StsEndpoint=https://localhost:9355/MyNamespace;" 
  does not have complete configuration settings.
  </code></pre>
  
  <p>Googling a little bit I have found that it seems like a known issue:</p>
  
  <p><a href="https://github.com/Azure/azure-sdk-for-node/issues/1254" rel="nofollow">https://github.com/Azure/azure-sdk-for-node/issues/1254</a></p>
  
  <p>But I am wondering if there is a workaround for this or if maybe I am doing something wrong.</p>