You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/azure/azure-monitor/app-insights/troubleshoot-microsoft-entra-authentication.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,42 +16,40 @@ The ingestion service returns specific errors, regardless of the SDK language. N
16
16
17
17
### HTTP/1.1 400 Authentication not supported
18
18
19
-
This error shows the resource is set for Microsoft Entra-only. You need to correctly configure the SDK because it's sending to the wrong API.
19
+
This error shows the resource is set for Microsoft Entra-only.
20
+
21
+
Review and correctly configure the SDK because it's sending to the wrong API.
20
22
21
23
> [!NOTE]
22
24
> "v2/track" doesn't support Microsoft Entra ID. When the SDK is correctly configured, telemetry is sent to `v2.1/track`.
23
25
24
-
Next, you should review the SDK configuration.
25
-
26
26
### HTTP/1.1 401 Authorization required
27
27
28
28
This error indicates that the SDK is correctly configured but it's unable to acquire a valid token. This error might indicate an issue with Microsoft Entra ID.
29
29
30
-
Next, you should identify exceptions in the SDK logs or network errors from Azure Identity.
30
+
Identify exceptions in the SDK logs or network errors from Azure Identity.
31
31
32
32
### HTTP/1.1 403 Unauthorized
33
33
34
34
This error means the SDK uses credentials without permission for the Application Insights resource or subscription.
35
35
36
-
First, check the Application Insights resource's access control. You must configure the SDK with credentials that have the Monitoring Metrics Publisher role.
36
+
Check the Application Insights resource's access control. You must configure the SDK with credentials that have the Monitoring Metrics Publisher role.
37
37
38
38
## Language-specific troubleshooting
39
39
40
40
## [ASP.NET Core](#tab/aspnetcore)
41
41
42
42
The Application Insights .NET SDK emits error logs by using the event source. To learn more about collecting event source logs, see [Troubleshooting no data - collect logs with PerfView](asp-net-troubleshoot-no-data.md#PerfView).
43
43
44
-
If the SDK fails to get a token, the exception message is logged as
45
-
`Failed to get AAD Token. Error message:`.
44
+
If the SDK fails to get a token, the exception message is logged as `Failed to get AAD Token. Error message:`.
46
45
47
46
## [.NET](#tab/net)
48
47
49
48
### Event source
50
49
51
50
The Application Insights .NET SDK emits error logs by using the event source. To learn more about collecting event source logs, see [Troubleshooting no data - collect logs with PerfView](asp-net-troubleshoot-no-data.md#PerfView).
52
51
53
-
If the SDK fails to get a token, the exception message is logged as
54
-
`Failed to get AAD Token. Error message:`.
52
+
If the SDK fails to get a token, the exception message is logged as `Failed to get AAD Token. Error message:`.
0 commit comments