I am trying to make sure that my website is fully warmed up when I deploy or scale out. To do this I have taken advantage of the App Initialization config as discussed here: http://ruslany.net/2015/09/how-to-warm-up-azure-web-app-during-deployment-slots-swap/
I am trying to get it to work on scale out as it says it is supported here: https://feedback.azure.com/forums/169385-websites/suggestions/6972595-application-initialization-to-warm-up-specific-pag
My config itself is set as follows:
<applicationInitialization>
<add initializationPage="api/status"/>
</applicationInitialization>
I have not specified a hostname on the Initialization element as all discussions seem to say it is not required. I also would be hosting this across multiple environments, and would not know the host names for the scaled out versions and so it would be difficult to have all the config transforms required.
When I deploy the web app the warm up works fine, I can see it be deployed into the staging slot, then go to my Status Page. However when I scale out I cannot see that it is warming up. In fact I can see that api calls made to this api, sometimes come back with a 503 response, which is coming from the newly scaled app.
How can I prevent the scaled out application from receiving requests until it has warmed up? How can I get it to actually do the warm up as discussed here: https://feedback.azure.com/forums/169385-websites/suggestions/6972595-application-initialization-to-warm-up-specific-pag
Thanks