title: Windows Azure configuration management
body: <p>We have built a small MVC4 application using Azure Cloud Services. It has been deployed through Visual Studio. Now we are going add a test environment where the application should be tested, before being deployed into production.</p>
  
  <p>I would like to have our CI server to build, test and create a deployable package, This package could then be deployed to any environment, providing correct configurations.</p>
  
  <p>But I have not found a convenient way to do this. It is easy to build a package for a specific environment, with configuration transformations for .config and .cscfg files.</p>
  
  <p>Is having the CI server to build a separate package for each environment the way to go, or have I missed something?</p>
  
  <p>There are ways described how the web.config could be modified when the WebRole is starting, but this feels a bit hacky, and not the way the guys at Microsoft intended when creating Cloud Services.</p>