If an app you’re going to deploy as an App Service in Azure has a connection string defined in appsettings.json like below….
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.