title: ASP.NET MVC application in Azure with MySQL in-app
body: <p>I have an ASP.NET MVC app connected to a MySQL database, which works fine with my local MySQL server.
  I'm trying to push the app to azure using their new feature: <a href="https://blogs.msdn.microsoft.com/appserviceteam/2016/08/18/announcing-mysql-in-app-preview-for-web-apps/" rel="nofollow noreferrer">MySQL in-app for Web Apps</a></p>
  
  <p>Previously, I tested the same app in azure with a SQL server database and I got it working as follows:</p>
  
  <ol>
  <li>I created a SQL database in my azure portal, and I got its ADO.NET
  connection string as explained here:
  <a href="https://azure.microsoft.com/en-us/documentation/articles/sql-database-develop-dotnet-simple/" rel="nofollow noreferrer">https://azure.microsoft.com/en-us/documentation/articles/sql-database-develop-dotnet-simple/</a></li>
  <li>I published the application from Visual Studio, with the Publish
  command. In its wizard I was able to set the DefaultConnection
  string which should be used at runtime.</li>
  </ol>
  
  <p>Can I proceed similarly with the MySQL-in-app database?
  If so, how can a get the connection string to be set in the publish step? I found an explanation with a script <a href="https://blogs.msdn.microsoft.com/appserviceteam/2016/08/18/announcing-mysql-in-app-preview-for-web-apps/" rel="nofollow noreferrer">here</a> but I don’t understand where should I run it to get the connection string!</p>