0
votes

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

  1. Deploy our website
  2. Invoke-AzureRMResourceAction -ResourceGroupName $resourceGroupName -ResourceType Microsoft.Web/sites/slots -ResourceName $websiteName/$sourceSlot -Action applySlotConfig -Parameters $ParametersObject -Force (changes the appsettings)
  3. 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.

1
Duplicate of social.msdn.microsoft.com/Forums/en-US/…. Please avoid posting same questions in two places without cross reference, as it leads to duplicate investigations.David Ebbo
I know there is a recycle immediately after the swap if you use slot-specific settings - which most people do. Did you try eliminating those?John
@John are you sure abt recycle AFTER the swap? My understanding is there is a restart BEFORE the swap to get the latest settings in.aljj
@aljj Well, yes, of course you're right.John
@john I don't have any slot specific settings, so that should not be the problemKasper Nørtoft

1 Answers

0
votes

hmmm, it does restart 30mins after the swap? Sounds unrelated to the swap/deployment. Have you check the logs? eventlog.xml? try to add alerts on interesting metrics

hth, Aldo