title | description | services | author | manager | editor | tags | keywords | ms.service | ms.devlang | ms.topic | ms.tgt_pltfrm | ms.workload | ms.date | ms.author |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
App settings reference for Azure Functions |
Reference documentation for the Azure Functions app settings or environment variables. |
functions |
tdykstra |
cfowler |
functions |
multiple |
article |
multiple |
na |
09/26/2017 |
tdykstra |
App settings in a function app contain global configuration options that affect all functions for that function app. When you run locally, these settings are in environment variables. This article lists the app settings that are available in function apps.
There are other global configuration options in the host.json file and in the local.settings.json file.
The Application Insights instrumentation key if you're using Application Insights. See Monitor Azure Functions.
Key | Sample value |
---|---|
APPINSIGHTS_INSTRUMENTATIONKEY | 5dbdd5e9-af77-484b-9032-64f83bb83bb |
Optional storage account connection string for storing logs and displaying them in the Monitor tab in the portal. The storage account must be a general-purpose one that supports blobs, queues, and tables. See Storage account and Storage account requirements.
Key | Sample value |
---|---|
AzureWebJobsDashboard | DefaultEndpointsProtocol=https;AccountName=[name];AccountKey=[key] |
true
means disable the default landing page that is shown for the root URL of a function app. Default is false
.
Key | Sample value |
---|---|
AzureWebJobsDisableHomepage | true |
When this app setting is omitted or set to false
, a page similar to the following example is displayed in response to the URL <functionappname>.azurewebsites.net
.
true
means use Release mode when compiling .NET code; false
means use Debug mode. Default is true
.
Key | Sample value |
---|---|
AzureWebJobsDotNetReleaseCompilation | true |
A comma-delimited list of beta features to enable. Beta features enabled by these flags are not production ready, but can be enabled for experimental use before they go live.
Key | Sample value |
---|---|
AzureWebJobsFeatureFlags | feature1,feature2 |
The path to the root directory where the host.json file and function folders are located. In a function app, the default is %HOME%\site\wwwroot
.
Key | Sample value |
---|---|
AzureWebJobsScriptRoot | %HOME%\site\wwwroot |
Specifies the repository or provider to use for key storage. Currently, the supported repositories are blob ("Blob") and file system ("disabled"). The default is file system ("disabled").
Key | Sample value |
---|---|
AzureWebJobsSecretStorageType | disabled |
The Azure Functions runtime uses this storage account connection string for all functions except for HTTP triggered functions. The storage account must be a general-purpose one that supports blobs, queues, and tables. See Storage account and Storage account requirements.
Key | Sample value |
---|---|
AzureWebJobsStorage | DefaultEndpointsProtocol=https;AccountName=[name];AccountKey=[key] |
Path to the compiler used for TypeScript. Allows you to override the default if you need to.
Key | Sample value |
---|---|
AzureWebJobs_TypeScriptPath | %HOME%\typescript |
Valid values are "readwrite" and "readonly".
Key | Sample value |
---|---|
FUNCTION_APP_EDIT_MODE | readonly |
The version of the Azure Functions runtime to use in this function app. A tilde with major version means use the latest version of that major version (for example, "~1"). When new versions for the same major version are available, they are automatically installed in the function app. To pin the app to a specific version, use the full version number (for example, "1.0.12345"). Default is "~1".
Key | Sample value |
---|---|
FUNCTIONS_EXTENSION_VERSION | ~1 |
For consumption plans only. Connection string for storage account where the function app code and configuration are stored. See Create a function app.
Key | Sample value |
---|---|
WEBSITE_CONTENTAZUREFILECONNECTIONSTRING | DefaultEndpointsProtocol=https;AccountName=[name];AccountKey=[key] |
For consumption plans only. The file path to the function app code and configuration. Used with WEBSITE_CONTENTAZUREFILECONNECTIONSTRING. Default is a unique string that begins with the function app name. See Create a function app.
Key | Sample value |
---|---|
WEBSITE_CONTENTSHARE | functionapp091999e2 |
The maximum number of instances that the function app can scale out to. Default is no limit.
Note
This setting is for a preview feature.
Key | Sample value |
---|---|
WEBSITE_MAX_DYNAMIC_APPLICATION_SCALE_OUT | 10 |
Default is "6.5.0".
Key | Sample value |
---|---|
WEBSITE_NODE_DEFAULT_VERSION | 6.5.0 |
[!div class="nextstepaction"] Learn how to update app settings
[!div class="nextstepaction"] See global settings in the host.json file