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/azure-monitor/essentials/data-collection-rule-view.md
+26-1Lines changed: 26 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ ms.reviewer: nikeist
9
9
---
10
10
11
11
# View data collection rules in Azure Monitor
12
-
There are multiple ways to view the DCRs in your subscription.
12
+
There are multiple ways to view the DCRs in your subscription and the resources that they are associated with.
13
13
14
14
### [Portal](#tab/portal)
15
15
To view your DCRs in the Azure portal, select **Data Collection Rules** under **Settings** on the **Monitor** menu.
@@ -21,6 +21,8 @@ Select a DCR to view its details. For DCRs supporting VMs, you can view and modi
21
21
> [!NOTE]
22
22
> Although this view shows all DCRs in the specified subscriptions, selecting the **Create** button will create a data collection for Azure Monitor Agent. Similarly, this page will only allow you to modify DCRs for Azure Monitor Agent. For guidance on how to create and update DCRs for other workflows, see [Create and edit data collection rules (DCRs) in Azure Monitor](./data-collection-rule-create-edit.md).
23
23
24
+
25
+
24
26
### [PowerShell](#tab/powershell)
25
27
Use [Get-AzDataCollectionRule](/powershell/module/az.monitor/get-azdatacollectionrule) to retrieve the DCRs in your subscription.
26
28
@@ -51,6 +53,29 @@ az monitor data-collection rule association list --resource "/subscriptions/0000
51
53
```
52
54
---
53
55
56
+
57
+
58
+
## Preview DCR experience
59
+
A preview of the new Azure portal experience for DCRs is now available.
60
+
61
+
:::image type="content" source="media/data-collection-rule-view/preview-experience.png" alt-text="Screenshot of title bar to enable the preview experience for DCRs in the Azure portal." lightbox="media/data-collection-rule-view/preview-experience.png":::
62
+
63
+
The preview experience ties together DCRs and the resources they're associated with. You can either view the list by **Data collection rule**, which shows the number of resources associated with each DCR, or by **Resources**, which shows the count of DCRs associated with each resource.
64
+
65
+
> [!IMPORTANT]
66
+
> Not all DCRs are associated with resources. For example, DCRs used with the [Logs ingestion API](../logs/logs-ingestion-api-overview.md) are specified in the API call and do not use associations. These DCRs still appear in the view, but will have a **Resource Count** of 0.
67
+
68
+
### Data collection rule view
69
+
In the **Data collection rule** view, the **Resource count** represents the number of resources that have a [data collection rule association](./data-collection-rule-overview.md#data-collection-rule-associations) with the DCR. Click this value to open the **Resources** view for that DCR.
70
+
71
+
:::image type="content" source="media/data-collection-rule-view/data-collection-rules-view.png" alt-text="Screenshot of data collection rules view in the preview experience for DCRs in the Azure portal." lightbox="media/data-collection-rule-view/data-collection-rules-view.png":::
72
+
73
+
### Resources view
74
+
The **Resources** view lists all Azure resources that match the selected filter. The **Data collection rules** column represents the number of DCRs that are associated with each resource. Click this value to open the **Data collection rule** view for that resource .
75
+
76
+
:::image type="content" source="media/data-collection-rule-view/resources-view.png" alt-text="Screenshot of resources view in the preview experience for DCRs in the Azure portal." lightbox="media/data-collection-rule-view/resources-view.png":::
77
+
78
+
54
79
## Next steps
55
80
See the following articles for additional information on how to work with DCRs.
0 commit comments