I work with Azure DevOps, and I need to set up a pipeline release where a build artifact is deployed to an Azure App Service. The problem is that after the deployment, the app service must be started in the development environment to perform initialization (such as database setup and so on).
Is there a way to automatically perform the initialization after the deployment and then move on to the next stage, which is “Change Environment to Production”?
Regarding the “Change Environment to Production” stage, I know how to do this in the release with the Azure App Service Settings stage.
My issue is that I don’t know how to perform the initialization before changing the environment from Development to Production.
I would handle this easily if it were a single app, but since it involves many apps, I want everything to be automated.