Override appsettings.json connection strings by setting them directly in the portal when using Azure App Service

If an app you’re going to deploy as an App Service in Azure has a connection string defined in appsettings.json like below….

appsettings.json

and you want to override this value when you deploy to Azure, you can do this easily from the configuration section of your App Service in the Azure portal as seen below (click for a larger view in a new window).

Make sure the name matches the name of your connection string in your appsettings.json file. Don’t forget to save afterwards.

Adding connection strings in App Service configuration settings

Leave a Reply

Your email address will not be published.