File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
articles/azure-monitor/app Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -76,12 +76,9 @@ Application Insights .NET SDK supports the credential classes provided by [Azure
76
76
Below is an example of manually creating and configuring a ` TelemetryConfiguration ` using .NET:
77
77
78
78
``` csharp
79
- var config = new TelemetryConfiguration
80
- {
81
- ConnectionString = " InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://xxxx.applicationinsights.azure.com/"
82
- }
79
+ TelemetryConfiguration .Active .ConnectionString = " InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://xxxx.applicationinsights.azure.com/" ;
83
80
var credential = new DefaultAzureCredential ();
84
- config .SetAzureTokenCredential (credential );
81
+ TelemetryConfiguration . Active .SetAzureTokenCredential (credential );
85
82
```
86
83
87
84
Below is an example of configuring the ` TelemetryConfiguration ` using .NET Core:
You can’t perform that action at this time.
0 commit comments