0
votes

In azure web apps, there's a tab called "Deployment option" that allows a push from a github branch to azure web apps. Currently I'm developing a website in Umbraco and is trying to get this option to work properly. I have been able to successfully connect connect web app and sync the build from that branch from github. However, after the deploy, the connection is wrong so I have deduced that it's potentially a connection string problem. Therefore, is there a way to perform web.config transforms while using this deployment option?

1

1 Answers

1
votes

Generally, you should not attempt to transform your web.config with connection strings during deployment, as doing this leaves you with physical files containing secrets (dangerous practice).

Instead, you need to set your connection strings using the Azure Portal (or ARM API). Just keep a 'dummy' entry in your web.config to mark that you have this key, and then override the value with the real connection string in the portal.

See doc for related info.