File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
articles/azure-monitor/app Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ Application Insights Node.JS supports the credential classes provided by [Azure
106
106
#### DefaultAzureCredential
107
107
108
108
``` javascript
109
- let appInsights = require ( " applicationinsights" ) ;
109
+ import appInsights from " applicationinsights" ;
110
110
import { DefaultAzureCredential } from " @azure/identity" ;
111
111
112
112
const credential = new DefaultAzureCredential ();
@@ -118,7 +118,7 @@ appInsights.defaultClient.config.aadTokenCredential = credential;
118
118
#### ClientSecretCredential
119
119
120
120
``` javascript
121
- let appInsights = require ( " applicationinsights" ) ;
121
+ import appInsights from " applicationinsights" ;
122
122
import { ClientSecretCredential } from " @azure/identity" ;
123
123
124
124
const credential = new ClientSecretCredential (
You can’t perform that action at this time.
0 commit comments