Resolving Issues with Data Collection Rule (DCR) Creation in Azure Monitor

SwathiDhanwada-MSFT 19,078 Reputation points Moderator
2024-08-01T04:52:17.57+00:00

Why am I unable to edit or create Data Collection Rules (DCR) in Azure Monitor, receiving errors such as "Preflight validation failed" and "Stream invalid"?

PS - Based on common issues that we have seen from customers and other sources, we are posting these questions to help the Azure community.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SwathiDhanwada-MSFT 19,078 Reputation points Moderator
    2024-08-01T04:53:07.9133333+00:00

    The issue you're facing with editing or creating Data Collection Rules (DCR) in Azure Monitor, where errors like "Preflight validation failed" and "Stream invalid" are encountered, is likely due to a problem with the user interface (UI) in the Azure portal. This was identified during troubleshooting where it was found that while the changes couldn't be made via the portal, they could be successfully executed using the API.

    To resolve this issue, you can use the API to make the necessary changes to your Data Collection Rules. For detailed steps on using the API for creating and managing Data Collection Rules, refer to the official Azure documentation: Create or Update Data Collection Rule (DCR) - Azure Monitor.

    Please do not forget to "up-vote" wherever the information provided helps you, as this can be beneficial to other community members.

    0 comments No comments

Your answer

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