Microsoft Azure Data Collection Rules API

The Data Collection Rules API from Microsoft Azure, for data collection rules.

GitHub OpenAPI

Operations 7

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /dataCollectionRules/{ruleId}/streams/{stream} Ingest logs through a data collection rule · Microsoft Azure Ingestion Api Used To Directly Ingest Data Using Data… #
Ask an LLM
“Can I send custom log data straight into Azure Monitor with a data collection rule?”
“Can I upload gzip-compressed data to the Logs Ingestion API?”
Tell an agent
Upload records to stream {stream} of data collection rule {ruleId}.
Ingest gzip-encoded ({encoding}) data into stream {stream} via rule {ruleId}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules List data collection rules in a resource group · Microsoft Azure Lists All Data Collection Rules In The Specified Resource Group #
Ask an LLM
“Which Azure Monitor data collection rules are defined in one resource group?”
“Can I list only the DCRs that belong to a particular resource group?”
Tell an agent
List the data collection rules in my resource group.
Show resource-group-scoped DCRs.
GET /subscriptions/{subscriptionId}/providers/Microsoft.Insights/dataCollectionRules List data collection rules in a subscription · Microsoft Azure Lists All Data Collection Rules In The Specified Subscription #
Ask an LLM
“What data collection rules exist across my entire subscription?”
“Is there a subscription-wide inventory of Azure Monitor DCRs?”
Tell an agent
List every data collection rule in my subscription.
Show all DCRs subscription-wide.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName} Get a data collection rule · Microsoft Azure Returns The Specified Data Collection Rule #
Ask an LLM
“How do I see the data sources and destinations in one data collection rule?”
“What does a specific DCR collect and where does it send it?”
Tell an agent
Get data collection rule {dataCollectionRuleName}.
Show the sources and destinations defined in DCR {dataCollectionRuleName}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName} Create or replace a data collection rule · Microsoft Azure Creates Or Updates A Data Collection Rule #
Ask an LLM
“How do I create a data collection rule that sends VM logs to a Log Analytics workspace?”
“Can I redefine an existing DCR's data flows with a full new definition?”
Tell an agent
Create data collection rule {dataCollectionRuleName} in region {location}.
Define DCR {dataCollectionRuleName} in {location} with sources, destinations and flows {properties}.
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName} Update tags or identity on a data collection rule · Microsoft Azure Updates Part Of A Data Collection Rule #
Ask an LLM
“Can I change only the tags on an existing data collection rule?”
“How do I add a managed identity to a DCR that's already deployed?”
Tell an agent
Set tags {tags} on data collection rule {dataCollectionRuleName}.
Assign managed identity {identity} to existing DCR {dataCollectionRuleName}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName} Delete a data collection rule · Microsoft Azure Deletes A Data Collection Rule #
Ask an LLM
“How do I delete a data collection rule I no longer need?”
“Can I remove a DCR together with the associations that point to it?”
Tell an agent destructive · confirm first
Delete data collection rule {dataCollectionRuleName}.
Delete DCR {dataCollectionRuleName} and set delete-associations to {deleteAssociations}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-data-collection-rules-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-data-collection-rules-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Ingestion Using Data Collection Rules API
  version: '2023-01-01'
security:
- azure_auth:
  - user_impersonation
tags:


# --- truncated at 32 KB (48 KB total) ---
# Full source: https://artifacts.apis.io/microsoft-azure/openapi/microsoft-azure-data-collection-rules-api-openapi.yml