Skip to content

Commit 8de1108

Browse files
Merge pull request #284735 from abinetabate/patch-9
Update azure-ad-authentication.md
2 parents fb9a7e9 + 5668ad3 commit 8de1108

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

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

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ 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.
36+
- [AutoInstrumentation for Python on Azure App Service](azure-web-apps-python.md)
3737
- [Profiler](profiler-overview.md).
3838

3939
<a name='configure-and-enable-azure-ad-based-authentication'></a>
@@ -93,10 +93,24 @@ services.AddApplicationInsightsTelemetry(new ApplicationInsightsServiceOptions
9393
ConnectionString = "InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://xxxx.applicationinsights.azure.com/"
9494
});
9595
```
96+
#### Environment variable configuration
9697

97-
### [Node.js](#tab/nodejs)
98+
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).
99+
100+
- For system-assigned identity:
98101

102+
| App setting | Value |
103+
| -------------- |--------- |
104+
| APPLICATIONINSIGHTS_AUTHENTICATION_STRING | `Authorization=AAD` |
99105

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

101115
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).
102116

0 commit comments

Comments
 (0)