Reputation: 28064
When I use Windows Azure configuration settings, each time I publish an update to my cloud service, the settings are overwritten with the default from my project. This seems rather pointless to me, since if I want to override the default settings in the cloud, it makes sense that I want to preserve those overrides even when publishing an update to the app's code. Is there a way to preserve the settings when publishing from Visual Studio?
Upvotes: 8
Views: 522
Reputation: 3096
NO - A redeploy of your service will override all the settings to whatever is set in the config file (.cscfg) that you provide. To preserve the settings you have to update both, the configuration file in the cloud and the configuration file on your local disk.
Upvotes: 2
Reputation: 12174
Yes - create a local ServiceConfiguration.cscfg (the default) and a cloud or prod configuration ServiceConfiguration.Cloud.cscfg. Right click The cloud project and then "Manage Configurations" to add a new cscfg file. In your publish settings, then specify "Cloud" as your service configuration.
But, if you are asking if you are asking if you can update the Azure Role without uploading settings, then NO - you have to upload a Service configuration file.
Upvotes: 0