I have created an Azure function using Visual Studio 2017 and it uses local.settings.json file to store database connection string which works fine for my test environment.
Now I need to add database connection string for the staging environment. How can I create a separate staging.settings.json file and associate that to my staging build in Visual Studio, so that it will take the staging.settings.json file's settings during staging deployment?
I created a staging.settings.json and copied the settings file from local.settings.json:
{
"IsEncrypted": false,
"Values": {
"sql_conn": "Server=tcp:SERVER,1433;Initial Catalog=DBNAME;Persist Security Info=False;User ID=;Password=;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;",
}
}


