How to remove Microsoft -perf (data source) from a Data rule collection

Schifter, Gabriela 165 Reputation points
2025-03-07T15:11:39.4133333+00:00

I am trying to collect the Event records by the TaskScheduler that are recorded in the VM. I am using this query System[Provider[@Name='Microsoft-Windows-TaskScheduler/Operational']]]!, but I am having an issue with duplicate destination names within the Data Collection Rule. In this case, the duplicated name appears to be VMInsightsPerf-Logs-Dest, which requires the removal of Microsoft-Perf. However, I have not been able to find any documentation on how to remove it.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,493 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 29,711 Reputation points
    2025-03-12T13:47:58.79+00:00

    You need to modify the DCR configuration. Here’s a step-by-step guide to help you achieve this:

    Log in to the Azure Portal: Go to the Azure Portal.

    In the search bar, type "Data Collection Rules" and select it from the dropdown.

    Find and select the specific Data Collection Rule (DCR) that you want to modify.

    Once you have selected the DCR, click on the "Edit" button to modify the rule.

    In the "Data Sources" section, locate the Microsoft-Perf data source.

    Click on the "Delete" or "Remove" button next to the Microsoft-Perf data source to remove it from the rule.

    Ensure that the Microsoft-Perf data source has been removed and that no other unintended changes have been made.

    Click on the "Save" button to apply the changes to the Data Collection Rule.

    If you have multiple DCRs to update, consider using automation scripts (PowerShell, Azure CLI) to streamline the process.

    
    az monitor data-collection rule update \
    
      --resource-group <your-resource-group> \
    
      --name <your-data-collection-rule-name> \
    
      --data-sources <updated-data-sources-json>
    
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.