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

Working in a DevOps team is the best thing that happened to me. 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 )

Facebook photo

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

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.