title: azure ubuntu 16.04 VM can't connect to database on azure
body: <p>I trying connect to <code>mysql</code> db from <code>VM</code>, with <code>python</code> driver <code>pymssql</code>.</p>
  
  <pre><code>_connection = mysql.connect(host="xxxxxx.database.windows.net", user='xxxxxx@xxxxxx',
                                    password='xxxxx', database='xxxxxx')
  </code></pre>
  
  <p>But i get exeption like this</p>
  
  <blockquote>
    <p>File "pymssql.pyx", line 641, in pymssql.connect (pymssql.c:10824)
    pymssql.OperationalError: (20002, b'DB-Lib error message 20002, severity 9:\nAdaptive Server connection failed
    (my-xxxxx.database.windows.net:1433)\n')</p>
  </blockquote>
  
  <p>When I connecting to this database from my local pc all good.</p>
  
  <p>P.S. 
  I opened all ports for all protocols on my <code>VM</code></p>