After a staging/producion swap our production website recycles. It seems to happen between 30 minutes and 6 hours and only occurs once.
Is it possible to swap 2 deployment slots without having the application recycle in the production environment?
This is how we do the swap
- Deploy our website
- Invoke-AzureRMResourceAction -ResourceGroupName $resourceGroupName -ResourceType Microsoft.Web/sites/slots -ResourceName $websiteName/$sourceSlot -Action applySlotConfig -Parameters $ParametersObject -Force (changes the appsettings)
- Invoke-AzureRMResourceAction -ResourceGroupName $resourceGroupName -ResourceType Microsoft.Web/sites/slots -ResourceName $websiteName/$sourceSlot -Action slotsswap -Parameters $ParametersObject -Force (virtual ip swap)
We have also tried to restart the website before we did the virtual ip swap, but with the same result.