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
7676Below is an example of manually creating and configuring a ` TelemetryConfiguration ` using .NET:
7777
7878``` 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/" ;
8380var credential = new DefaultAzureCredential ();
84- config .SetAzureTokenCredential (credential );
81+ TelemetryConfiguration . Active .SetAzureTokenCredential (credential );
8582```
8683
8784Below is an example of configuring the ` TelemetryConfiguration ` using .NET Core:
You can’t perform that action at this time.
0 commit comments