Azure app service website recycles after staging/production swap
<p>After a staging/producion swap our production website recycles. It seems to happen between 30 minutes and 6 hours and only occurs once.</p>

<p>Is it possible to swap 2 deployment slots without having the application recycle in the production environment?</p>

<p>This is how we do the swap</p>

<ol>
<li>Deploy our website</li>
<li>Invoke-AzureRMResourceAction -ResourceGroupName $resourceGroupName -ResourceType Microsoft.Web/sites/slots -ResourceName $websiteName/$sourceSlot -Action applySlotConfig -Parameters $ParametersObject -Force (changes the appsettings)</li>
<li>Invoke-AzureRMResourceAction -ResourceGroupName $resourceGroupName -ResourceType Microsoft.Web/sites/slots -ResourceName $websiteName/$sourceSlot -Action slotsswap -Parameters $ParametersObject -Force (virtual ip swap)</li>
</ol>

<p>We have also tried to restart the website before we did the virtual ip swap, but with the same result.</p>