Azure Service Fabric continuous integration fails in Visual Studio Team Services (was VSO)
<p>I have tried to set up continuous integration to deploy my Azure Service Fabric cluster automatically on <code>git push</code> events in Team Services. I followed the default template for a Team Services Build Definition and a Team Services Release Definition based on this guide:</p>

<p><a href="https://azure.microsoft.com/en-us/documentation/articles/service-fabric-set-up-continuous-integration/" rel="nofollow noreferrer">Set up continuous integration for a Service Fabric application by using Visual Studio Team Services</a></p>

<p>Here are my settings:
<a href="https://i.stack.imgur.com/hEt76.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hEt76.png" alt="Build Definition"></a>
<a href="https://i.stack.imgur.com/7sF9x.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7sF9x.png" alt="Release Definition"></a></p>

<p>For the most part everything works for the first deployment. After that it throws the following error:</p>

<pre><code>An application with name 'fabric:/&lt;APP&gt;' already exists, its type is '&lt;APP&gt;Type' and version is '1.0.0.20160812.7'. You must first remove the existing application before a new application can be deployed or provide a new name for the application.
</code></pre>

<p>From that it appears as though it is trying to completely redeploy the service instead of just upgrading the service. I have searched through all of the settings and tried creating and recreating the tasks but have not been able to resolve.</p>

<p>Has anyone encountered this before?</p>