Changing Azure role configuration setting does not restart app domain?
azure
Solution
You're right. Changing the role configuration settings doesn't restart app domain, which enables you to change application behavior (code that depends on configuration) on the fly without hampering the app domain.
Problem
I use SquishIt to bundle my scripts and such, so there is some code that runs at app startup that configures the bundle using a base URL specified in the appSettings of the web.config. I changed the code to use `CloudConfigurationManager.GetSetting("CdnBaseHref")` because I wanted to be able to update the URL once the app was deployed via the Azure portal. However, updating the URL does not cause the app startup code to run again, so I have one piece of the code using the updated setting, and the startup code still using the old setting, which of course breaks everything. How can I cause each role instance to re-run the startup code when this setting has been updated?