Azure configuration

My cloud project with Azure progresses. The packages must be installable to multiple Azure environments. This means configuration. But how to make changes to the web.config of my WebRoles?
One option is to NOT encrypt the package as described here, but that means changing twee files. In the scfg file the DiagnosticsConnectionString lives. Why can’t I put everything int he cscfg file?
I removed the endpoints (that’s what started all this) from the web.config. Using unity for environment switching I construct a proxy that reads the endpoint information from the cscfg file. Now I only have to change one file. As a bonus I can change the endpoints after it is installed in the cloud.

About erictummers

My work as a recruited developer changes almost every month. I like challenges and sharing the solutions with others. On my blog I’ll mostly post about my work, but expect an occasional home project, productivity tip and tooling review.
This entry was posted in Development. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s