Reputation: 4009
I want to deploy an app on Azure Web App engine and I encountered a problem: My app is depended on outside configuration file, which contains DB access keys and some other configuration keys I don't want to save hard-coded.
Anyway, I thought to use configuration service like Spring with Git or some other similar services to handle the configuration but all of the solutions I found were heavy.
I bet I'm not the first one who struggle with this. So What is the common way to use out configuration file with Web-App?
Upvotes: 0
Views: 728
Reputation: 797
you can have any of the below ways to maintain application settings or connection strings.
you can use Application Settings provided by App Service from the portal these settings will override keys provided in Web.Config file. you can have connection strings and secrets updated here instead of web.config to avoid direct exposure to end developer.
you can have all you secrets and connection strings in Azure Key Vault and refer to them from web application as URI(REST) for this, you need to register your web app with Azure AD. this is highly recommended way for production web sites.
UPDATE Incorporated this answer into my blog post here
Upvotes: 1