Skip to content

Commit 9621bdc

Browse files
authored
Merge pull request #103149 from orgads/patch-1
Fix javascript examples
2 parents 3399484 + 759ea09 commit 9621bdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/azure-monitor/app/azure-ad-authentication.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Application Insights Node.JS supports the credential classes provided by [Azure
106106
#### DefaultAzureCredential
107107

108108
```javascript
109-
let appInsights = require("applicationinsights");
109+
import appInsights from "applicationinsights";
110110
import { DefaultAzureCredential } from "@azure/identity";
111111

112112
const credential = new DefaultAzureCredential();
@@ -118,7 +118,7 @@ appInsights.defaultClient.config.aadTokenCredential = credential;
118118
#### ClientSecretCredential
119119

120120
```javascript
121-
let appInsights = require("applicationinsights");
121+
import appInsights from "applicationinsights";
122122
import { ClientSecretCredential } from "@azure/identity";
123123

124124
const credential = new ClientSecretCredential(

0 commit comments

Comments
 (0)