Skip to content

Commit 161bf90

Browse files
gzuberGlenn Gailey
authored andcommitted
Add documentation for new APPLICATIONINSIGHTS_CONNECTIONSTRING app setting
1 parent 60b0ed5 commit 161bf90

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

articles/azure-functions/functions-app-settings.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,20 @@ There are other global configuration options in the [host.json](functions-host-j
1515

1616
## APPINSIGHTS_INSTRUMENTATIONKEY
1717

18-
The Application Insights instrumentation key if you're using Application Insights. See [Monitor Azure Functions](functions-monitoring.md).
18+
The Application Insights instrumentation key if you're using Application Insights. See [Monitor Azure Functions](functions-monitoring.md). Only one of `APPINSIGHTS_INSTRUMENTATIONKEY` or `APPLICATIONINSIGHTS_CONNECTIONSTRING` is recommended.
1919

2020
|Key|Sample value|
2121
|---|------------|
2222
|APPINSIGHTS_INSTRUMENTATIONKEY|5dbdd5e9-af77-484b-9032-64f83bb83bb|
2323

24+
## APPLICATIONINSIGHTS_CONNECTIONSTRING
25+
26+
The Application Insights connection string if you're using Application Insights and require the added customizability that connection strings provide over instrumentation keys. See [Connection strings](/articles/azure-monitor/app/sdk-connection-string.md) for more details. Only one of `APPINSIGHTS_INSTRUMENTATIONKEY` or `APPLICATIONINSIGHTS_CONNECTIONSTRING` is recommended.
27+
28+
|Key|Sample value|
29+
|---|------------|
30+
|APPLICATIONINSIGHTS_CONNECTIONSTRING|InstrumentationKey=5dbdd5e9-af77-484b-9032-64f83bb83bb;IngestionEndpoint=https://custom.com:111/;LiveEndpoint=https://custom.com:222/;ProfilerEndpoint=https://custom.com:333/;SnapshotEndpoint=https://custom.com:444/;|
31+
2432
## AZURE_FUNCTIONS_ENVIRONMENT
2533

2634
In version 2.x and later versions of the Functions runtime, configures app behavior based on the runtime environment. This value is [read during initialization](https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Program.cs#L43). You can set `AZURE_FUNCTIONS_ENVIRONMENT` to any value, but [three values](/dotnet/api/microsoft.aspnetcore.hosting.environmentname) are supported: [Development](/dotnet/api/microsoft.aspnetcore.hosting.environmentname.development), [Staging](/dotnet/api/microsoft.aspnetcore.hosting.environmentname.staging), and [Production](/dotnet/api/microsoft.aspnetcore.hosting.environmentname.production). When `AZURE_FUNCTIONS_ENVIRONMENT` isn't set, it defaults to `Development` on a local environment and `Production` on Azure. This setting should be used instead of `ASPNETCORE_ENVIRONMENT` to set the runtime environment.

0 commit comments

Comments
 (0)