
Azure monitor ingestion py
Sends custom logs to Azure Monitor Log Analytics through the Logs Ingestion API
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 3.2K
- Last commit
- 1 day ago
- License
- MIT
- Listing updated
- 1 day ago
Similar skills
About Azure monitor ingestion py
Azure monitor ingestion py is an open-source agent skill for cloud and infrastructure. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
This skill guides an agent through writing Python code that uploads custom log records to a Log Analytics workspace using the azure-monitor-ingestion SDK. It covers installing the packages, reading the data collection endpoint, rule ID and stream name from environment variables, and calling the client's upload method with lists of records or with logs loaded from a JSON file.
The guidance favors DefaultAzureCredential for local work and a constrained or specific credential for production, and it asks the agent to wrap clients in context managers. It also shows an on_error callback for handling partial upload failures, including retrying only the failed records, and an async client variant with sovereign cloud settings for Azure Government.
The agent needs an existing Log Analytics workspace, a data collection endpoint, a data collection rule and a target custom table. Records should include a TimeGenerated field and match the columns defined in the rule. The skill ships three files, including reference notes on capabilities and non-core scenarios.
When your agent uses it
Azure Monitor Ingestion SDK for Python. Use for sending custom logs to Log Analytics workspace via Logs Ingestion API. Triggers: "azure-monitor-ingestion", "LogsIngestionClient", "custom logs", "DCR", "data collection rule", "Log Analytics".
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 3 files (12 KB) on GitHub on 19 November 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/azure-monitor-ingestion-py to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/microsoft/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/azure-monitor-ingestion-py &&
cp -R "$tmp/.github/plugins/azure-sdk-python/skills/azure-monitor-ingestion-py" ~/.claude/skills/azure-monitor-ingestion-py &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/azure-monitor-ingestion-py inside it instead.
Copy the skill folder to ~/.agents/skills/azure-monitor-ingestion-py to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/microsoft/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/azure-monitor-ingestion-py &&
cp -R "$tmp/.github/plugins/azure-sdk-python/skills/azure-monitor-ingestion-py" ~/.agents/skills/azure-monitor-ingestion-py &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/azure-monitor-ingestion-py inside it instead.
Copy the skill folder to ~/.cursor/skills/azure-monitor-ingestion-py to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/microsoft/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/azure-monitor-ingestion-py &&
cp -R "$tmp/.github/plugins/azure-sdk-python/skills/azure-monitor-ingestion-py" ~/.cursor/skills/azure-monitor-ingestion-py &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/azure-monitor-ingestion-py inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/microsoft/skills.git --path .github/plugins/azure-sdk-python/skills/azure-monitor-ingestion-pyOr copy the folder to ~/.gemini/skills/azure-monitor-ingestion-py yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/azure-monitor-ingestion-py:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/microsoft/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/azure-monitor-ingestion-py &&
cp -R "$tmp/.github/plugins/azure-sdk-python/skills/azure-monitor-ingestion-py" ~/.copilot/skills/azure-monitor-ingestion-py &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/azure-monitor-ingestion-py inside it instead.
Get the folder:
git clone --depth 1 https://github.com/microsoft/skills.gitThen copy skills/.github/plugins/azure-sdk-python/skills/azure-monitor-ingestion-py into your agent's skills folder as azure-monitor-ingestion-py. Agents that support SKILL.md read one folder per skill.
What it does
- Upload custom log records
- Sends lists of Python dictionaries or JSON file contents to a configured stream via the Logs Ingestion API.
- Credential setup patterns
- Explains DefaultAzureCredential use locally and constrained credentials for production environments.
- Partial failure handling
- Shows an on_error callback that collects failed records so they can be retried or ignored.
- Async client usage
- Provides an asyncio example using the aio client and async credentials.
- Sovereign cloud configuration
- Covers authority host and credential scope settings for Azure Government endpoints.
- Required Azure resource setup
- Lists the workspace, endpoint, rule, and custom table prerequisites and the stream name format.
Good for
- Send application logs from a Python service into a Log Analytics custom table
- Upload a JSON file of events to Azure Monitor with retries for failed records
- Set up an async Python uploader for high-volume log ingestion
- Configure Azure Monitor log ingestion for an Azure Government deployment
Azure monitor ingestion py FAQ
What does the skill need before it can be used?
An existing Log Analytics workspace, a Data Collection Endpoint, a Data Collection Rule and a custom table, plus the azure-monitor-ingestion and azure-identity Python packages.
Which environment variables does the code expect?
AZURE_DCE_ENDPOINT, AZURE_DCR_RULE_ID and AZURE_DCR_STREAM_NAME are required, and AZURE_TOKEN_CREDENTIALS is used when DefaultAzureCredential runs in production.
Does the skill run any scripts?
No, it contains no scripts; it provides SKILL.md instructions and reference documents.
How do I install Azure monitor ingestion py in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/azure-monitor-ingestion-py to use it in all your projects, or to .claude/skills/azure-monitor-ingestion-py in one project.
Does Azure monitor ingestion py run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Azure monitor ingestion py?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Azure monitor ingestion py?
The closest alternatives to Azure monitor ingestion py are Azure monitor ingestion java, Azure monitor query py, Azure local, Azure monitor opentelemetry exporter py and Azure monitor opentelemetry py.
Where this comes from
- Description: from the skill's own SKILL.md.
More from microsoft/skills

Finds AKS scheduling, bin-packing, node scaling and storage cost inefficiencies
- Open source
- 3.2K GitHub stars
- Cloud and infrastructure

Diagnoses AKS GPU and KAITO incidents using read-only cluster evidence
- Open source
- 3.2K GitHub stars
- Cloud and infrastructure

Matches exact AKS error signatures to documented fixes, with citations and read-only
- Open source
- 3.2K GitHub stars
- Cloud and infrastructure

Guides bounded packet captures on AKS nodes and Azure network evidence collection
- Open source
- 3.2K GitHub stars
- Cloud and infrastructure

Investigates live AKS incidents read-only, tracing pod, node, network and quota failures
- Open source
- 3.2K GitHub stars
- Cloud and infrastructure

Builds Azure portal deep links to the blade that performs a given operation
- Open source
- 3.2K GitHub stars
- Cloud and infrastructure



