Skip to content

Commit bd2b70d

Browse files
committed
Filter by correlation ID
1 parent fd66c3b commit bd2b70d

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed
23.4 KB
Loading
Loading
Loading

articles/active-directory-b2c/troubleshoot-custom-policies.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,25 @@ We recommend installing the [Azure AD B2C extension](https://marketplace.visuals
8888

8989
A single sign-in flow can issue more than one Azure Application Insights trace. In the following screenshot, the *B2C_1A_signup_signin* policy has three logs. Each log represents part of the sign-in flow.
9090

91+
There is a short delay, typically less than five minutes, before you can see new logs in Application Insights.
92+
93+
The following screenshot shows the Azure AD B2C extension for VS Code with Azure Application Insights trace explorer.
94+
9195
![Screenshot of Azure AD B2C extension for VS Code with Azure Application Insights trace.](./media/troubleshoot-custom-policies/vscode-extension-application-insights-trace.png)
9296

97+
### Filter the trace log
98+
99+
With the focus on the Azure AD B2C trace explorer, start to type the first digit of the correlation ID, or a time you want to find. You will see a filter box in the top-right of the Azure AD B2C trace explorer showing what you have typed so far, and matching trace logs will be highlighted.
100+
101+
![Screenshot of Azure AD B2C extension Azure AD B2C trace explorer filter highlighting.](./media/troubleshoot-custom-policies/vscode-extension-application-insights-highlight.png)
102+
103+
Hovering over the filter box and selecting **Enable Filter on Type** will show only matching trace logs. Use the **'X' Clear button** to clear the filter.
104+
105+
![Screenshot of Azure AD B2C extension Azure AD B2C trace explorer filter.](./media/troubleshoot-custom-policies/vscode-extension-application-insights-filter.png)
106+
93107
### Application Insights trace log details
94108

95-
When you select an Azure Application Insights trace, the extension opens the **Application Insights details** page with the following information:
109+
When you select an Azure Application Insights trace, the extension opens the **Application Insights details** window with the following information:
96110

97111
- **Application Insights** - Generic information about the trace log, including the policy name, correlation ID, Azure Application Insights trace ID, and trace timestamp.
98112
- **Technical profiles** - List of technical profiles that appear in the trace log.
@@ -102,6 +116,10 @@ When you select an Azure Application Insights trace, the extension opens the **A
102116
- **Exceptions** - List of exceptions or fatal errors that appear in the trace log.
103117
- **Application Insights JSON** - The raw data the returns from the Application Insights.
104118

119+
The following screenshot shows an example of the Application Insights trace log details window.
120+
121+
![Screenshot of Azure AD B2C extension Azure AD B2C trace report.](./media/troubleshoot-custom-policies/vscode-extension-application-insights-report.png)
122+
105123
## Troubleshoot JWT tokens
106124

107125
For JWT token validation and debugging purposes, your can decode JWTs using a site like [https://jwt.ms](https://jwt.ms). Create a test application that can redirect to `https://jwt.ms` for token inspection. If you haven't already done so, [register a web application](tutorial-register-applications.md), and [enable ID token implicit grant](tutorial-register-applications.md#enable-id-token-implicit-grant).

0 commit comments

Comments
 (0)