Skip to content

Commit 867a9cf

Browse files
Merge pull request #298444 from bernawy/patch-55
Replaced InstrumentationKey with ConnectionString
2 parents b918a8f + a331c62 commit 867a9cf

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/active-directory-b2c/troubleshoot-with-application-insights.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: kengaderdus
66
manager: CelesteDG
77
ms.service: azure-active-directory
88
ms.topic: troubleshooting
9-
ms.date: 01/22/2024
9+
ms.date: 04/17/2025
1010
ms.author: kengaderdus
1111
ms.subservice: b2c
1212
zone_pivot_groups: b2c-policy-type
@@ -49,7 +49,7 @@ To use an existing instance of Application Insights in your subscription, follow
4949
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.
5050
1. On the **Portal settings | Directories + subscriptions** page, find your Microsoft Entra directory in the **Directory name** list, and then select **Switch**.
5151
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**
5353

5454
To create an instance of Application Insights in your subscription, follow these steps:
5555

@@ -61,7 +61,7 @@ To create an instance of Application Insights in your subscription, follow these
6161
1. Complete the form, select **Review + create**, and then select **Create**.
6262
1. Once the deployment completes, select **Go to resource**.
6363
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.
6565

6666
## Configure the custom policy
6767

@@ -74,10 +74,10 @@ To create an instance of Application Insights in your subscription, follow these
7474
```
7575

7676
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.
7878

7979
```xml
80-
<JourneyInsights TelemetryEngine="ApplicationInsights" InstrumentationKey="{Your Application Insights Key}" DeveloperMode="true" ClientEnabled="false" ServerEnabled="true" TelemetryVersion="1.0.0" />
80+
<JourneyInsights TelemetryEngine="ApplicationInsights" ConnectionString="{Your Application Insights Connection String}" DeveloperMode="true" ClientEnabled="false" ServerEnabled="true" TelemetryVersion="1.0.0" />
8181
```
8282

8383
* `DeveloperMode="true"` tells ApplicationInsights to expedite the telemetry through the processing pipeline. Good for development, but constrained at high volumes. In production, set the `DeveloperMode` to `false`.
@@ -102,7 +102,7 @@ To create an instance of Application Insights in your subscription, follow these
102102
<Endpoint Id="Token" UserJourneyReferenceId="RedeemRefreshToken" />
103103
</Endpoints>
104104
<UserJourneyBehaviors>
105-
<JourneyInsights TelemetryEngine="ApplicationInsights" InstrumentationKey="{Your Application Insights Key}" DeveloperMode="true" ClientEnabled="false" ServerEnabled="true" TelemetryVersion="1.0.0" />
105+
<JourneyInsights TelemetryEngine="ApplicationInsights" ConnectionString="{Your Application Insights Connection String}" DeveloperMode="true" ClientEnabled="false" ServerEnabled="true" TelemetryVersion="1.0.0" />
106106
</UserJourneyBehaviors>
107107
...
108108
</TrustFrameworkPolicy>
@@ -144,7 +144,7 @@ We recommend you to install the [Azure AD B2C extension](https://marketplace.vis
144144
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.
145145

146146
> [!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.
148148

149149
To get Application Insights ID and key:
150150

@@ -195,7 +195,7 @@ To improve your production environment performance and better user experience, i
195195

196196
```xml
197197
<UserJourneyBehaviors>
198-
<JourneyInsights TelemetryEngine="ApplicationInsights" InstrumentationKey="{Your Application Insights Key}" DeveloperMode="false" ClientEnabled="false" ServerEnabled="true" TelemetryVersion="1.0.0" />
198+
<JourneyInsights TelemetryEngine="ApplicationInsights" ConnectionString="{Your Application Insights Connection String}" DeveloperMode="false" ClientEnabled="false" ServerEnabled="true" TelemetryVersion="1.0.0" />
199199
</UserJourneyBehaviors>
200200
```
201201

0 commit comments

Comments
 (0)