natureco-cli 5.18.2 → 5.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/skills/airunway-aks-setup/SKILL.md +73 -0
- package/skills/algorithmic-art/SKILL.md +405 -0
- package/skills/appinsights-instrumentation/SKILL.md +76 -0
- package/skills/azure-ai/SKILL.md +71 -0
- package/skills/azure-aigateway/SKILL.md +129 -0
- package/skills/azure-cloud-migrate/SKILL.md +52 -0
- package/skills/azure-compliance/SKILL.md +108 -0
- package/skills/azure-compute/SKILL.md +46 -0
- package/skills/azure-cost/SKILL.md +45 -0
- package/skills/azure-deploy/SKILL.md +97 -0
- package/skills/azure-diagnostics/SKILL.md +151 -0
- package/skills/azure-enterprise-infra-planner/SKILL.md +54 -0
- package/skills/azure-hosted-copilot-sdk/SKILL.md +89 -0
- package/skills/azure-kubernetes/SKILL.md +153 -0
- package/skills/azure-kusto/SKILL.md +231 -0
- package/skills/azure-messaging/SKILL.md +57 -0
- package/skills/azure-prepare/SKILL.md +165 -0
- package/skills/azure-quotas/SKILL.md +276 -0
- package/skills/azure-rbac/SKILL.md +17 -0
- package/skills/azure-reliability/SKILL.md +387 -0
- package/skills/azure-resource-lookup/SKILL.md +108 -0
- package/skills/azure-resource-visualizer/SKILL.md +183 -0
- package/skills/azure-storage/SKILL.md +100 -0
- package/skills/azure-upgrade/SKILL.md +91 -0
- package/skills/azure-validate/SKILL.md +72 -0
- package/skills/brainstorming/SKILL.md +159 -0
- package/skills/brand-guidelines/SKILL.md +73 -0
- package/skills/brandkit/SKILL.md +798 -0
- package/skills/brutalist-skill/SKILL.md +92 -0
- package/skills/canvas-design/SKILL.md +130 -0
- package/skills/cavecrew/SKILL.md +82 -0
- package/skills/caveman-commit/SKILL.md +65 -0
- package/skills/caveman-help/SKILL.md +63 -0
- package/skills/caveman-review/SKILL.md +55 -0
- package/skills/caveman-stats/SKILL.md +10 -0
- package/skills/claude-api/SKILL.md +356 -0
- package/skills/composition-patterns/SKILL.md +89 -0
- package/skills/decision-mapping/SKILL.md +84 -0
- package/skills/deploy-to-vercel/SKILL.md +296 -0
- package/skills/design-an-interface/SKILL.md +94 -0
- package/skills/design-doc-mermaid/SKILL.md +498 -0
- package/skills/develop-userscripts/SKILL.md +84 -0
- package/skills/doc-coauthoring/SKILL.md +375 -0
- package/skills/documentation/SKILL.md +109 -0
- package/skills/docx/SKILL.md +590 -0
- package/skills/edit-article/SKILL.md +15 -0
- package/skills/entra-agent-id/SKILL.md +356 -0
- package/skills/entra-app-registration/SKILL.md +191 -0
- package/skills/faceless-explainer/SKILL.md +202 -0
- package/skills/fastify/SKILL.md +75 -0
- package/skills/general-video/SKILL.md +143 -0
- package/skills/git-guardrails-claude-code/SKILL.md +95 -0
- package/skills/github-actions-docs/SKILL.md +98 -0
- package/skills/gpt-tasteskill/SKILL.md +74 -0
- package/skills/grill-me/SKILL.md +7 -0
- package/skills/grilling/SKILL.md +10 -0
- package/skills/handoff/SKILL.md +16 -0
- package/skills/hyperframes/SKILL.md +152 -0
- package/skills/hyperframes-animation/SKILL.md +82 -0
- package/skills/hyperframes-cli/SKILL.md +109 -0
- package/skills/hyperframes-core/SKILL.md +78 -0
- package/skills/hyperframes-creative/SKILL.md +68 -0
- package/skills/hyperframes-media/SKILL.md +97 -0
- package/skills/image-to-code-skill/SKILL.md +1228 -0
- package/skills/imagegen-frontend-mobile/SKILL.md +1465 -0
- package/skills/imagegen-frontend-web/SKILL.md +987 -0
- package/skills/implement/SKILL.md +15 -0
- package/skills/init/SKILL.md +91 -0
- package/skills/internal-comms/SKILL.md +32 -0
- package/skills/lark-approval/SKILL.md +56 -0
- package/skills/lark-base/SKILL.md +157 -0
- package/skills/lark-doc/SKILL.md +81 -0
- package/skills/lark-shared/SKILL.md +168 -0
- package/skills/lark-workflow-meeting-summary/SKILL.md +122 -0
- package/skills/linting-neostandard-eslint9/SKILL.md +64 -0
- package/skills/loop-me/SKILL.md +32 -0
- package/skills/microsoft-foundry/SKILL.md +262 -0
- package/skills/migrate-to-shoehorn/SKILL.md +118 -0
- package/skills/minimalist-skill/SKILL.md +85 -0
- package/skills/motion-graphics/SKILL.md +170 -0
- package/skills/music-to-video/SKILL.md +197 -0
- package/skills/node/SKILL.md +94 -0
- package/skills/nodejs-core/SKILL.md +156 -0
- package/skills/oauth/SKILL.md +186 -0
- package/skills/obsidian-vault/SKILL.md +59 -0
- package/skills/octocat/SKILL.md +93 -0
- package/skills/openclaw-secure-linux-cloud/SKILL.md +157 -0
- package/skills/opensource-guide-coach/SKILL.md +218 -0
- package/skills/output-skill/SKILL.md +49 -0
- package/skills/pdf/SKILL.md +314 -0
- package/skills/pptx/SKILL.md +232 -0
- package/skills/pr-to-video/SKILL.md +235 -0
- package/skills/product-launch-video/SKILL.md +205 -0
- package/skills/python-appservice-deploy/SKILL.md +36 -0
- package/skills/qa/SKILL.md +130 -0
- package/skills/react-best-practices/SKILL.md +149 -0
- package/skills/react-native-skills/SKILL.md +121 -0
- package/skills/react-view-transitions/SKILL.md +320 -0
- package/skills/readme-i18n/SKILL.md +176 -0
- package/skills/redesign-skill/SKILL.md +178 -0
- package/skills/remotion/SKILL.md +364 -0
- package/skills/request-refactor-plan/SKILL.md +68 -0
- package/skills/resolving-merge-conflicts/SKILL.md +14 -0
- package/skills/running-claude-code-via-litellm-copilot/SKILL.md +263 -0
- package/skills/scaffold-exercises/SKILL.md +106 -0
- package/skills/secure-linux-web-hosting/SKILL.md +162 -0
- package/skills/setup-pre-commit/SKILL.md +91 -0
- package/skills/shadcn/SKILL.md +267 -0
- package/skills/simple/SKILL.md +52 -0
- package/skills/skill-creator/SKILL.md +485 -0
- package/skills/skill-optimizer/SKILL.md +47 -0
- package/skills/skills-cli/SKILL.md +281 -0
- package/skills/slack-gif-creator/SKILL.md +254 -0
- package/skills/snipgrapher/SKILL.md +58 -0
- package/skills/soft-skill/SKILL.md +98 -0
- package/skills/stitch-skill/SKILL.md +184 -0
- package/skills/supabase/SKILL.md +135 -0
- package/skills/supabase-postgres-best-practices/SKILL.md +64 -0
- package/skills/systematic-debugging/SKILL.md +296 -0
- package/skills/talking-head-recut/SKILL.md +1191 -0
- package/skills/taste-skill/SKILL.md +1206 -0
- package/skills/taste-skill-v1/SKILL.md +226 -0
- package/skills/tdd/SKILL.md +108 -0
- package/skills/teach/SKILL.md +140 -0
- package/skills/test-driven-development/SKILL.md +371 -0
- package/skills/theme-factory/SKILL.md +59 -0
- package/skills/to-prd/SKILL.md +75 -0
- package/skills/typescript-magician/SKILL.md +117 -0
- package/skills/tzst/SKILL.md +68 -0
- package/skills/ubiquitous-language/SKILL.md +93 -0
- package/skills/use-my-browser/SKILL.md +110 -0
- package/skills/using-superpowers/SKILL.md +121 -0
- package/skills/vercel-cli-with-tokens/SKILL.md +353 -0
- package/skills/vercel-optimize/SKILL.md +322 -0
- package/skills/viral-instagram-reels/SKILL.md +180 -0
- package/skills/viral-short-form/SKILL.md +147 -0
- package/skills/viral-short-form-ideas/SKILL.md +184 -0
- package/skills/viral-tiktok-content/SKILL.md +180 -0
- package/skills/web-artifacts-builder/SKILL.md +74 -0
- package/skills/web-design-guidelines/SKILL.md +39 -0
- package/skills/webapp-testing/SKILL.md +96 -0
- package/skills/website-to-video/SKILL.md +145 -0
- package/skills/writing-beats/SKILL.md +67 -0
- package/skills/writing-fragments/SKILL.md +79 -0
- package/skills/writing-great-skills/SKILL.md +82 -0
- package/skills/writing-guidelines/SKILL.md +39 -0
- package/skills/writing-plans/SKILL.md +174 -0
- package/skills/writing-shape/SKILL.md +79 -0
- package/skills/xdrop/SKILL.md +78 -0
- package/skills/xget/SKILL.md +87 -0
- package/skills/xlsx/SKILL.md +292 -0
- package/src/tools/browser_use.js +2 -1
- package/src/tools/skills_download.js +217 -0
- package/src/utils/tools.js +2 -2
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: azure-enterprise-infra-planner
|
|
3
|
+
description: "Architect and provision enterprise Azure infrastructure from workload descriptions. For cloud architects and platform engineers planning networking, identity, security, compliance, and multi-resource topologies with WAF alignment. Generates Bicep or Terraform directly (no azd). WHEN: 'plan Azure infrastructure', 'architect Azure landing zone', 'design hub-spoke network', 'plan multi-region DR topology', 'set up VNets firewalls and private endpoints', 'subscription-scope Bicep deployment', 'Azure Backup for VM workloads'. PREFER azure-prepare FOR app-centric workflows."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
author: Microsoft
|
|
7
|
+
version: "1.2.3"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Azure Enterprise Infra Planner
|
|
11
|
+
|
|
12
|
+
## When to Use This Skill
|
|
13
|
+
|
|
14
|
+
Activate this skill when user wants to:
|
|
15
|
+
- Plan enterprise Azure infrastructure from a workload or architecture description
|
|
16
|
+
- Architect a landing zone, hub-spoke network, or multi-region topology
|
|
17
|
+
- Design networking infrastructure: VNets, subnets, firewalls, private endpoints, VPN gateways
|
|
18
|
+
- Plan identity, RBAC, and compliance-driven infrastructure
|
|
19
|
+
- Generate Bicep or Terraform for subscription-scope or multi-resource-group deployments
|
|
20
|
+
- Plan disaster recovery, failover, or cross-region high-availability topologies
|
|
21
|
+
|
|
22
|
+
## Quick Reference
|
|
23
|
+
|
|
24
|
+
| Property | Details |
|
|
25
|
+
|---|---|
|
|
26
|
+
| MCP tools | `insights_get`, `get_azure_bestpractices_get`, `wellarchitectedframework_serviceguide_get`, `microsoft_docs_fetch`, `microsoft_docs_search`, `bicepschema_get` |
|
|
27
|
+
| CLI commands | `az deployment group create`, `az bicep build`, `az resource list`, `terraform init`, `terraform plan`, `terraform validate`, `terraform apply` |
|
|
28
|
+
| Output schema | [schema.md](references/schema.md) |
|
|
29
|
+
| Key references | [workflow.md](references/workflow.md), [waf-checklist.md](references/waf-checklist.md), [resources/](references/resources/README.md), [constraints/](references/constraints/README.md) |
|
|
30
|
+
|
|
31
|
+
## Workflow (Start Here)
|
|
32
|
+
|
|
33
|
+
Follow the step-by-step instructions in [workflow.md](references/workflow.md) to execute the 7 phases of infrastructure planning and provisioning.
|
|
34
|
+
|
|
35
|
+
## MCP Tools
|
|
36
|
+
|
|
37
|
+
| Tool | Purpose |
|
|
38
|
+
|------|---------|
|
|
39
|
+
| `insights_get` | Retrieve insights about the user's existing Azure environment to guide planning decisions |
|
|
40
|
+
| `get_azure_bestpractices_get` | Azure best practices for code generation, operations, and deployment |
|
|
41
|
+
| `wellarchitectedframework_serviceguide_get` | WAF service guide for a specific Azure service |
|
|
42
|
+
| `microsoft_docs_search` | Search Microsoft Learn for relevant documentation chunks |
|
|
43
|
+
| `microsoft_docs_fetch` | Fetch full content of a Microsoft Learn page by URL |
|
|
44
|
+
| `bicepschema_get` | Bicep schema definition for any Azure resource type (latest API version) |
|
|
45
|
+
|
|
46
|
+
## Error Handling
|
|
47
|
+
|
|
48
|
+
| Error | Cause | Fix |
|
|
49
|
+
|---|---|---|
|
|
50
|
+
| MCP tool error or not available | Tool call timeout, connection error, or tool doesn't exist | Retry once; fall back to reference files and notify user if unresolved |
|
|
51
|
+
| Plan approval missing | `meta.status` is not `approved` | Stop and prompt user for approval before IaC generation or deployment |
|
|
52
|
+
| IaC validation failure | `az bicep build` or `terraform validate` returns errors | Fix the generated code and re-validate; notify user if unresolved |
|
|
53
|
+
| Pairing constraint violation | Incompatible SKU or resource combination | Fix in plan before proceeding to IaC generation |
|
|
54
|
+
| Infra plan or IaC files not found | Files written to wrong location or not created | Verify files exist at `<project-root>/.azure/` and `<project-root>/infra/`; if missing, re-create the files by following [workflow.md](references/workflow.md) exactly |
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: azure-hosted-copilot-sdk
|
|
3
|
+
description: "Build, deploy, and modify GitHub Copilot SDK apps on Azure. MANDATORY when codebase contains @github/copilot-sdk or CopilotClient in package.json. PREFER OVER azure-prepare when copilot-sdk markers detected. WHEN: copilot SDK, @github/copilot-sdk, copilot-powered app, build copilot app, prepare copilot app, add feature to copilot app, modify copilot app, BYOM, bring your own model, CopilotClient, createSession, sendAndWait, azd init copilot. DO NOT USE FOR: deploying already-prepared copilot-sdk apps (use azure-deploy), general web apps without copilot SDK (use azure-prepare), Copilot Extensions, Foundry agents (use microsoft-foundry)."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
author: Microsoft
|
|
7
|
+
version: "1.1.3"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# GitHub Copilot SDK on Azure
|
|
11
|
+
|
|
12
|
+
## Codebase Detection — MANDATORY FIRST CHECK
|
|
13
|
+
|
|
14
|
+
> ⚠️ **CRITICAL: This check MUST run before ANY other skill (azure-prepare, azure-deploy, etc.) when an existing codebase is present.**
|
|
15
|
+
|
|
16
|
+
### Detection procedure (run IMMEDIATELY for any build/modify/add-feature/prepare prompt):
|
|
17
|
+
|
|
18
|
+
1. Read `package.json` in the workspace root (and any `*/package.json` one level deep)
|
|
19
|
+
2. Check if `@github/copilot-sdk` or `copilot-sdk` appears in `name`, `dependencies`, or `devDependencies`
|
|
20
|
+
3. If NOT found in package.json, scan `.ts` and `.js` files for `CopilotClient` or `createSession`
|
|
21
|
+
4. **If ANY marker is found → invoke this skill as the entry point. Do not route directly to azure-prepare or azure-deploy — this skill orchestrates them as sub-skills.**
|
|
22
|
+
|
|
23
|
+
| Marker | Where to check |
|
|
24
|
+
|--------|---------------|
|
|
25
|
+
| `@github/copilot-sdk` | `package.json` dependencies or devDependencies |
|
|
26
|
+
| `copilot-sdk` | `package.json` name or dependencies |
|
|
27
|
+
| `CopilotClient` | Source files (`.ts`, `.js`) |
|
|
28
|
+
| `createSession` + `sendAndWait` | Source files (`.ts`, `.js`) |
|
|
29
|
+
|
|
30
|
+
### Generic prompts that MUST trigger this skill when markers are detected:
|
|
31
|
+
|
|
32
|
+
| Prompt pattern (no "copilot" keyword) | Why this skill |
|
|
33
|
+
|---------------------------------------|---------------|
|
|
34
|
+
| "Build this app" / "Prepare this app for Azure" | Codebase contains `@github/copilot-sdk` - needs SDK-aware scaffolding |
|
|
35
|
+
| "Add a new feature to this app" | Requires SDK-aware implementation patterns |
|
|
36
|
+
| "Update this app" / "Modify this app" | Must preserve SDK integration patterns |
|
|
37
|
+
|
|
38
|
+
> ⚠️ **Warning:** ANY build, modify, add-feature, or prepare prompt targeting an existing codebase MUST route to this skill when codebase contains `@github/copilot-sdk`, even if the prompt does not mention "copilot". This skill then orchestrates azure-prepare and azure-deploy as sub-skills.
|
|
39
|
+
|
|
40
|
+
> ⚠️ **Yield to azure-deploy:** When the codebase already has `.azure/deployment-plan.md` and the user wants to **deploy** (not modify or add features), route to **azure-deploy** instead. This skill handles preparation; azure-deploy handles execution.
|
|
41
|
+
|
|
42
|
+
## Step 1: Route
|
|
43
|
+
|
|
44
|
+
| User wants | Action |
|
|
45
|
+
|------------|--------|
|
|
46
|
+
| Build new (empty project) | Step 2A (scaffold) |
|
|
47
|
+
| Add new SDK service to existing repo | Step 2B (scaffold alongside) |
|
|
48
|
+
| Deploy existing SDK app to Azure | Step 2C (add infra to existing SDK app) |
|
|
49
|
+
| Modify/add features to existing SDK app | Use codebase context + SDK references to implement |
|
|
50
|
+
| Add SDK to existing app code | [Integrate SDK](references/existing-project-integration.md) |
|
|
51
|
+
| Use Azure/own model | Step 3 (BYOM config) |
|
|
52
|
+
|
|
53
|
+
## Step 2A: Scaffold New (Greenfield)
|
|
54
|
+
|
|
55
|
+
`azd init --template azure-samples/copilot-sdk-service`
|
|
56
|
+
|
|
57
|
+
Template includes API (Express/TS) + Web UI (React/Vite) + infra (Bicep) + Dockerfiles + token scripts — do NOT recreate. See [SDK ref](references/copilot-sdk.md).
|
|
58
|
+
|
|
59
|
+
## Step 2B: Add SDK Service to Existing Repo
|
|
60
|
+
|
|
61
|
+
User has existing code and wants a new Copilot SDK service alongside it. Scaffold template to a temp dir, copy the API service + infra into the user's repo, adapt `azure.yaml` to include both existing and new services. See [deploy existing ref](references/deploy-existing.md).
|
|
62
|
+
|
|
63
|
+
## Step 2C: Deploy Existing SDK App
|
|
64
|
+
|
|
65
|
+
User already has a working Copilot SDK app and needs Azure infra. See [deploy existing ref](references/deploy-existing.md).
|
|
66
|
+
|
|
67
|
+
## Step 3: Model Configuration
|
|
68
|
+
|
|
69
|
+
Three model paths (layers on top of 2A/2B):
|
|
70
|
+
|
|
71
|
+
| Path | Config |
|
|
72
|
+
|------|--------|
|
|
73
|
+
| **GitHub default** | No `model` param — SDK picks default |
|
|
74
|
+
| **GitHub specific** | `model: "<name>"` — use `listModels()` to discover |
|
|
75
|
+
| **Azure BYOM** | `model` + `provider` with `bearerToken` via `DefaultAzureCredential` |
|
|
76
|
+
|
|
77
|
+
> ⚠️ **BYOM Auth — MANDATORY**: Azure BYOM configurations MUST use `DefaultAzureCredential` (local dev) or `ManagedIdentityCredential` (production) to obtain a `bearerToken`. The ONLY supported auth pattern is `bearerToken` in the provider config. See [auth-best-practices.md](references/auth-best-practices.md) for the credential pattern and [model config ref](references/azure-model-config.md) for the full BYOM code example.
|
|
78
|
+
|
|
79
|
+
See [model config ref](references/azure-model-config.md).
|
|
80
|
+
|
|
81
|
+
## Step 4: Deploy
|
|
82
|
+
|
|
83
|
+
Invoke **azure-prepare** (skip its Step 0 routing — scaffolding is done) → **azure-validate** → **azure-deploy** in order.
|
|
84
|
+
|
|
85
|
+
## Rules
|
|
86
|
+
|
|
87
|
+
- Read `AGENTS.md` in user's repo before changes
|
|
88
|
+
- Docker required (`docker info`)
|
|
89
|
+
- BYOM auth: ONLY `bearerToken` via `DefaultAzureCredential` or `ManagedIdentityCredential` — no other auth pattern is supported
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: azure-kubernetes
|
|
3
|
+
license: MIT
|
|
4
|
+
metadata:
|
|
5
|
+
author: Microsoft
|
|
6
|
+
version: "1.1.4"
|
|
7
|
+
description: "Plan, create, and configure production-ready Azure Kubernetes Service (AKS) clusters. Covers Day-0 checklist, SKU selection (Automatic vs Standard), networking options (private API server, Azure CNI Overlay, egress configuration), security, and operations (autoscaling, upgrade strategy, cost analysis). WHEN: create AKS environment, provision AKS, enable AKS observability, design AKS networking, choose AKS SKU, secure AKS, optimize AKS, AKS spot nodes, AKS cluster-autoscaler, rightsize AKS pod, pod rightsizing, over-provisioned AKS pod, pod resource requests and limits, Vertical Pod Autoscaler, VPA recommendations."
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Azure Kubernetes Service
|
|
11
|
+
|
|
12
|
+
> **AUTHORITATIVE GUIDANCE — MANDATORY COMPLIANCE**
|
|
13
|
+
>
|
|
14
|
+
> This skill produces a **recommended AKS cluster configuration** based on user requirements, distinguishing **Day-0 decisions** (networking, API server — hard to change later) from **Day-1 features** (can enable post-creation). See [CLI reference](./references/cli-reference.md) for commands.
|
|
15
|
+
|
|
16
|
+
## Quick Reference
|
|
17
|
+
| Property | Value |
|
|
18
|
+
|----------|-------|
|
|
19
|
+
| Best for | AKS cluster planning and Day-0 decisions |
|
|
20
|
+
| MCP Tools | `mcp_azure_mcp_aks` |
|
|
21
|
+
| CLI | `az aks create`, `az aks show`, `kubectl get`, `kubectl describe` |
|
|
22
|
+
| Related skills | azure-diagnostics (troubleshooting AKS), azure-validate (readiness checks), azure-kubernetes-automatic-readiness (migrate existing cluster to AKS Automatic) |
|
|
23
|
+
|
|
24
|
+
## When to Use This Skill
|
|
25
|
+
Activate this skill when user wants to:
|
|
26
|
+
- Create a new AKS cluster
|
|
27
|
+
- Plan AKS cluster configuration for production workloads
|
|
28
|
+
- Design AKS networking (API server access, pod IP model, egress)
|
|
29
|
+
- Set up AKS identity and secrets management
|
|
30
|
+
- Configure AKS governance (Azure Policy, Deployment Safeguards)
|
|
31
|
+
- Enable AKS observability (Container Insights, Managed Prometheus, Grafana)
|
|
32
|
+
- Define AKS upgrade and patching strategy
|
|
33
|
+
- Understand AKS Automatic vs Standard SKU differences
|
|
34
|
+
- Get a Day-0 checklist for AKS cluster setup and configuration
|
|
35
|
+
|
|
36
|
+
## Rules
|
|
37
|
+
1. Start with the user's requirements for provisioning compute, networking, security, and other settings.
|
|
38
|
+
2. Use the `azure` MCP server and select `mcp_azure_mcp_aks` first to discover the exact AKS-specific MCP tools surfaced by the client. Choose the smallest discovered AKS tool that fits the task, and fall back to Azure CLI (`az aks`) only when the needed functionality is not exposed through the AKS MCP surface.
|
|
39
|
+
3. Determine if AKS Automatic or Standard SKU is more appropriate based on the user's need for control vs convenience. Default to AKS Automatic unless specific customizations are required.
|
|
40
|
+
4. Document decisions and rationale for cluster configuration choices, especially for Day-0 decisions that are hard to change later (networking, API server access).
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## Required Inputs (Ask only what’s needed)
|
|
44
|
+
If the user is unsure, use safe defaults.
|
|
45
|
+
- AKS environment type: dev/test or production
|
|
46
|
+
- Region(s), availability zones, preferred node VM sizes
|
|
47
|
+
- Expected scale (node/cluster count, workload size)
|
|
48
|
+
- Networking requirements (API server access, pod IP model, ingress/egress control)
|
|
49
|
+
- Security and identity requirements, including image registry
|
|
50
|
+
- Upgrade and observability preferences
|
|
51
|
+
- Cost constraints
|
|
52
|
+
|
|
53
|
+
## Workflow
|
|
54
|
+
|
|
55
|
+
### 1. Cluster Type
|
|
56
|
+
- **AKS Automatic** (default): Best for most production workloads, provides a curated experience with pre-configured best practices for security, reliability, and performance. Use unless you have specific custom requirements for networking, autoscaling, or node pool configurations not supported by Node Auto-Provisioning (NAP).
|
|
57
|
+
- **AKS Standard**: Use if you need full control over environment configuration, which requires additional overhead to set up and manage.
|
|
58
|
+
|
|
59
|
+
### 2. Networking (Pod IP, Egress, Ingress, Dataplane)
|
|
60
|
+
|
|
61
|
+
**Pod IP Model** (Key Day-0 decision):
|
|
62
|
+
- **Azure CNI Overlay** (recommended): pod IPs from private overlay range, not VNet-routable, scales to large environments and good for most workloads
|
|
63
|
+
- **Azure CNI (VNet-routable)**: pod IPs directly from VNet (pod subnet or node subnet), use when pods must be directly addressable from VNet or on-prem
|
|
64
|
+
- Docs: https://learn.microsoft.com/azure/aks/azure-cni-overlay
|
|
65
|
+
|
|
66
|
+
**Dataplane & Network Policy**:
|
|
67
|
+
- **Azure CNI powered by Cilium** (recommended): eBPF-based for high-performance packet processing, network policies, and observability
|
|
68
|
+
|
|
69
|
+
**Egress**:
|
|
70
|
+
- **Static Egress Gateway** for stable, predictable outbound IPs
|
|
71
|
+
- For restricted egress: UDR + Azure Firewall or NVA
|
|
72
|
+
|
|
73
|
+
**Ingress**:
|
|
74
|
+
- **App Routing addon with Gateway API** — recommended default for HTTP/HTTPS workloads
|
|
75
|
+
- **Istio service mesh with Gateway API** - for advanced traffic management, mTLS, canary releases
|
|
76
|
+
- **Application Gateway for Containers** — for L7 load balancing with WAF integration
|
|
77
|
+
|
|
78
|
+
**DNS**:
|
|
79
|
+
- Enable **LocalDNS** on all node pools for reliable, performant DNS resolution
|
|
80
|
+
|
|
81
|
+
### 3. Security
|
|
82
|
+
- Use **Microsoft Entra ID** everywhere (control plane, Workload Identity for pods, node access). Avoid static credentials.
|
|
83
|
+
- Azure Key Vault via **Secrets Store CSI Driver** for secrets
|
|
84
|
+
- Enable **Azure Policy** + **Deployment Safeguards**
|
|
85
|
+
- Enable **Encryption at rest** for etcd/API server; **in-transit** for node-to-node
|
|
86
|
+
- Allow only signed, policy-approved images (Azure Policy + Ratify), prefer **Azure Container Registry**
|
|
87
|
+
- **Isolation**: Use namespaces, network policies, scoped logging
|
|
88
|
+
|
|
89
|
+
### 4. Observability
|
|
90
|
+
- Use Managed Prometheus and Container Insights with Grafana for AKS observability (logs + metrics).
|
|
91
|
+
- Enable Diagnostic Settings to collect control plane logs and audit logs in a Log Analytics workspace for security monitoring and troubleshooting.
|
|
92
|
+
- For other monitoring and troubleshooting tools, use features like the Agentic CLI for AKS, Application Insights, Resource Health Center, AppLens detectors, and Azure Advisors.
|
|
93
|
+
|
|
94
|
+
### 5. Upgrades & Patching
|
|
95
|
+
- Configure **Maintenance Windows** for controlled upgrade timing
|
|
96
|
+
- Enable **auto-upgrades** for control plane and node OS to stay up-to-date with security patches and Kubernetes versions
|
|
97
|
+
- Consider **LTS versions** for enterprise stability (2-year support) by upgrading your AKS environment to the Premium tier
|
|
98
|
+
- **Fleet upgrades**: Use **AKS Fleet Manager** for staged rollout across test to production environments
|
|
99
|
+
|
|
100
|
+
### 6. Performance
|
|
101
|
+
- Use **Ephemeral OS disks** (`--node-osdisk-type Ephemeral`) for faster node startup
|
|
102
|
+
- Select **Azure Linux** as node OS (smaller footprint, faster boot)
|
|
103
|
+
- Enable **KEDA** for event-driven autoscaling beyond HPA
|
|
104
|
+
|
|
105
|
+
### 7. Node Pools & Compute
|
|
106
|
+
- **Dedicated system node pool**: At least 2 nodes, tainted for system workloads only (`CriticalAddonsOnly`)
|
|
107
|
+
- Enable **Node Auto Provisioning (NAP)** on all pools for cost savings and responsive scaling
|
|
108
|
+
- Use **latest generation SKUs (v5/v6)** for host-level optimizations
|
|
109
|
+
- **Avoid B-series VMs** — burstable SKUs cause performance/reliability issues
|
|
110
|
+
- Use SKUs with **at least 4 vCPUs** for production workloads
|
|
111
|
+
- Set **topology spread constraints** to distribute pods across hosts/zones per SLO
|
|
112
|
+
|
|
113
|
+
### 8. Reliability
|
|
114
|
+
- Deploy across **3 Availability Zones** (`--zones 1 2 3`)
|
|
115
|
+
- Use **Standard tier** for zone-redundant control plane + 99.95% SLA for API server availability
|
|
116
|
+
- Enable **Microsoft Defender for Containers** for runtime protection
|
|
117
|
+
- Configure **PodDisruptionBudgets** for all production workloads
|
|
118
|
+
- Use **topology spread constraints** to ensure pod distribution across failure domains
|
|
119
|
+
|
|
120
|
+
### 9. Cost Controls
|
|
121
|
+
- Use **Spot node pools** for batch/interruptible workloads (up to 90% savings)
|
|
122
|
+
- **Stop/Start** dev/test clusters: `az aks stop/start`
|
|
123
|
+
- Consider **Reserved Instances** or **Savings Plans** for steady-state workloads
|
|
124
|
+
|
|
125
|
+
**Deep-dive scenarios** — load only the relevant reference file:
|
|
126
|
+
|
|
127
|
+
| Scenario | Trigger Keywords | Reference |
|
|
128
|
+
|----------|-----------------|-----------|
|
|
129
|
+
| Pod Rightsizing | over-provisioned pods, CPU requests, memory requests, rightsize workloads | [azure-aks-rightsizing.md](./references/azure-aks-rightsizing.md) |
|
|
130
|
+
| VPA Setup | vertical pod autoscaler, VPA recommendations, VPA enable | [azure-aks-vpa.md](./references/azure-aks-vpa.md) |
|
|
131
|
+
| Cluster Autoscaler | idle nodes, CAS off, enable autoscaler, scale-down profile, node utilization | [azure-aks-autoscaler.md](./references/azure-aks-autoscaler.md) |
|
|
132
|
+
| Spot Node Pools | Spot VMs, Spot nodes, batch workloads, cheaper nodes | [azure-aks-spot.md](./references/azure-aks-spot.md) |
|
|
133
|
+
|
|
134
|
+
> **Disambiguation:** If a prompt matches multiple rows (e.g., "cheaper nodes" could suggest both Spot and autoscaler), prefer the most specific match. If ambiguous, ask the user to clarify their intent before loading a reference file.
|
|
135
|
+
|
|
136
|
+
## Guardrails / Safety
|
|
137
|
+
- Do not request or output secrets (tokens, keys).
|
|
138
|
+
- Do not ask the user to paste subscription IDs. Discover subscription and resource scope via MCP tools (e.g., list subscriptions, list resource groups) or `az account show` / `az account list` so the agent can resolve context without exposing identifiers.
|
|
139
|
+
- If requirements are ambiguous for day-0 critical decisions, ask the user clarifying questions. For day-1 enabled features, propose 2–3 safe options with tradeoffs and choose a conservative default.
|
|
140
|
+
- Do not promise zero downtime; advise workload safeguards (PDBs, probes, replicas) and staged upgrades along with best practices for reliability and performance.
|
|
141
|
+
|
|
142
|
+
## MCP Tools
|
|
143
|
+
| Tool | Purpose | Key Parameters |
|
|
144
|
+
|------|---------|----------------|
|
|
145
|
+
| `mcp_azure_mcp_aks` | AKS MCP entry point used to discover the exact AKS-specific tools exposed by the client | Discover the callable AKS tool first, then use that tool's parameters |
|
|
146
|
+
|
|
147
|
+
## Error Handling
|
|
148
|
+
| Error / Symptom | Likely Cause | Remediation |
|
|
149
|
+
|-----------------|--------------|-------------|
|
|
150
|
+
| MCP tool call fails or times out | Invalid credentials, subscription, or AKS context | Verify `az login`, confirm the active subscription context with `az account show`, and check the target resource group without echoing subscription identifiers back to the user |
|
|
151
|
+
| Quota exceeded | Regional vCPU or resource limits | Request quota increase or select different region/VM SKU |
|
|
152
|
+
| Networking conflict (IP exhaustion) | Pod subnet too small for overlay/CNI | Re-plan IP ranges; may require cluster recreation (Day-0) |
|
|
153
|
+
| Workload Identity not working | Missing OIDC issuer or federated credential | Enable `--enable-oidc-issuer --enable-workload-identity`, configure federated identity |
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: azure-kusto
|
|
3
|
+
description: "Query and analyze data in Azure Data Explorer (Kusto/ADX) using KQL for log analytics, telemetry, and time series analysis. WHEN: KQL queries, Kusto database queries, Azure Data Explorer, ADX clusters, log analytics, time series data, IoT telemetry, anomaly detection."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
author: Microsoft
|
|
7
|
+
version: "1.1.1"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Azure Data Explorer (Kusto) Query & Analytics
|
|
11
|
+
|
|
12
|
+
Execute KQL queries and manage Azure Data Explorer resources for fast, scalable big data analytics on log, telemetry, and time series data.
|
|
13
|
+
|
|
14
|
+
## Skill Activation Triggers
|
|
15
|
+
|
|
16
|
+
**Use this skill immediately when the user asks to:**
|
|
17
|
+
- "Query my Kusto database for [data pattern]"
|
|
18
|
+
- "Show me events in the last hour from Azure Data Explorer"
|
|
19
|
+
- "Analyze logs in my ADX cluster"
|
|
20
|
+
- "Run a KQL query on [database]"
|
|
21
|
+
- "What tables are in my Kusto database?"
|
|
22
|
+
- "Show me the schema for [table]"
|
|
23
|
+
- "List my Azure Data Explorer clusters"
|
|
24
|
+
- "Aggregate telemetry data by [dimension]"
|
|
25
|
+
- "Create a time series chart from my logs"
|
|
26
|
+
|
|
27
|
+
**Key Indicators:**
|
|
28
|
+
- Mentions "Kusto", "Azure Data Explorer", "ADX", or "KQL"
|
|
29
|
+
- Log analytics or telemetry analysis requests
|
|
30
|
+
- Time series data exploration
|
|
31
|
+
- IoT data analysis queries
|
|
32
|
+
- SIEM or security analytics tasks
|
|
33
|
+
- Requests for data aggregation on large datasets
|
|
34
|
+
- Performance monitoring or APM queries
|
|
35
|
+
|
|
36
|
+
## Overview
|
|
37
|
+
|
|
38
|
+
This skill enables querying and managing Azure Data Explorer (Kusto), a fast and highly scalable data exploration service optimized for log and telemetry data. Azure Data Explorer provides sub-second query performance on billions of records using the Kusto Query Language (KQL).
|
|
39
|
+
|
|
40
|
+
Key capabilities:
|
|
41
|
+
- **Query Execution**: Run KQL queries against massive datasets
|
|
42
|
+
- **Schema Exploration**: Discover tables, columns, and data types
|
|
43
|
+
- **Resource Management**: List clusters and databases
|
|
44
|
+
- **Analytics**: Aggregations, time series, anomaly detection, machine learning
|
|
45
|
+
|
|
46
|
+
## Core Workflow
|
|
47
|
+
|
|
48
|
+
1. **Discover Resources**: List available clusters and databases in subscription
|
|
49
|
+
2. **Explore Schema**: Retrieve table structures to understand data model
|
|
50
|
+
3. **Query Data**: Execute KQL queries for analysis, filtering, aggregation
|
|
51
|
+
4. **Analyze Results**: Process query output for insights and reporting
|
|
52
|
+
|
|
53
|
+
## Query Patterns
|
|
54
|
+
|
|
55
|
+
### Pattern 1: Basic Data Retrieval
|
|
56
|
+
Fetch recent records from a table with simple filtering.
|
|
57
|
+
|
|
58
|
+
**Example KQL**:
|
|
59
|
+
```kql
|
|
60
|
+
Events
|
|
61
|
+
| where Timestamp > ago(1h)
|
|
62
|
+
| take 100
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**Use for**: Quick data inspection, recent event retrieval
|
|
66
|
+
|
|
67
|
+
### Pattern 2: Aggregation Analysis
|
|
68
|
+
Summarize data by dimensions for insights and reporting.
|
|
69
|
+
|
|
70
|
+
**Example KQL**:
|
|
71
|
+
```kql
|
|
72
|
+
Events
|
|
73
|
+
| summarize count() by EventType, bin(Timestamp, 1h)
|
|
74
|
+
| order by count_ desc
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
**Use for**: Event counting, distribution analysis, top-N queries
|
|
78
|
+
|
|
79
|
+
### Pattern 3: Time Series Analytics
|
|
80
|
+
Analyze data over time windows for trends and patterns.
|
|
81
|
+
|
|
82
|
+
**Example KQL**:
|
|
83
|
+
```kql
|
|
84
|
+
Telemetry
|
|
85
|
+
| where Timestamp > ago(24h)
|
|
86
|
+
| summarize avg(ResponseTime), percentiles(ResponseTime, 50, 95, 99) by bin(Timestamp, 5m)
|
|
87
|
+
| render timechart
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**Use for**: Performance monitoring, trend analysis, anomaly detection
|
|
91
|
+
|
|
92
|
+
### Pattern 4: Join and Correlation
|
|
93
|
+
Combine multiple tables for cross-dataset analysis.
|
|
94
|
+
|
|
95
|
+
**Example KQL**:
|
|
96
|
+
```kql
|
|
97
|
+
Events
|
|
98
|
+
| where EventType == "Error"
|
|
99
|
+
| join kind=inner (
|
|
100
|
+
Logs
|
|
101
|
+
| where Severity == "Critical"
|
|
102
|
+
) on CorrelationId
|
|
103
|
+
| project Timestamp, EventType, LogMessage, Severity
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
**Use for**: Root cause analysis, correlated event tracking
|
|
107
|
+
|
|
108
|
+
### Pattern 5: Schema Discovery
|
|
109
|
+
Explore table structure before querying.
|
|
110
|
+
|
|
111
|
+
**Tools**: `kusto_table_schema_get`
|
|
112
|
+
|
|
113
|
+
**Use for**: Understanding data model, query planning
|
|
114
|
+
|
|
115
|
+
## Key Data Fields
|
|
116
|
+
|
|
117
|
+
When executing queries, common field patterns:
|
|
118
|
+
- **Timestamp**: Time of event (datetime) - use `ago()`, `between()`, `bin()` for time filtering
|
|
119
|
+
- **EventType/Category**: Classification field for grouping
|
|
120
|
+
- **CorrelationId/SessionId**: For tracing related events
|
|
121
|
+
- **Severity/Level**: For filtering by importance
|
|
122
|
+
- **Dimensions**: Custom properties for grouping and filtering
|
|
123
|
+
|
|
124
|
+
## Result Format
|
|
125
|
+
|
|
126
|
+
Query results include:
|
|
127
|
+
- **Columns**: Field names and data types
|
|
128
|
+
- **Rows**: Data records matching query
|
|
129
|
+
- **Statistics**: Row count, execution time, resource utilization
|
|
130
|
+
- **Visualization**: Chart rendering hints (timechart, barchart, etc.)
|
|
131
|
+
|
|
132
|
+
## KQL Best Practices
|
|
133
|
+
|
|
134
|
+
**🟢 Performance Optimized:**
|
|
135
|
+
- Filter early: Use `where` before joins and aggregations
|
|
136
|
+
- Limit result size: Use `take` or `limit` to reduce data transfer
|
|
137
|
+
- Time filters: Always filter by time range for time series data
|
|
138
|
+
- Indexed columns: Filter on indexed columns first
|
|
139
|
+
|
|
140
|
+
**🔵 Query Patterns:**
|
|
141
|
+
- Use `summarize` for aggregations instead of `count()` alone
|
|
142
|
+
- Use `bin()` for time bucketing in time series
|
|
143
|
+
- Use `project` to select only needed columns
|
|
144
|
+
- Use `extend` to add calculated fields
|
|
145
|
+
|
|
146
|
+
**🟡 Common Functions:**
|
|
147
|
+
- `ago(timespan)`: Relative time (ago(1h), ago(7d))
|
|
148
|
+
- `between(start .. end)`: Range filtering
|
|
149
|
+
- `startswith()`, `contains()`, `matches regex`: String filtering
|
|
150
|
+
- `parse`, `extract`: Extract values from strings
|
|
151
|
+
- `percentiles()`, `avg()`, `sum()`, `max()`, `min()`: Aggregations
|
|
152
|
+
|
|
153
|
+
## Best Practices
|
|
154
|
+
|
|
155
|
+
- Always include time range filters to optimize query performance
|
|
156
|
+
- Use `take` or `limit` for exploratory queries to avoid large result sets
|
|
157
|
+
- Leverage `summarize` for aggregations instead of client-side processing
|
|
158
|
+
- Store frequently-used queries as functions in the database
|
|
159
|
+
- Use materialized views for repeated aggregations
|
|
160
|
+
- Monitor query performance and resource consumption
|
|
161
|
+
- Apply data retention policies to manage storage costs
|
|
162
|
+
- Use streaming ingestion for real-time analytics (< 1 second latency)
|
|
163
|
+
- Integrate with Azure Monitor for operational insights
|
|
164
|
+
|
|
165
|
+
## MCP Tools Used
|
|
166
|
+
|
|
167
|
+
| Tool | Purpose |
|
|
168
|
+
|------|---------|
|
|
169
|
+
| `kusto_cluster_list` | List all Azure Data Explorer clusters in a subscription |
|
|
170
|
+
| `kusto_database_list` | List all databases in a specific Kusto cluster |
|
|
171
|
+
| `kusto_query` | Execute KQL queries against a Kusto database |
|
|
172
|
+
| `kusto_table_schema_get` | Retrieve schema information for a specific table |
|
|
173
|
+
|
|
174
|
+
**Required Parameters**:
|
|
175
|
+
- `subscription`: Azure subscription ID or display name
|
|
176
|
+
- `cluster`: Kusto cluster name (e.g., "mycluster")
|
|
177
|
+
- `database`: Database name
|
|
178
|
+
- `query`: KQL query string (for query operations)
|
|
179
|
+
- `table`: Table name (for schema operations)
|
|
180
|
+
|
|
181
|
+
**Optional Parameters**:
|
|
182
|
+
- `resource-group`: Resource group name (for listing operations)
|
|
183
|
+
- `tenant`: Azure AD tenant ID
|
|
184
|
+
|
|
185
|
+
## Fallback Strategy: Azure CLI Commands
|
|
186
|
+
|
|
187
|
+
If Azure MCP Kusto tools fail, timeout, or are unavailable, use Azure CLI commands as fallback.
|
|
188
|
+
|
|
189
|
+
### CLI Command Reference
|
|
190
|
+
|
|
191
|
+
| Operation | Azure CLI Command |
|
|
192
|
+
|-----------|-------------------|
|
|
193
|
+
| List clusters | `az kusto cluster list --resource-group <rg-name>` |
|
|
194
|
+
| List databases | `az kusto database list --cluster-name <cluster> --resource-group <rg-name>` |
|
|
195
|
+
| Show cluster | `az kusto cluster show --name <cluster> --resource-group <rg-name>` |
|
|
196
|
+
| Show database | `az kusto database show --cluster-name <cluster> --database-name <db> --resource-group <rg-name>` |
|
|
197
|
+
|
|
198
|
+
### KQL Query via Azure CLI
|
|
199
|
+
|
|
200
|
+
For queries, use the Kusto REST API or direct cluster URL:
|
|
201
|
+
```bash
|
|
202
|
+
az rest --method post \
|
|
203
|
+
--url "https://<cluster>.<region>.kusto.windows.net/v1/rest/query" \
|
|
204
|
+
--body "{ \"db\": \"<database>\", \"csl\": \"<kql-query>\" }"
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### When to Fallback
|
|
208
|
+
|
|
209
|
+
Switch to Azure CLI when:
|
|
210
|
+
- MCP tool returns timeout error (queries > 60 seconds)
|
|
211
|
+
- MCP tool returns "service unavailable" or connection errors
|
|
212
|
+
- Authentication failures with MCP tools
|
|
213
|
+
- Empty response when database is known to have data
|
|
214
|
+
|
|
215
|
+
## Common Issues
|
|
216
|
+
|
|
217
|
+
- **Access Denied**: Verify database permissions (Viewer role minimum for queries)
|
|
218
|
+
- **Query Timeout**: Optimize query with time filters, reduce result set, or increase timeout
|
|
219
|
+
- **Syntax Error**: Validate KQL syntax - common issues: missing pipes, incorrect operators
|
|
220
|
+
- **Empty Results**: Check time range filters (may be too restrictive), verify table name
|
|
221
|
+
- **Cluster Not Found**: Check cluster name format (exclude ".kusto.windows.net" suffix)
|
|
222
|
+
- **High CPU Usage**: Query too broad - add filters, reduce time range, limit aggregations
|
|
223
|
+
- **Ingestion Lag**: Streaming data may have 1-30 second delay depending on ingestion method
|
|
224
|
+
|
|
225
|
+
## Use Cases
|
|
226
|
+
|
|
227
|
+
- **Log Analytics**: Application logs, system logs, audit logs
|
|
228
|
+
- **IoT Analytics**: Sensor data, device telemetry, real-time monitoring
|
|
229
|
+
- **Security Analytics**: SIEM data, threat detection, security event correlation
|
|
230
|
+
- **APM**: Application performance metrics, user behavior, error tracking
|
|
231
|
+
- **Business Intelligence**: Clickstream analysis, user analytics, operational KPIs
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: azure-messaging
|
|
3
|
+
description: "Troubleshoot and resolve issues with Azure Messaging SDKs for Event Hubs and Service Bus. Covers connection failures, authentication errors, message processing issues, and SDK configuration problems. WHEN: event hub SDK error, service bus SDK issue, messaging connection failure, AMQP error, event processor host issue, message lock lost, message lock expired, lock renewal, lock renewal batch, send timeout, receiver disconnected, SDK troubleshooting, azure messaging SDK, event hub consumer, service bus queue issue, topic subscription error, enable logging event hub, service bus logging, eventhub python, servicebus java, eventhub javascript, servicebus dotnet, event hub checkpoint, event hub not receiving messages, service bus dead letter, batch processing lock, session lock expired, idle timeout, connection inactive, link detach, slow reconnect, session error, duplicate events, offset reset, receive batch."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
author: Microsoft
|
|
7
|
+
version: "1.1.2"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Azure Messaging SDK Troubleshooting
|
|
11
|
+
|
|
12
|
+
## Quick Reference
|
|
13
|
+
|
|
14
|
+
| Property | Value |
|
|
15
|
+
|----------|-------|
|
|
16
|
+
| **Services** | Azure Event Hubs, Azure Service Bus |
|
|
17
|
+
| **MCP Tools** | `mcp_azure_mcp_eventhubs`, `mcp_azure_mcp_servicebus` |
|
|
18
|
+
| **Best For** | Diagnosing SDK connection, auth, and message processing issues |
|
|
19
|
+
|
|
20
|
+
## When to Use This Skill
|
|
21
|
+
|
|
22
|
+
- SDK connection failures, auth errors, or AMQP link errors
|
|
23
|
+
- Idle timeout, connection inactivity, or slow reconnection after disconnect
|
|
24
|
+
- AMQP link detach or detach-forced errors
|
|
25
|
+
- Message lock lost, message lock expired, lock renewal failures, or batch lock timeouts
|
|
26
|
+
- Session lock lost, session lock expired, or session receiver errors
|
|
27
|
+
- Event processor or message handler stops processing
|
|
28
|
+
- Duplicate events or checkpoint offset resets
|
|
29
|
+
- SDK configuration questions (retry, prefetch, batch size, receive batch behavior)
|
|
30
|
+
|
|
31
|
+
## MCP Tools
|
|
32
|
+
|
|
33
|
+
| Tool | Command | Use |
|
|
34
|
+
|------|---------|-----|
|
|
35
|
+
| `mcp_azure_mcp_eventhubs` | Namespace/hub ops | List namespaces, hubs, consumer groups |
|
|
36
|
+
| `mcp_azure_mcp_servicebus` | Queue/topic ops | List namespaces, queues, topics, subscriptions |
|
|
37
|
+
| `mcp_azure_mcp_monitor` | `logs_query` | Query diagnostic logs with KQL |
|
|
38
|
+
| `mcp_azure_mcp_resourcehealth` | `get` | Check service health status |
|
|
39
|
+
| `mcp_azure_mcp_documentation` | Doc search | Search Microsoft Learn for troubleshooting docs |
|
|
40
|
+
|
|
41
|
+
## Diagnosis Workflow
|
|
42
|
+
|
|
43
|
+
1. **Identify the SDK and version** — Check the prompt for SDK and version clues; if not stated, proceed with diagnosis and ask later if needed
|
|
44
|
+
2. **Check resource health** — Use `mcp_azure_mcp_resourcehealth` to verify the namespace is healthy
|
|
45
|
+
3. **Review the error message** — Match against language-specific troubleshooting guide
|
|
46
|
+
4. **Look up documentation** — Use `mcp_azure_mcp_documentation` to search Microsoft Learn for the error or topic
|
|
47
|
+
5. **Check configuration** — Verify connection string, entity name, consumer group
|
|
48
|
+
6. **Recommend fix** — Apply remediation, citing documentation found
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
## Troubleshooting Guides
|
|
52
|
+
|
|
53
|
+
Connectivity, SDK, and auth troubleshooting guides are located in the azure-diagnostics skill under `troubleshooting/messaging/`.
|
|
54
|
+
|
|
55
|
+
## References
|
|
56
|
+
|
|
57
|
+
- Use `mcp_azure_mcp_documentation` to search Microsoft Learn for latest guidance.
|