Hi everybody,

For those who didn’t know it already, you can set the “appSettings” settings of your web application from the azure portal.

This technique has several advantages over the traditional xsl transformation:

  • Only the admin knows the settings, they are not on the source control

  • Rich UI experience

  • Settings can be “slot relative” (checkbox on the right), this allows you to have something like “this setting has this value in staging and that value in production which have to remain with each slot, even if I swap the deployments”

I recnetly found a bug with that tool. Let’s say we define only appSettings keys in the web.config file because values are going to be set by the configuration service anyway.

Of course you didn’t forget to set keys/values in the slot settings.

However, if you explore your files with kudu after deploying ( ) and if you edit the “transformed” web.config you will see that values have not been set.

To solve this issue only add value=”” in your source web.config.

Let’s hope that post has spared some of you from wasting your time.

Facebook Like
  • BTW, previous comment is from @davidebbo (never gave me a chance to sign my name). If you'd like to discuss the issue further, it would be best to start a forum thread ( Thanks!

  • "if you edit the “transformed” web.config you will see that values have not been set"

    Actually, this is not how it works. The physical web.config file is never modified. Instead, the portal App Settings are applied purely at runtime.

    Not saying the issue doesn't exist (I didn't try). but the way by which you are checking that there is an issue is not correct.