The file local.settings.json stores app settings, connection strings, and settings for Azure Functions Core Tools. It has the following structure:
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "<connection string>",
"AzureWebJobsDashboard": "<connection string>"
},
"Host": {
"LocalHttpPort": 7071,
"CORS": "*"
},
"ConnectionStrings": {
"SQLConnectionString": "Value"
}
}
We could get more info about Local settings file from this document.
These settings can also be read in your code as environment variables. In C#, use System.Environment.GetEnvironmentVariable or
ConfigurationManager.AppSettings. In JavaScript, use process.env. Settings specified as a system environment variable take precedence over values in the local.settings.json file.