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: articles/active-directory-b2c/azure-monitor.md
+12-9Lines changed: 12 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ ms.workload: identity
11
11
ms.topic: how-to
12
12
ms.author: kengaderdus
13
13
ms.subservice: B2C
14
-
ms.date: 06/03/2022
14
+
ms.date: 07/12/2022
15
15
---
16
16
17
17
# Monitor Azure AD B2C with Azure Monitor
@@ -173,18 +173,21 @@ You're ready to [create diagnostic settings](../active-directory/reports-monitor
173
173
To configure monitoring settings for Azure AD B2C activity logs:
174
174
175
175
1. Sign in to the [Azure portal](https://portal.azure.com/) with your Azure AD B2C administrative account. This account must be a member of the security group you specified in the [Select a security group](#32-select-a-security-group) step.
176
-
1. Make sure you're using the directory that contains your Azure AD B2C tenant. Select the **Directories + subscriptions** icon in the portal toolbar.
177
-
1. On the **Portal settings | Directories + subscriptions** page, find your Azure AD B2C directory in the **Directory name** list, and then select **Switch**.
176
+
1. Make sure you're using the directory that contains your Azure AD B2C tenant:
177
+
1. Select the **Directories + subscriptions** icon in the portal toolbar.
178
+
2. On the **Portal settings | Directories + subscriptions** page, find your Azure AD B2C directory in the **Directory name** list, and then select **Switch**.
178
179
1. Select **Azure Active Directory**
179
180
1. Under **Monitoring**, select **Diagnostic settings**.
180
-
1. If there are existing settings for the resource, you'll see a list of settings already configured. Either select **Add diagnostic setting** to add a new setting, or select **Edit** to edit an existing setting. Each setting can have no more than one of each of the destination types.
181
+
1. If there are existing settings for the resource, you'll see a list of settings already configured. Either select **Add diagnostic setting** to add a new setting, or select **Edit settings** to edit an existing setting. Each setting can have no more than one of each of the destination types.
181
182
182
-

183
+

183
184
184
185
1. Give your setting a name if it doesn't already have one.
185
-
1. Check the box for each destination to send the logs. Select **Configure** to specify their settings **as described in the following table**.
186
-
1. Select **Send to Log Analytics**, and then select the **Name of workspace** you created earlier (`AzureAdB2C`).
187
186
1. Select **AuditLogs** and **SignInLogs**.
187
+
1. Select **Send to Log Analytics Workspace**, and then:
188
+
1. Under **Subscription**, select your subscription.
189
+
2. Under **Log Analytics Workspace**, select the name of the workspace you created earlier such as `AzureAdB2C`.
190
+
188
191
189
192
> [!NOTE]
190
193
> Only the **AuditLogs** and **SignInLogs** diagnostic settings are currently supported for Azure AD B2C tenants.
@@ -204,7 +207,7 @@ Now you can configure your Log Analytics workspace to visualize your data and co
204
207
205
208
Log queries help you to fully use the value of the data collected in Azure Monitor Logs. A powerful query language allows you to join data from multiple tables, aggregate large sets of data, and perform complex operations with minimal code. Virtually any question can be answered and analysis performed as long as the supporting data has been collected, and you understand how to construct the right query. For more information, see [Get started with log queries in Azure Monitor](../azure-monitor/logs/get-started-queries.md).
206
209
207
-
1. From **Log Analytics workspace**, select **Logs**
210
+
1. From **Log Analytics workspace** window, select **Logs**
208
211
1. In the query editor, paste the following [Kusto Query Language](/azure/data-explorer/kusto/query/) query. This query shows policy usage by operation over the past x days. The default duration is set to 90 days (90d). Notice that the query is focused only on the operation where a token/code is issued by policy.
209
212
210
213
```kusto
@@ -253,7 +256,7 @@ Workbooks provide a flexible canvas for data analysis and the creation of rich v
253
256
254
257
Follow the instructions below to create a new workbook using a JSON Gallery Template. This workbook provides a **User Insights** and **Authentication** dashboard for Azure AD B2C tenant.
255
258
256
-
1. From the **Log Analytics workspace**, select **Workbooks**.
259
+
1. From the **Log Analytics workspace** window, select **Workbooks**.
257
260
1. From the toolbar, select **+ New** option to create a new workbook.
258
261
1. On the **New workbook** page, select the **Advanced Editor** using the **</>** option on the toolbar.
1. Find the directory that contains your subscription and select the **Switch** button next to it. Switching a directory reloads the portal.
52
+
1. Find the directory that contains your subscription and select the **Switch** button next to it. Switching a directory reloads the portal. If the directory that contains your subscription has the **Current** label next to it, you don't need to do anything.
52
53
53
-

54
+

54
55
55
56
1. Add **Microsoft.AzureActiveDirectory** as a resource provider for the Azure subscription you're using ([learn more](../azure-resource-manager/management/resource-providers-and-types.md?WT.mc_id=Portal-Microsoft_Azure_Support#register-resource-provider-1)):
0 commit comments