Search code examples
gitazureazure-web-app-servicestagingazure-deployment

Azure deployment slot with autodeploy does not substitute connections strings


I have an MVC 5 website for which I have a production website on Azure. I added a staging website as a deployment slot on this website. And I configured deployment from source control when I push from git.

In the beginning everything worked nicely. But now the database connection string is not replaced in the web.config file.

I have the connections string in Configure.

What can I do to Azure to replace the connection strings? Or how can I debug this?


Solution

  • I switched to Azure Preview Portal. Under Application Settings, there is an option to set the setting as a "slot setting". I checked it. And the problem disappeared.

    Application Settings