View data collection rules in Azure Monitor

There are multiple ways to view the DCRs in your subscription and the resources that they are associated with.

To view your DCRs in the Azure portal, select Data Collection Rules under Settings on the Monitor menu.

Screenshot that shows DCRs in the Azure portal.

Select a DCR to view its details, including the resources it's associated with. For some DCRs, you may need to use the JSON view to view its details. See Create and edit data collection rules (DCRs) in Azure Monitor for details on how you can modify them.

Note

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.

Preview DCR experience

A preview of the new Azure portal experience for DCRs is now available. Select the option on the displayed banner to enable this experience.

Screenshot of title bar to enable the preview experience for DCRs in the Azure portal.

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.

Data collection rule view

In the Data collection rule view, the Resource count represents the number of resources that have a data collection rule association with the DCR. Click this value to open the Resources view for that DCR.

Screenshot of data collection rules view in  the preview experience for DCRs in the Azure portal.

Resources view

The Resources view lists all Azure resources that match the selected filter, whether they have a DCR association or not. Tiles at the top of the view list the count of total resources listed, the number of resources not associated with a DCR, and the total number of DCRs matching the selected filter.

Screenshot of resources view in the preview experience for DCRs in the Azure portal.

The Data collection rules column represents the number of DCRs that are associated with each resource. Click this value to open a new pane listing the DCRs associated with the resource.

Screenshot of the DCR associations for a resource in the resources view in  the preview experience for DCRs in the Azure portal.

Important

Not all DCRs are associated with resources. For example, DCRs used with the Logs ingestion API 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.

Create new associations

Using the Resources view, you can create new associations to one or more DCRs for a particular resource. Select the resource and then click Associate to existing data collection rules.

Screenshot of the create association button in the resources view in  the preview experience for DCRs in the Azure portal.

This opens a list of DCRs that can be associated with the current resource. This list only includes DCRs that are valid for the particular resource. For example, if the resource is a VM with the Azure Monitor agent (AMA) installed, only DCRs that process AMA data are listed.

Screenshot of the create associations view in the resources view in the preview experience for DCRs in the Azure portal.

Click Review & Associate to create the association.

Next steps

See the following articles for additional information on how to work with DCRs.