AppSettings variables not working with Azure Deployment

I have variable search/replace working fine for the ServiceConfiguration file in my Azure deployment, but it seems the standard appSettings section is skipped. Here’s the log snippet:

@@@
2013-12-03 20:07:49 DEBUG Package extracted successfully
2013-12-03 20:07:49 INFO [XML Transformation] Looking for any configuration transformation files
2013-12-03 20:07:49 INFO [XML Configuration] Looking for appSettings and connectionStrings in any .config files
2013-12-03 20:07:49 DEBUG [Azure Configuration] Azure service configuration file not found: C:\Octopus\Data\tmp\deployments-1409\ServiceConfiguration.Dev.cscfg
2013-12-03 20:07:49 DEBUG [Azure Configuration] Found Azure service configuration file: C:\Octopus\Data\tmp\deployments-1409\ServiceConfiguration.Cloud.cscfg
2013-12-03 20:07:49 DEBUG [Azure Configuration] Updating configuration settings…
2013-12-03 20:07:49 DEBUG [Azure Configuration] Updating setting for role OTQuery.WebHost: Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString =
2013-12-03 20:07:49 DEBUG [Azure Configuration] Updating setting for role OTQuery.WebHost: AzureServiceNamespace =
2013-12-03 20:07:49 DEBUG [Azure Configuration] Updating setting for role OTQuery.WebHost: AzureIssuerName = owner
2013-12-03 20:07:49 DEBUG [Azure Configuration] Updating setting for role OTQuery.WebHost: AzureIssuerSecret =
2013-12-03 20:07:49 DEBUG [Azure Configuration] Updating setting for role OTQuery.WebHost: AzureStorageAccountName =
2013-12-03 20:07:49 DEBUG [Azure Configuration] Updating setting for role OTQuery.WebHost: AzureStorageSecret =
2013-12-03 20:07:49 INFO [Azure Upload] Uploading package to Azure blob storage: C:\Octopus\Data\tmp\deployments-1409\OTQuery.Azure.cspkg
@@@

No notion of the appSettings variables I have defined. I copy/pasted them so I’m pretty sure they are accurate. I expected it to list all config files it considers in this log.

Thanks,
/Hakan

Hi,

For Azure cloud service package deployments, we only currently update the
.cscfg. That’s because your web.config and other files are all bundled
inside the .cspkg and we don’t open that file to make any modifications
currently.

Regards,

Paul Stovell
Octopus Deploy
W: octopusdeploy.com | T: @octopusdeploy http://twitter.com/octopusdeploy

Thanks for the quick response. I guess that makes sense, may I suggest a change to the log data that says that it’s only scanning cscfg files?

Is this still the case? This is a real sticking point for us. We have a number of settings in the appSettings section that are read by 3rd party tools, which are not azure aware, as such they can’t be moved into the cscfg files. Is there any kind of work around available?

Hi Rob,

At this stage only opening the package and changing them yourself, then repacking. It’s something we’re gong to address in the next month or two.

Paul

Glad it’s on the roadmap. I did find this, which looks very promising. http://help.octopusdeploy.com/discussions/questions/1763-update-webconfig-during-azure-deployment

What is the status of this feature? It’s been a while :slight_smile: