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
In Azure Active Directory B2C (Azure AD B2C), you can send event data directly to [Application Insights](/azure/azure-monitor/app/app-insights-overview) by using the instrumentation key provided to Azure AD B2C. With an Application Insights technical profile, you can get detailed and customized event logs for your user journeys to:
34
+
In Azure Active Directory B2C (Azure AD B2C), you can send event data directly to [Application Insights](/azure/azure-monitor/app/app-insights-overview) by using the connection string provided to Azure AD B2C. With an Application Insights technical profile, you can get detailed and customized event logs for your user journeys to:
35
35
36
36
- Gain insights on user behavior.
37
37
- Troubleshoot your own policies in development or in production.
@@ -42,7 +42,7 @@ In Azure Active Directory B2C (Azure AD B2C), you can send event data directly t
42
42
43
43
## Overview
44
44
45
-
To enable custom event logs, add an Application Insights technical profile. In the technical profile, you define the Application Insights instrumentation key, the event name, and the claims to record. To post an event, add the technical profile as an orchestration step in a [user journey](userjourneys.md).
45
+
To enable custom event logs, add an Application Insights technical profile. In the technical profile, you define the Application Insights connection string, the event name, and the claims to record. To post an event, add the technical profile as an orchestration step in a [user journey](userjourneys.md).
46
46
47
47
When you use Application Insights, consider the following:
48
48
@@ -57,7 +57,7 @@ When you use Application Insights, consider the following:
57
57
58
58
## Create an Application Insights resource
59
59
60
-
When you use Application Insights with Azure AD B2C, all you need to do is create a resource and get the instrumentation key. For information, see [Create an Application Insights resource](/previous-versions/azure/azure-monitor/app/create-new-resource).
60
+
When you use Application Insights with Azure AD B2C, all you need to do is create a resource and get the connection string. For information, see [Create an Application Insights resource](/previous-versions/azure/azure-monitor/app/create-new-resource).
61
61
62
62
1. Sign in to the [Azure portal](https://portal.azure.com/).
63
63
1. If you have access to multiple tenants, select the **Settings** icon in the top menu to switch to your Microsoft Entra ID tenant from the **Directories + subscriptions** menu.
@@ -67,9 +67,9 @@ When you use Application Insights with Azure AD B2C, all you need to do is creat
67
67
1. For **Application Type**, select **ASP.NET web application**.
68
68
1. For **Resource Group**, select an existing group or enter a name for a new group.
69
69
1. Select **Create**.
70
-
1. Open the new Application Insights resource, expand **Essentials**, and copy the instrumentation key.
70
+
1. Open the new Application Insights resource, expand **Essentials**, and copy the connection string.
71
71
72
-

72
+

73
73
74
74
## Define claims
75
75
@@ -122,7 +122,7 @@ Technical profiles can be considered functions in the custom policy. These funct
122
122
123
123
| Technical profile | Task |
124
124
| ----------------- | -----|
125
-
| AppInsights-Common | The common technical profile with typical configuration. It includes the Application Insights instrumentation key, a collection of claims to record, and developer mode. The other technical profiles include the common technical profile and add more claims, such as the event name. |
125
+
| AppInsights-Common | The common technical profile with typical configuration. It includes the Application Insights connection string, a collection of claims to record, and developer mode. The other technical profiles include the common technical profile and add more claims, such as the event name. |
126
126
| AppInsights-SignInRequest | Records a **SignInRequest** event with a set of claims when a sign-in request has been received. |
127
127
| AppInsights-UserSignUp | Records a **UserSignUp** event when the user triggers the sign-up option in a sign-up or sign-in journey. |
128
128
| AppInsights-SignInComplete | Records a **SignInComplete** event upon successful authentication, when a token has been sent to the relying party application. |
@@ -137,7 +137,7 @@ Open the *TrustFrameworkExtensions.xml* file from the starter pack. Add the tech
Copy file name to clipboardExpand all lines: articles/active-directory-b2c/troubleshoot-with-application-insights.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ To use an existing instance of Application Insights in your subscription, follow
49
49
1. Make sure you're using the Microsoft Entra directory that has your Azure subscription, and not your Azure AD B2C directory. Select the **Directories + subscriptions** icon in the portal toolbar.
50
50
1. On the **Portal settings | Directories + subscriptions** page, find your Microsoft Entra directory in the **Directory name** list, and then select **Switch**.
51
51
1. Open the Application Insights resource that you created earlier.
52
-
1. On the **Overview** page, and record the **Instrumentation Key**
52
+
1. On the **Overview** page, and record the **Connection String**
53
53
54
54
To create an instance of Application Insights in your subscription, follow these steps:
55
55
@@ -61,7 +61,7 @@ To create an instance of Application Insights in your subscription, follow these
61
61
1. Complete the form, select **Review + create**, and then select **Create**.
62
62
1. Once the deployment completes, select **Go to resource**.
63
63
1. Under **Configure** in Application Insights menu, select **Properties**.
64
-
1. Record the **INSTRUMENTATION KEY** for use in a later step.
64
+
1. Record the **Connection String** for use in a later step.
65
65
66
66
## Configure the custom policy
67
67
@@ -74,7 +74,7 @@ To create an instance of Application Insights in your subscription, follow these
74
74
```
75
75
76
76
1. If it doesn't already exist, add a `<UserJourneyBehaviors>` child node to the `<RelyingParty>` node. It must be located after `<DefaultUserJourney ReferenceId="UserJourney Id" from your extensions policy, or equivalent (for example:SignUpOrSigninWithAAD" />`. See [RelyingParty schema reference](./relyingparty.md) for a complete order of the **RelyingParty** child elements.
77
-
1. Add the following node as a child of the `<UserJourneyBehaviors>` element. Make sure to replace `{Your Application Insights Key}` with the Application Insights **Instrumentation Key** that you recorded earlier.
77
+
1. Add the following node as a child of the `<UserJourneyBehaviors>` element. Make sure to replace `{Your Application Insights Key}` with the Application Insights **Connection String** that you recorded earlier.
@@ -144,7 +144,7 @@ We recommend you to install the [Azure AD B2C extension](https://marketplace.vis
144
144
After you set up the Application Insights, and configure the custom policy, you need to get your Application Insights **API ID**, and create **API Key**. Both the API ID and API key are used by Azure AD B2C extension to read the Application Insights events (telemetries). Your API keys should be managed like passwords. Keep it secret.
145
145
146
146
> [!NOTE]
147
-
> Application Insights instrumentation key that your create earlier is used by Azure AD B2C to send telemetries to Application Insights. You use the instrumentation key only in your Azure AD B2C policy, not in the VS Code extension.
147
+
> Application Insights Connection String that your create earlier is used by Azure AD B2C to send telemetries to Application Insights. You use the Connection String only in your Azure AD B2C policy, not in the VS Code extension.
0 commit comments