Kasper Nørtoft
Kasper Nørtoft

Reputation: 311

Azure app service website recycles after staging/production swap

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.

Upvotes: 0

Views: 403

Answers (1)

user2418209
user2418209

Reputation: 109

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

Upvotes: 0

Related Questions