Base solution for your next web application
Open Closed

Run migration on Azure Devops Release Pipline #8168


User avatar
0
peopleteq created

I am using Azure DevOps CI. I have question about databe migrations run from pipline. My release pipline is executed on production server (self-hosted agent). Could you provide an example or way how to execute migration? I am asking becuase I am bit confused with way provided in ANZ doc https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Setting-Up-an-Azure-Pipeline-Mvc-Core. It offers simple way: generate sql script from migrations files and excute it. But at the same time in the Get Started section documentation says to use the migrator app that works a bit different. Could you advise about migrations with azure pipline on self-hosted agent?


3 Answer(s)
  • User Avatar
    0
    peopleteq created

    Hi there:)

  • User Avatar
    0
    alper created
    Support Team

    DbMigrator is a dotnet console tool. You can use it if you have a dedicated server. In Azure, I don't know how to run an executables. If you are able to run DbMigrator it's the best way of migrating DB.

  • User Avatar
    0
    ismcagdas created
    Support Team

    This issue is closed because it has not had recent activity for a long time.