Skip to content

Commit 35c06a7

Browse files
authored
Merge pull request #111754 from trask/add-env-var-note
Add environment variable option to quick start doc
2 parents e20133a + e6b2b0a commit 35c06a7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

articles/azure-monitor/app/java-in-process-agent.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,14 @@ For additional help with configuring your application's JVM args, please see [3.
3333
**3. Point the agent to your Application Insights resource**
3434

3535
If you do not already have an Application Insights resource, you can create a new one by following the steps in the [resource creation guide](https://docs.microsoft.com/azure/azure-monitor/app/create-new-resource).
36-
Create a configuration file named `ApplicationInsights.json`, and place it in the same directory as `applicationinsights-agent-3.0.0-PREVIEW.2.jar`, with the following content:
36+
37+
Point the agent to your Application Insights resource, either by setting an environment variable:
38+
39+
```
40+
APPLICATIONINSIGHTS_CONNECTION_STRING=InstrumentationKey=00000000-0000-0000-0000-000000000000
41+
```
42+
43+
Or by creating a configuration file named `ApplicationInsights.json`, and placing it in the same directory as `applicationinsights-agent-3.0.0-PREVIEW.2.jar`, with the following content:
3744

3845
```json
3946
{

0 commit comments

Comments
 (0)