Azure does not cancel application settings

In my Azure application service, I want to update application settings, but after publishing from VS, the keys do not override the values ​​from the local Web.config

In Azure, it looks like this: enter image description here

As a result, my web.config on azure contains values ​​from local settings

  <connectionStrings>
    <add name="MainConnectionString" connectionString="ConnectionStringToReplaceByAzure" providerName="System.Data.SqlClient" />
  </connectionStrings>
  <appSettings>
    <add key="MS_SigningKey" value="Overridden by portal settings" />
  </appSettings>
+4
source share
1 answer

Azure never physically modifies your web.config file. Instead, Azure application setup is injected into the configuration system at run time. Therefore, even if you do not see it in web.config, if you request it in your application, you will get the correct value.

+8
source

All Articles