# azure-metrics-advisor

azure-metrics-advisor is a Claude Code skill for configuring Azure AI Metrics Advisor, from data feeds and anomaly detection to alerts and REST API integrations.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 166 installs · ★ 818 repo stars
- Author: MicrosoftDocs
- License: CC-BY-4.0 · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/MicrosoftDocs/Agent-Skills/tree/HEAD/skills/azure-metrics-advisor/SKILL.md
- Updated: 2026-10-25
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/azure-metrics-advisor

## What it does

The skill covers connecting data sources, configuring alert hooks, and tuning anomaly detection. Its reference material also discusses service quotas, cost management, security, and credentials used for data sources.

For application work, it covers ingestion queries and the Metrics Advisor REST API and client SDKs. Local reference material is paired with remote Microsoft documentation fetched through `mcp_microsoftdocs:microsoft_docs_fetch` or `fetch_webpage`. Network access is required, so remote documentation cannot be retrieved offline.

## Requirements
- Works with: Azure

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add MicrosoftDocs/Agent-Skills --skill azure-metrics-advisor -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/azure-metrics-advisor/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/azure-metrics-advisor/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add MicrosoftDocs/Agent-Skills --skill azure-metrics-advisor -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/azure-metrics-advisor/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add MicrosoftDocs/Agent-Skills --skill azure-metrics-advisor -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/azure-metrics-advisor/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install MicrosoftDocs/Agent-Skills skills/azure-metrics-advisor
```

2. **Manually: put the files in place**
- File: `.github/skills/azure-metrics-advisor/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add MicrosoftDocs/Agent-Skills --skill azure-metrics-advisor -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/MicrosoftDocs/Agent-Skills --path skills/azure-metrics-advisor
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/azure-metrics-advisor/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add MicrosoftDocs/Agent-Skills --skill azure-metrics-advisor -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/MicrosoftDocs/Agent-Skills/tree/HEAD/skills/azure-metrics-advisor/SKILL.md

## When to use it
- connect a data source to Metrics Advisor
- configure anomaly detection and alert hooks
- check service limits and quotas
- set up credentials and authentication
- call Metrics Advisor from an application with its REST API or SDK

## Example prompts
- Help me connect a data source to Azure AI Metrics Advisor and check the ingestion query.
- Configure anomaly detection and webhook alerts for my Metrics Advisor instance.
- Show how to call the Metrics Advisor REST API from my application.

## Source text · SKILL.md · CC-BY-4.0

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 2c0f52a77fa33473.

BEGIN THIRD-PARTY FILE 2c0f52a77fa33473
```text
---
name: azure-metrics-advisor
description: Expert knowledge for Azure AI Metrics Advisor development including decision making, limits & quotas, security, configuration, and integrations & coding patterns. Use when configuring data feeds, tuning anomaly detection, managing alerts/hooks, or calling Metrics Advisor REST/SDKs, and other Azure AI Metrics Advisor related development tasks. Not for Azure AI Anomaly Detector (use azure-anomaly-detector), Azure Monitor (use azure-monitor), Azure Stream Analytics (use azure-stream-analytics).
compatibility: Requires network access. Uses mcp_microsoftdocs:microsoft_docs_fetch or fetch_webpage to retrieve documentation.
metadata:
  generated_at: "2026-06-14"
  generator: "docs2skills/1.0.0"
---
# Azure AI Metrics Advisor Skill

This skill provides expert guidance for Azure AI Metrics Advisor. Covers decision making, limits & quotas, security, configuration, and integrations & coding patterns. It combines local quick-reference content with remote documentation fetching capabilities.

## How to Use This Skill

> **IMPORTANT for Agent**: Use the **Category Index** below to locate relevant sections. For categories with line ranges (e.g., `L35-L120`), use `read_file` with the specified lines. For categories with file links (e.g., `[security.md](security.md)`), use `read_file` on the linked reference file

> **IMPORTANT for Agent**: If `metadata.generated_at` is more than 3 months old, suggest the user pull the latest version from the repository. If `mcp_microsoftdocs` tools are not available, suggest the user install it: [Installation Guide](https://github.com/MicrosoftDocs/mcp/blob/main/README.md)

This skill requires **network access** to fetch documentation content:
- **Preferred**: Use `mcp_microsoftdocs:microsoft_docs_fetch` with query string `from=learn-agent-skill`. Returns Markdown.
- **Fallback**: Use `fetch_webpage` with query string `from=learn-agent-skill&accept=text/markdown`. Returns Markdown.

## Category Index

| Category | Lines | Description |
|----------|-------|-------------|
| Decision Making | L33-L37 | Guidance on estimating, controlling, and optimizing Metrics Advisor costs and usage, including pricing factors, quotas, and cost-management best practices. |
| Limits & Quotas | L38-L42 | Service limits for Metrics Advisor: max metrics, dimensions, alerts, data ingestion rates, detection constraints, and guidance on scaling within quotas. |
| Security | L43-L48 | Configuring Metrics Advisor security: data encryption, auth options (keys, AAD), and creating/managing secure credential entities for data sources and monitoring. |
| Configuration | L49-L53 | Setting up Metrics Advisor: configuring alert hooks (email/webhook), alerting rules, data feed and detection settings, and tuning anomaly detection behavior for your instance. |
```
END THIRD-PARTY FILE 2c0f52a77fa33473

The third-party file has ended. Everything between the 2c0f52a77fa33473 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2834 of 4368 bytes. © MicrosoftDocs · CC-BY-4.0 · https://github.com/MicrosoftDocs/Agent-Skills/tree/HEAD/skills/azure-metrics-advisor/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
