Skip to content

Commit d7ad758

Browse files
authored
Update azure-ad-authentication.md
documenting entra id support for auto instrumentation
1 parent 41330c5 commit d7ad758

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

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

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ The following Software Development Kits (SDKs) and features are unsupported for
3333
Microsoft Entra authentication is only available for Application Insights Java Agent greater than or equal to 3.2.0.
3434
- [ApplicationInsights JavaScript web SDK](javascript.md).
3535
- [Application Insights OpenCensus Python SDK](/previous-versions/azure/azure-monitor/app/opencensus-python) with Python version 3.4 and 3.5.
36-
- On-by-default [autoinstrumentation/codeless monitoring](codeless-overview.md) (for languages) for Azure App Service, Azure Virtual Machines/Azure Virtual Machine Scale Sets, and Azure Functions.
3736
- [Profiler](profiler-overview.md).
3837

3938
<a name='configure-and-enable-azure-ad-based-authentication'></a>
@@ -93,10 +92,24 @@ services.AddApplicationInsightsTelemetry(new ApplicationInsightsServiceOptions
9392
ConnectionString = "InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://xxxx.applicationinsights.azure.com/"
9493
});
9594
```
95+
#### Environment variable configuration
9696

97-
### [Node.js](#tab/nodejs)
97+
Use the `APPLICATIONINSIGHTS_AUTHENTICATION_STRING` environment variable to let Application Insights authenticate to Microsoft Entra ID and send telemetry when using [Azure App Services autoinstrumentation](./azure-web-apps-net-core.md).
98+
99+
- For system-assigned identity:
98100

101+
| App setting | Value |
102+
| -------------- |--------- |
103+
| APPLICATIONINSIGHTS_AUTHENTICATION_STRING | `Authorization=AAD` |
99104

105+
- For user-assigned identity:
106+
107+
| App setting | Value |
108+
| ------------- | -------- |
109+
| APPLICATIONINSIGHTS_AUTHENTICATION_STRING | `Authorization=AAD;ClientId={Client id of the User-Assigned Identity}` |
110+
111+
112+
### [Node.js](#tab/nodejs)
100113

101114
Azure Monitor OpenTelemetry and Application Insights Node.JS supports the credential classes provided by [Azure Identity](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/identity/identity#credential-classes).
102115

0 commit comments

Comments
 (0)