Skip to content

Commit e03a195

Browse files
committed
Update
1 parent fd4c400 commit e03a195

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

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

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ Application Insights Node.JS supports the credential classes provided by [Azure
108108
- We recommend `ClientSecretCredential` for service principals.
109109
- Provide the tenant ID, client ID, and client secret to the constructor.
110110

111-
#### DefaultAzureCredential
112111

113112
```javascript
114113
import appInsights from "applicationinsights";
@@ -120,22 +119,6 @@ appInsights.defaultClient.config.aadTokenCredential = credential;
120119

121120
```
122121

123-
#### ClientSecretCredential
124-
125-
```javascript
126-
import appInsights from "applicationinsights";
127-
import { ClientSecretCredential } from "@azure/identity";
128-
129-
const credential = new ClientSecretCredential(
130-
"<YOUR_TENANT_ID>",
131-
"<YOUR_CLIENT_ID>",
132-
"<YOUR_CLIENT_SECRET>"
133-
);
134-
appInsights.setup("InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://xxxx.applicationinsights.azure.com/").start();
135-
appInsights.defaultClient.config.aadTokenCredential = credential;
136-
137-
```
138-
139122
#### Environment variable configuration
140123

141124
When using [Azure App Services autoinstrumentation](./azure-web-apps-nodejs.md) The `APPLICATIONINSIGHTS_AUTHENTICATION_STRING` environment variable lets Application Insights authenticate to Microsoft Entra ID and send telemetry.

0 commit comments

Comments
 (0)