spottedmahn
spottedmahn

Reputation: 16031

How to Setup User Journey Viewer for Azure AD B2C

According to Azure Active Directory B2C: Collecting Logs, I can collect logs on my custom policies but how do I view logs effectively? I can't make sense of anything going directly into app insights.

According to this note:

The community has developed a user journey viewer to help identity developers. It is not supported by Microsoft and made available strictly as-is. It reads from your Application Insights instance and provides a well-structure view of the user journey events. You obtain the source code and deploy it in your own solution.

I believe the app referenced in this note is: WingTipUserJourneyPlayerWebApplication, correct? (I think that is the app b/c of this readme.md)

A different version of the userjourney recorder, adapted to read B2C logs in Application Insights, can be found here as part of the wingtiptoys project. See article for details:


Assuming this is the correct app, how do I configure it to read my App Insights logs?

Upvotes: 3

Views: 1019

Answers (2)

Raja S Rapaka
Raja S Rapaka

Reputation: 1

There is an official answer to this, this setup brings user journey insights including journey steps into Visual studio code (VS code) and you can debug them easily.

https://learn.microsoft.com/en-us/azure/active-directory-b2c/troubleshoot-with-application-insights?pivots=b2c-custom-policy

Basically this involves, granting API access to application insights, installing Azure AD B2C plugin extension for VS code and configuring.

This gives two advantages.

  1. Azure AD B2C policy explorer, that helps you to navigate policies very nicely and easily
  2. You can look see how far your Journey steps executed, whether the journey completed or not. Obviously if there are any exceptions.

So in my opinion this is an indispensable tool for Azure AD B2C custom policy development.

Upvotes: 0

Chris Padgett
Chris Padgett

Reputation: 14724

A Word document that describes how to integrate a B2C policy with Azure Application Insights in order to log the user journey events that occur during execution of this policy and view these events in either the Azure Portal or the User Journey Player application can be downloaded from Integrating a B2C policy with Azure Application Insights.

Upvotes: 3

Related Questions