none
Initial Migration .NET Core 2.2 when deploying from linux RRS feed

  • Question

  • I just deployed a .NET Core API the other day on Azure App Services from a Ubuntu 18.04, and I can't figure out how to run the initial database migration.

    I can tell that the deployment was successful, because my frontend returns a 500 internal server error, which can be re-created in my dev server shutting down the SQL server, however, I can't figure out how to run "dotnet ef database update" from the deployed application. I'm also considering trying to push the app with a SQLite.db included or to migrate from the dev server into a hosted SQL server on Azure.

    Not sure how to proceed, but looking forward to any input.
    Thursday, January 23, 2020 8:36 PM

All replies

  • Hi Dtripodi93,

    what are you trying to do from an Azure SQL DB perspective? Are you trying to migrate and existing sql server to azure sql db? or you are trying to migrate and existing sql server to Azure IaaS?

    Friday, January 24, 2020 1:37 PM