Search code examples
azure-service-fabricms-release-management

TFS Release Error "Application type and version is still in use"


I am building and release a service fabric application that is giving me errors during a deploy. The error is not consistent though. I can deploy fine one time and the next I get this error:

Application type and version is still in use

If I deploy this service fabric app to the server directly from visual studio it will deploy every time without error. So I am pretty sure the application is working and building without errors. I only get this error when I use the TFS Release agent. Does anyone know where I should be looking to fix this? Any help is much appreciated.


Solution

  • This article explains how to set up a CD pipeline. It also describes how to do in place upgrades, by deinstall/install.

    Deinstalling and installing the same Application version will cause downtime. Usually it's better to do rolling upgrades. To do this, update the Application package manifest files during every build.

    Install / uninstall using scripts is described here.