title: How do I connect to SQL Azure from NodeJS/Tedious?
body: <p>I have a SQL Azure database that I'm trying to connect to from a NodeJS application running in an Azure Linux VM. Everything works fine when I'm on a local SQL Database/and local machine for NodeJS. However, when I run from my vm, I get the following output (My trace output plus the Tedious debug event):</p>
  
  <pre><code>connected to XXXXXXX.database.windows.net:1433
  State change: Connecting -&gt; SentPrelogin
  State change: SentPrelogin -&gt; SentLogin7WithStandardLogin
  connection to XXXXXXX.database.windows.net:1433 closed
  State change: SentLogin7WithStandardLogin -&gt; Final
  Writing CSV files....
  connection to XXXXXXX.database.windows.net:1433 closed
  State change: Final -&gt; Final
  All Done!
  </code></pre>
  
  <p>The problem is that no error is ever raised, but the connection seems to be automatically closed.</p>
  
  <p>Any thoughts on what might be happening here or how I can get to an actual error?</p>