natureco-cli 5.18.3 → 5.20.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.
Files changed (346) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/package.json +1 -1
  3. package/skills/a-b-testing/SKILL.md +34 -0
  4. package/skills/accessibility-audit/SKILL.md +34 -0
  5. package/skills/agent-memory/SKILL.md +34 -0
  6. package/skills/agent-orchestration/SKILL.md +34 -0
  7. package/skills/airunway-aks-setup/SKILL.md +73 -0
  8. package/skills/algorithmic-art/SKILL.md +405 -0
  9. package/skills/analytics-setup/SKILL.md +34 -0
  10. package/skills/api-design/SKILL.md +34 -0
  11. package/skills/api-versioning/SKILL.md +34 -0
  12. package/skills/appinsights-instrumentation/SKILL.md +76 -0
  13. package/skills/audio-transcription/SKILL.md +34 -0
  14. package/skills/authentication-patterns/SKILL.md +34 -0
  15. package/skills/authorization-rbac/SKILL.md +34 -0
  16. package/skills/azure-ai/SKILL.md +71 -0
  17. package/skills/azure-aigateway/SKILL.md +129 -0
  18. package/skills/azure-cloud-migrate/SKILL.md +52 -0
  19. package/skills/azure-compliance/SKILL.md +108 -0
  20. package/skills/azure-compute/SKILL.md +46 -0
  21. package/skills/azure-cost/SKILL.md +45 -0
  22. package/skills/azure-deploy/SKILL.md +97 -0
  23. package/skills/azure-diagnostics/SKILL.md +151 -0
  24. package/skills/azure-enterprise-infra-planner/SKILL.md +54 -0
  25. package/skills/azure-hosted-copilot-sdk/SKILL.md +89 -0
  26. package/skills/azure-kubernetes/SKILL.md +153 -0
  27. package/skills/azure-kusto/SKILL.md +231 -0
  28. package/skills/azure-messaging/SKILL.md +57 -0
  29. package/skills/azure-prepare/SKILL.md +165 -0
  30. package/skills/azure-quotas/SKILL.md +276 -0
  31. package/skills/azure-rbac/SKILL.md +17 -0
  32. package/skills/azure-reliability/SKILL.md +387 -0
  33. package/skills/azure-resource-lookup/SKILL.md +108 -0
  34. package/skills/azure-resource-visualizer/SKILL.md +183 -0
  35. package/skills/azure-storage/SKILL.md +100 -0
  36. package/skills/azure-upgrade/SKILL.md +91 -0
  37. package/skills/azure-validate/SKILL.md +72 -0
  38. package/skills/backup-strategy/SKILL.md +34 -0
  39. package/skills/bash-scripting/SKILL.md +34 -0
  40. package/skills/batch-api-calls/SKILL.md +34 -0
  41. package/skills/batch-processing/SKILL.md +34 -0
  42. package/skills/brainstorming/SKILL.md +159 -0
  43. package/skills/brand-guidelines/SKILL.md +73 -0
  44. package/skills/brandkit/SKILL.md +798 -0
  45. package/skills/brutalist-skill/SKILL.md +92 -0
  46. package/skills/bulk-file-operations/SKILL.md +34 -0
  47. package/skills/cache-responses/SKILL.md +34 -0
  48. package/skills/caching-strategy/SKILL.md +34 -0
  49. package/skills/calendar-optimization/SKILL.md +34 -0
  50. package/skills/canvas-design/SKILL.md +130 -0
  51. package/skills/cavecrew/SKILL.md +82 -0
  52. package/skills/caveman-commit/SKILL.md +65 -0
  53. package/skills/caveman-help/SKILL.md +63 -0
  54. package/skills/caveman-review/SKILL.md +55 -0
  55. package/skills/caveman-stats/SKILL.md +10 -0
  56. package/skills/changelog-generation/SKILL.md +34 -0
  57. package/skills/chat-bot-design/SKILL.md +34 -0
  58. package/skills/chunking-strategy/SKILL.md +34 -0
  59. package/skills/ci-cd-pipeline/SKILL.md +34 -0
  60. package/skills/classification-pipeline/SKILL.md +34 -0
  61. package/skills/claude-api/SKILL.md +356 -0
  62. package/skills/clipboard-master/SKILL.md +34 -0
  63. package/skills/code-explanation/SKILL.md +34 -0
  64. package/skills/code-generation/SKILL.md +34 -0
  65. package/skills/code-migration/SKILL.md +34 -0
  66. package/skills/code-review-checklist/SKILL.md +34 -0
  67. package/skills/composition-patterns/SKILL.md +89 -0
  68. package/skills/contact-management/SKILL.md +34 -0
  69. package/skills/content-generation/SKILL.md +34 -0
  70. package/skills/context-pruning/SKILL.md +34 -0
  71. package/skills/context-window-management/SKILL.md +34 -0
  72. package/skills/continuous-improvement/SKILL.md +34 -0
  73. package/skills/cron-scheduling/SKILL.md +34 -0
  74. package/skills/cross-platform-compat/SKILL.md +34 -0
  75. package/skills/csv-processing/SKILL.md +34 -0
  76. package/skills/daily-journal/SKILL.md +34 -0
  77. package/skills/data-analysis/SKILL.md +34 -0
  78. package/skills/data-backup/SKILL.md +34 -0
  79. package/skills/data-cleaning/SKILL.md +34 -0
  80. package/skills/data-extraction/SKILL.md +34 -0
  81. package/skills/data-validation/SKILL.md +34 -0
  82. package/skills/database-migrations/SKILL.md +34 -0
  83. package/skills/database-schema-design/SKILL.md +34 -0
  84. package/skills/decision-mapping/SKILL.md +84 -0
  85. package/skills/decision-matrix/SKILL.md +34 -0
  86. package/skills/dependency-management/SKILL.md +34 -0
  87. package/skills/deploy-to-vercel/SKILL.md +296 -0
  88. package/skills/design-an-interface/SKILL.md +94 -0
  89. package/skills/design-doc-mermaid/SKILL.md +498 -0
  90. package/skills/dev-environment-setup/SKILL.md +34 -0
  91. package/skills/develop-userscripts/SKILL.md +84 -0
  92. package/skills/distraction-blocker/SKILL.md +34 -0
  93. package/skills/doc-coauthoring/SKILL.md +375 -0
  94. package/skills/docker-optimization/SKILL.md +34 -0
  95. package/skills/document-template/SKILL.md +34 -0
  96. package/skills/documentation/SKILL.md +109 -0
  97. package/skills/documentation-gen/SKILL.md +34 -0
  98. package/skills/docx/SKILL.md +590 -0
  99. package/skills/edit-article/SKILL.md +15 -0
  100. package/skills/efficient-formatting/SKILL.md +34 -0
  101. package/skills/email-management/SKILL.md +34 -0
  102. package/skills/email-service/SKILL.md +34 -0
  103. package/skills/embedding-generation/SKILL.md +34 -0
  104. package/skills/entity-extraction/SKILL.md +34 -0
  105. package/skills/entra-agent-id/SKILL.md +356 -0
  106. package/skills/entra-app-registration/SKILL.md +191 -0
  107. package/skills/environment-config/SKILL.md +34 -0
  108. package/skills/error-handling/SKILL.md +34 -0
  109. package/skills/estimation-techniques/SKILL.md +34 -0
  110. package/skills/event-driven-architecture/SKILL.md +34 -0
  111. package/skills/excel-automation/SKILL.md +34 -0
  112. package/skills/execution-monitoring/SKILL.md +34 -0
  113. package/skills/expense-tracking/SKILL.md +34 -0
  114. package/skills/faceless-explainer/SKILL.md +202 -0
  115. package/skills/fastify/SKILL.md +75 -0
  116. package/skills/feature-engineering/SKILL.md +34 -0
  117. package/skills/feature-flags/SKILL.md +34 -0
  118. package/skills/file-conversion/SKILL.md +34 -0
  119. package/skills/file-upload-handling/SKILL.md +34 -0
  120. package/skills/fine-tuning-prep/SKILL.md +34 -0
  121. package/skills/focus-mode/SKILL.md +34 -0
  122. package/skills/form-validation/SKILL.md +34 -0
  123. package/skills/function-calling/SKILL.md +34 -0
  124. package/skills/general-video/SKILL.md +143 -0
  125. package/skills/git-guardrails-claude-code/SKILL.md +95 -0
  126. package/skills/git-workflow/SKILL.md +34 -0
  127. package/skills/github-actions-docs/SKILL.md +98 -0
  128. package/skills/goal-setting/SKILL.md +34 -0
  129. package/skills/gpt-tasteskill/SKILL.md +74 -0
  130. package/skills/graphql-design/SKILL.md +34 -0
  131. package/skills/grill-me/SKILL.md +7 -0
  132. package/skills/grilling/SKILL.md +10 -0
  133. package/skills/habit-tracker/SKILL.md +34 -0
  134. package/skills/hallucination-detection/SKILL.md +34 -0
  135. package/skills/handoff/SKILL.md +16 -0
  136. package/skills/hyperframes/SKILL.md +152 -0
  137. package/skills/hyperframes-animation/SKILL.md +82 -0
  138. package/skills/hyperframes-cli/SKILL.md +109 -0
  139. package/skills/hyperframes-core/SKILL.md +78 -0
  140. package/skills/hyperframes-creative/SKILL.md +68 -0
  141. package/skills/hyperframes-media/SKILL.md +97 -0
  142. package/skills/image-processing/SKILL.md +34 -0
  143. package/skills/image-to-code-skill/SKILL.md +1228 -0
  144. package/skills/imagegen-frontend-mobile/SKILL.md +1465 -0
  145. package/skills/imagegen-frontend-web/SKILL.md +987 -0
  146. package/skills/implement/SKILL.md +15 -0
  147. package/skills/init/SKILL.md +91 -0
  148. package/skills/internal-comms/SKILL.md +32 -0
  149. package/skills/json-transformation/SKILL.md +34 -0
  150. package/skills/keyboard-shortcuts/SKILL.md +34 -0
  151. package/skills/knowledge-base/SKILL.md +34 -0
  152. package/skills/knowledge-graph/SKILL.md +34 -0
  153. package/skills/kubernetes-deployment/SKILL.md +34 -0
  154. package/skills/language-translation/SKILL.md +34 -0
  155. package/skills/lark-approval/SKILL.md +56 -0
  156. package/skills/lark-base/SKILL.md +157 -0
  157. package/skills/lark-doc/SKILL.md +81 -0
  158. package/skills/lark-shared/SKILL.md +168 -0
  159. package/skills/lark-workflow-meeting-summary/SKILL.md +122 -0
  160. package/skills/linting-neostandard-eslint9/SKILL.md +64 -0
  161. package/skills/llm-chaining/SKILL.md +34 -0
  162. package/skills/localization-i18n/SKILL.md +34 -0
  163. package/skills/logging-best-practices/SKILL.md +34 -0
  164. package/skills/loop-me/SKILL.md +32 -0
  165. package/skills/machine-learning-pipeline/SKILL.md +34 -0
  166. package/skills/meeting-notes/SKILL.md +34 -0
  167. package/skills/meeting-scheduler/SKILL.md +34 -0
  168. package/skills/message-queues/SKILL.md +34 -0
  169. package/skills/message-summarization/SKILL.md +34 -0
  170. package/skills/microservices-architecture/SKILL.md +34 -0
  171. package/skills/microsoft-foundry/SKILL.md +262 -0
  172. package/skills/migrate-to-shoehorn/SKILL.md +118 -0
  173. package/skills/milestone-tracking/SKILL.md +34 -0
  174. package/skills/minimalist-skill/SKILL.md +85 -0
  175. package/skills/model-deployment/SKILL.md +34 -0
  176. package/skills/model-evaluation/SKILL.md +34 -0
  177. package/skills/monitoring-setup/SKILL.md +34 -0
  178. package/skills/monorepo-setup/SKILL.md +34 -0
  179. package/skills/motion-graphics/SKILL.md +170 -0
  180. package/skills/multi-agent-systems/SKILL.md +34 -0
  181. package/skills/music-to-video/SKILL.md +197 -0
  182. package/skills/network-troubleshooting/SKILL.md +34 -0
  183. package/skills/node/SKILL.md +94 -0
  184. package/skills/nodejs-core/SKILL.md +156 -0
  185. package/skills/note-organization/SKILL.md +34 -0
  186. package/skills/oauth/SKILL.md +186 -0
  187. package/skills/obsidian-vault/SKILL.md +59 -0
  188. package/skills/octocat/SKILL.md +93 -0
  189. package/skills/openclaw-secure-linux-cloud/SKILL.md +157 -0
  190. package/skills/opensource-guide-coach/SKILL.md +218 -0
  191. package/skills/output-skill/SKILL.md +49 -0
  192. package/skills/package-publishing/SKILL.md +34 -0
  193. package/skills/password-generator/SKILL.md +34 -0
  194. package/skills/pdf/SKILL.md +314 -0
  195. package/skills/pdf-processing/SKILL.md +34 -0
  196. package/skills/performance-optimization/SKILL.md +34 -0
  197. package/skills/pomodoro-timer/SKILL.md +34 -0
  198. package/skills/powershell-automation/SKILL.md +34 -0
  199. package/skills/pptx/SKILL.md +232 -0
  200. package/skills/pr-to-video/SKILL.md +235 -0
  201. package/skills/priority-filtering/SKILL.md +34 -0
  202. package/skills/product-launch-video/SKILL.md +205 -0
  203. package/skills/project-tracking/SKILL.md +34 -0
  204. package/skills/prompt-compression/SKILL.md +34 -0
  205. package/skills/prompt-engineering/SKILL.md +34 -0
  206. package/skills/push-notifications/SKILL.md +34 -0
  207. package/skills/python-appservice-deploy/SKILL.md +36 -0
  208. package/skills/qa/SKILL.md +130 -0
  209. package/skills/rag-implementation/SKILL.md +34 -0
  210. package/skills/rate-limiting/SKILL.md +34 -0
  211. package/skills/react-best-practices/SKILL.md +149 -0
  212. package/skills/react-native-skills/SKILL.md +121 -0
  213. package/skills/react-view-transitions/SKILL.md +320 -0
  214. package/skills/readme-i18n/SKILL.md +176 -0
  215. package/skills/real-time-communication/SKILL.md +34 -0
  216. package/skills/redesign-skill/SKILL.md +178 -0
  217. package/skills/refactoring-strategy/SKILL.md +34 -0
  218. package/skills/regex-mastery/SKILL.md +34 -0
  219. package/skills/remotion/SKILL.md +364 -0
  220. package/skills/report-generation/SKILL.md +34 -0
  221. package/skills/request-refactor-plan/SKILL.md +68 -0
  222. package/skills/research-compiler/SKILL.md +34 -0
  223. package/skills/resolving-merge-conflicts/SKILL.md +14 -0
  224. package/skills/responsive-design/SKILL.md +34 -0
  225. package/skills/rest-api-patterns/SKILL.md +34 -0
  226. package/skills/retrospectives/SKILL.md +34 -0
  227. package/skills/risk-assessment/SKILL.md +34 -0
  228. package/skills/roadmap-creation/SKILL.md +34 -0
  229. package/skills/running-claude-code-via-litellm-copilot/SKILL.md +263 -0
  230. package/skills/scaffold-exercises/SKILL.md +106 -0
  231. package/skills/search-implementation/SKILL.md +34 -0
  232. package/skills/secrets-management/SKILL.md +34 -0
  233. package/skills/secure-linux-web-hosting/SKILL.md +162 -0
  234. package/skills/security-audit/SKILL.md +34 -0
  235. package/skills/selective-memory/SKILL.md +34 -0
  236. package/skills/semantic-search/SKILL.md +34 -0
  237. package/skills/semantic-versioning/SKILL.md +34 -0
  238. package/skills/sentiment-analysis/SKILL.md +34 -0
  239. package/skills/seo-optimization/SKILL.md +34 -0
  240. package/skills/setup-pre-commit/SKILL.md +91 -0
  241. package/skills/shadcn/SKILL.md +267 -0
  242. package/skills/simple/SKILL.md +52 -0
  243. package/skills/skill-creator/SKILL.md +485 -0
  244. package/skills/skill-optimizer/SKILL.md +47 -0
  245. package/skills/skills-cli/SKILL.md +281 -0
  246. package/skills/slack-gif-creator/SKILL.md +254 -0
  247. package/skills/snipgrapher/SKILL.md +58 -0
  248. package/skills/snippet-manager/SKILL.md +34 -0
  249. package/skills/soft-skill/SKILL.md +98 -0
  250. package/skills/sprint-planning/SKILL.md +34 -0
  251. package/skills/sql-query-optimization/SKILL.md +34 -0
  252. package/skills/stakeholder-communication/SKILL.md +34 -0
  253. package/skills/state-management/SKILL.md +34 -0
  254. package/skills/statistical-analysis/SKILL.md +34 -0
  255. package/skills/stitch-skill/SKILL.md +184 -0
  256. package/skills/streaming-responses/SKILL.md +34 -0
  257. package/skills/structured-output/SKILL.md +34 -0
  258. package/skills/summarization-techniques/SKILL.md +34 -0
  259. package/skills/supabase/SKILL.md +135 -0
  260. package/skills/supabase-postgres-best-practices/SKILL.md +64 -0
  261. package/skills/system-diagnostics/SKILL.md +34 -0
  262. package/skills/systematic-debugging/SKILL.md +296 -0
  263. package/skills/talking-head-recut/SKILL.md +1191 -0
  264. package/skills/task-decomposition/SKILL.md +34 -0
  265. package/skills/task-prioritization/SKILL.md +34 -0
  266. package/skills/taste-skill/SKILL.md +1206 -0
  267. package/skills/taste-skill-v1/SKILL.md +226 -0
  268. package/skills/tdd/SKILL.md +108 -0
  269. package/skills/teach/SKILL.md +140 -0
  270. package/skills/template-library/SKILL.md +34 -0
  271. package/skills/test-driven-development/SKILL.md +371 -0
  272. package/skills/test-generation/SKILL.md +34 -0
  273. package/skills/testing-strategy/SKILL.md +34 -0
  274. package/skills/text-expansion/SKILL.md +34 -0
  275. package/skills/theme-factory/SKILL.md +59 -0
  276. package/skills/time-blocking/SKILL.md +34 -0
  277. package/skills/to-prd/SKILL.md +75 -0
  278. package/skills/token-budgeting/SKILL.md +34 -0
  279. package/skills/token-optimization/SKILL.md +34 -0
  280. package/skills/tool-calling-patterns/SKILL.md +34 -0
  281. package/skills/typescript-magician/SKILL.md +117 -0
  282. package/skills/tzst/SKILL.md +68 -0
  283. package/skills/ubiquitous-language/SKILL.md +93 -0
  284. package/skills/use-my-browser/SKILL.md +110 -0
  285. package/skills/using-superpowers/SKILL.md +121 -0
  286. package/skills/vector-database-setup/SKILL.md +34 -0
  287. package/skills/vercel-cli-with-tokens/SKILL.md +353 -0
  288. package/skills/vercel-optimize/SKILL.md +322 -0
  289. package/skills/video-editing/SKILL.md +34 -0
  290. package/skills/viral-instagram-reels/SKILL.md +180 -0
  291. package/skills/viral-short-form/SKILL.md +147 -0
  292. package/skills/viral-short-form-ideas/SKILL.md +184 -0
  293. package/skills/viral-tiktok-content/SKILL.md +180 -0
  294. package/skills/visualization-creation/SKILL.md +34 -0
  295. package/skills/web-artifacts-builder/SKILL.md +74 -0
  296. package/skills/web-design-guidelines/SKILL.md +39 -0
  297. package/skills/web-scraping/SKILL.md +34 -0
  298. package/skills/webapp-testing/SKILL.md +96 -0
  299. package/skills/webhook-handling/SKILL.md +34 -0
  300. package/skills/website-to-video/SKILL.md +145 -0
  301. package/skills/weekly-review/SKILL.md +34 -0
  302. package/skills/workflow-automation/SKILL.md +34 -0
  303. package/skills/writing-beats/SKILL.md +67 -0
  304. package/skills/writing-fragments/SKILL.md +79 -0
  305. package/skills/writing-great-skills/SKILL.md +82 -0
  306. package/skills/writing-guidelines/SKILL.md +39 -0
  307. package/skills/writing-plans/SKILL.md +174 -0
  308. package/skills/writing-shape/SKILL.md +79 -0
  309. package/skills/xdrop/SKILL.md +78 -0
  310. package/skills/xget/SKILL.md +87 -0
  311. package/skills/xlsx/SKILL.md +292 -0
  312. package/src/commands/code_v5.js +377 -73
  313. package/src/commands/repl.js +505 -86
  314. package/src/providers/model/anthropic.js +84 -0
  315. package/src/providers/model/gemini.js +49 -0
  316. package/src/providers/model/minimax.js +48 -0
  317. package/src/providers/model/ollama.js +42 -0
  318. package/src/providers/model/openai.js +49 -0
  319. package/src/providers/search/duckduckgo.js +45 -0
  320. package/src/providers/search/exa.js +52 -0
  321. package/src/providers/search/searxng.js +51 -0
  322. package/src/providers/search/tavily.js +47 -0
  323. package/src/tools/model_provider.js +71 -0
  324. package/src/tools/parallel_search.js +40 -49
  325. package/src/tools/search_provider.js +79 -0
  326. package/src/tools/skills_download.js +217 -0
  327. package/src/tools/web_search.js +42 -62
  328. package/src/tools/workflow.js +21 -9
  329. package/src/utils/cron.js +82 -126
  330. package/src/utils/effort-levels.js +42 -0
  331. package/src/utils/fallback-chain.js +72 -0
  332. package/src/utils/file-history.js +78 -0
  333. package/src/utils/model-provider.js +113 -0
  334. package/src/utils/permissions.js +147 -0
  335. package/src/utils/plan-mode.js +164 -0
  336. package/src/utils/provider-detect.js +7 -32
  337. package/src/utils/sandbox.js +60 -0
  338. package/src/utils/search-provider.js +62 -0
  339. package/src/utils/session-search.js +66 -0
  340. package/src/utils/structured-output.js +20 -0
  341. package/src/utils/system-prompt.js +28 -2
  342. package/src/utils/tasks.js +132 -0
  343. package/src/utils/tool-hooks.js +154 -0
  344. package/src/utils/tools.js +18 -2
  345. package/src/utils/ultra-review.js +59 -0
  346. package/src/utils/worktree.js +192 -0
@@ -0,0 +1,387 @@
1
+ ---
2
+ name: azure-reliability
3
+ description: "Assess and improve the reliability posture of PaaS Applications (Azure Functions and Azure App Service). Scans deployed resources for zone redundancy, ZRS storage, health probes, and multi-region failover. Presents a feature-pivoted checklist, then drives staged remediation (CLI or IaC patches) end-to-end with user confirmation. WHEN: \"assess reliability\", \"check reliability\", \"zone redundant\", \"multi-region failover\", \"high availability\", \"disaster recovery\", \"single points of failure\", \"reliability posture\", \"resiliency\"."
4
+ license: MIT
5
+ metadata:
6
+ author: Microsoft
7
+ version: "1.0.2"
8
+ ---
9
+
10
+ # Azure Reliability Assessment & Configuration
11
+
12
+ ## Quick Reference
13
+
14
+ | Property | Details |
15
+ |---|---|
16
+ | Best for | Reliability posture assessment, zone redundancy enablement, multi-region failover setup |
17
+ | Primary capabilities | Reliability assessment table, Zone Redundancy Configuration, Multi-Region IaC Generation |
18
+ | Supported services | Azure Functions, App Service (Container Apps planned for a future version) |
19
+ | MCP tools | Azure Resource Graph queries, Azure CLI commands |
20
+
21
+ ## When to Use This Skill
22
+
23
+ Activate this skill when user wants to:
24
+ - "Assess my Function app's reliability"
25
+ - "Assess my Web app's reliability"
26
+ - "Check the reliability of my resource group" (App Service and Functions resources only)
27
+ - "Is my app zone redundant?" (App Service and Functions resources only)
28
+ - "Is my app service plan zone redundant?"
29
+ - "Make my app zone redundant" (App Service and Functions resources only)
30
+ - "Make my app service plan zone redundant"
31
+ - "Set up multi-region failover for my app" (App Service and Functions resources only)
32
+ - "Check my reliability posture"
33
+ - "Find single points of failure" (App Service and Functions resources only)
34
+ - "Enable high availability for my app" (App Service and Functions resources only)
35
+ - "Check disaster recovery readiness"
36
+ - "Improve my app's resilience" (App Service and Functions resources only)
37
+
38
+ > **Scope note:** This skill currently covers **Azure Functions and Azure App Service** only. If the user asks about Azure Container Apps reliability, acknowledge that support is planned but not yet available, and only proceed with the parts that apply to App Service and Functions resources in scope.
39
+
40
+ ## Prerequisites
41
+
42
+ - Authentication: user is logged in to Azure via `az login`
43
+ - Permissions: Reader access on target subscription/resource group (for assessment)
44
+ - Permissions: Contributor access (for configuration changes)
45
+ - Azure Resource Graph extension: `az extension add --name resource-graph`
46
+
47
+ ## MCP Tools
48
+
49
+ | Tool | Purpose |
50
+ |------|---------|
51
+ | `mcp_azure_mcp_extension_cli_generate` | Generate `az` CLI commands for resource queries and configuration |
52
+ | `mcp_azure_mcp_subscription_list` | List available subscriptions |
53
+ | `mcp_azure_mcp_group_list` | List resource groups |
54
+
55
+ Primary query method: Azure Resource Graph via `az graph query` (requires `az extension add --name resource-graph`).
56
+
57
+ ## Assessment Workflow
58
+
59
+ ### Phase 1: Discover Resources
60
+
61
+ 1. **Identify scope** — Ask user for resource group, subscription, or app name
62
+ 2. **Query Azure Resource Graph** to discover all resources in scope
63
+ 3. **Classify resources** by service type (Functions, Storage, etc.). If non-Functions compute (App Service sites that aren't Function Apps, Container Apps) is found, **note it but do not deep-dive** — those services are planned for a future version of this skill.
64
+
65
+ **Important:** Always scope queries to the user's specified resource group or subscription. Add these filters to every Resource Graph query:
66
+ - Resource group: `| where resourceGroup =~ '<rg-name>'`
67
+ - Subscription: Use `--subscriptions <sub-id>` flag on `az graph query`
68
+ - App name: `| where name =~ '<app-name>'`
69
+
70
+ ### Phase 2: Assess Reliability
71
+
72
+ Two-step assessment: **platform-level discovery first, then per-service deep dive.**
73
+
74
+ **Step 1 — Platform discovery (find what's there).** Use these to enumerate resources in scope and detect cross-cutting reliability gaps:
75
+
76
+ | Platform check | Reference |
77
+ |---|---|
78
+ | Zone redundancy — discovery | [references/zone-redundancy-checks.md](references/zone-redundancy-checks.md) |
79
+ | Storage redundancy (cross-service) | [references/storage-redundancy-checks.md](references/storage-redundancy-checks.md) |
80
+ | Multi-region & global load balancers | [references/multi-region-checks.md](references/multi-region-checks.md) |
81
+ | Front Door / Traffic Manager / App Insights probes | [references/health-probe-checks.md](references/health-probe-checks.md) |
82
+
83
+ **Step 2 — Per-service deep dive.** For each compute resource discovered in Step 1, load the matching service reference. The service reference is the single source of truth for that service's plan/SKU rules, assessment queries, CLI commands, IaC patches (Bicep + Terraform + AVM), and reporting hints.
84
+
85
+ This skill version ships **only the Azure Functions and App Service** per-service references. Other compute services are listed below explicitly so the dispatch logic is unambiguous: if a resource matches an unsupported row, do **not** attempt to load a reference, fabricate CLI commands, or generate IaC patches for it.
86
+
87
+ | Service detected | Reference |
88
+ |---|---|
89
+ | Azure Functions (`microsoft.web/serverfarms` with `kind contains 'functionapp'`) | [references/services/functions/reliability.md](references/services/functions/reliability.md) |
90
+ | Azure App Service (non-Functions sites: `microsoft.web/sites` without `kind contains 'functionapp'`, `microsoft.web/serverfarms` without `kind contains 'functionapp'`) | [references/services/app-service/reliability.md](references/services/app-service/reliability.md) |
91
+ | Azure Container Apps (`microsoft.app/containerapps`, `microsoft.app/managedenvironments`) | ⚪ Not yet shipped — planned for a future version |
92
+
93
+ > **Handling unsupported services:** If a resource matches an unsupported row above, surface it in the discovery summary, mark it as `⚪ not assessed (planned)` in the Phase 3 table, and skip the per-service remediation steps for it. Do **not** attempt to fabricate CLI commands or IaC patches for those services.
94
+
95
+ ### Phase 3: Generate Reliability Checklist
96
+
97
+ Present findings as a **feature-pivoted** table: one row per reliability feature (Zone redundancy on compute, Zone-redundant storage, Health probes, Multi-region failover), with a single status indicator and the **specific resources** that are relevant to that feature. This avoids the noise of one-row-per-resource with mostly `n/a` cells. Do **not** assign numeric scores or grades.
98
+
99
+ ```
100
+ 🔍 Reliability Assessment — {scope}
101
+ ─────────────────────────────────────────────────────────────────────────────────────────────
102
+ Reliability Feature Status Resources
103
+ ─────────────────────────────────────────────────────────────────────────────────────────────
104
+ Zone redundancy — compute 🔴 OFF • plan-web-ii5trxva2ark4 (P1v3)
105
+ • plan-ii5trxva2ark4 (FC1)
106
+
107
+ Zone-redundant storage 🔴 GRS • stii5trxva2ark4 (defaulted; no SKU set in IaC)
108
+
109
+ Health probes 🔴 OFF • func-api-ii5trxva2ark4 — needs code change (FC1)
110
+ • app-web-ii5trxva2ark4 — no health check path
111
+
112
+ Multi-region failover 🔴 OFF • Single region (eastus) only — Front Door not configured
113
+ ─────────────────────────────────────────────────────────────────────────────────────────────
114
+
115
+ Want me to fix the 🔴 items? I'll do the quick wins first (App
116
+ plan zone redundancy + health checks on supported plans), then ask before
117
+ storage migration and multi-region setup. (yes/no)
118
+ ```
119
+
120
+ **Rules for the table:**
121
+
122
+ - **Four feature rows, in this order:** Zone redundancy — compute · Zone-redundant storage · Health probes · Multi-region failover. Omit a row entirely only if no resource in scope could ever apply to it.
123
+ - **Status column** is one symbol + one short word, no other characters:
124
+ - `🟢 ON` — feature is fully enabled across all relevant resources in scope
125
+ - `🟡 PARTIAL` — some resources have it, some don't (or partial config like liveness-only)
126
+ - `🔴 OFF` — feature is missing on all relevant resources
127
+ - For storage, replace `OFF` with the current SKU when relevant (`🔴 LRS`, `🔴 GRS`, `🟢 ZRS`, `🟢 GZRS`). When no SKU is set in IaC, label as `🔴 GRS` (ARM/AVM default) and note that in the resource line.
128
+ - **Resources column** lists only what's relevant to that feature, one bullet per resource:
129
+ - For "needs fixing" resources, include a short inline reason (`(FC1)`, `(defaulted; no SKU set)`, `liveness only`, `needs code change (FC1)`).
130
+ - For resources that are **already ON** for that feature, mention them on the same row with `— already ON` so the user sees credit for what's right.
131
+ - **Do not** include `n/a`, `—`, or empty cells. If a feature doesn't apply to any resource in scope, drop the row.
132
+ - **Do not** include numeric scores, grades, or point totals.
133
+ - End the assessment with a **single yes/no question** that kicks off the staged remediation flow. Do not enumerate the per-resource fix list here — the user will see it after they say yes (Configuration Workflow Step 1).
134
+
135
+ > **UX Note:** If the assessment finds the app **already has** all core reliability features (zone redundancy, ZRS/GZRS storage, health probes), skip the fix-it question and jump straight to Configuration Workflow [Step 3](#step-3-both-paths-multi-region-followup--ask-and-wait) (Multi-region follow-up). Do **NOT** start any multi-region work without explicit consent.
136
+
137
+ ## Configuration Workflow
138
+
139
+ When user wants to **fix** findings from the assessment:
140
+
141
+ > **⛔ ALWAYS confirm with user before executing changes.** Show what will change, any cost implications, and any destructive actions (e.g., environment recreation).
142
+
143
+ ### Step 1: Present Fix Plan + Choose Path
144
+
145
+ After assessment, if user says "fix it" / "improve my reliability" / "enable zone redundancy":
146
+
147
+ 1. List each fixable finding with the specific action
148
+ 2. Flag any cost implications or breaking changes
149
+ 3. **Ask user which path they want:**
150
+
151
+ ```
152
+ I'll start with the quick wins (no downtime, fast):
153
+
154
+ 1. ✏️ Enable zone redundancy on plan-ii5trxva2ark4 (Flex Consumption — no cost change)
155
+ 2. ✏️ Set health check path to /api/health on func-api-ii5trxva2ark4
156
+
157
+ Then, separately, I'll ask if you want to upgrade storage:
158
+
159
+ 3. 🕒 Upgrade stii5trxva2ark4 from LRS → ZRS (small cost increase, migration takes hours)
160
+ — Required for full zone redundancy, but I'll confirm with you before starting.
161
+
162
+ How would you like to apply these changes?
163
+
164
+ A) Fix now — Run az CLI commands against your live resources (immediate, one-time)
165
+ B) Patch my IaC — Update your Bicep/Terraform files so changes persist across deploys
166
+
167
+ (If you use azd or Terraform, option B is recommended so `azd up` won't overwrite changes.)
168
+ ```
169
+
170
+ ### Path A: Fix Now (CLI)
171
+
172
+ Run fixes against live resources using `az` CLI commands. **Quick wins first, then ask before the slow storage migration.**
173
+
174
+ The exact CLI commands per service live in the per-service references — pick the one(s) matching the resources discovered in Phase 2:
175
+
176
+ | Fix | Reference |
177
+ |---|---|
178
+ | Enable zone redundancy / configure health probes (Functions) | [references/services/functions/reliability.md](references/services/functions/reliability.md) |
179
+ | Enable zone redundancy / configure health probes (App Service) | [references/services/app-service/reliability.md](references/services/app-service/reliability.md) |
180
+ | Upgrade storage replication (cross-service) | [references/configure-storage.md](references/configure-storage.md) |
181
+ | Set up multi-region (cross-service) | [references/configure-multi-region.md](references/configure-multi-region.md) |
182
+ | Platform overview / verification | [references/configure-zone-redundancy.md](references/configure-zone-redundancy.md), [references/configure-health-probes.md](references/configure-health-probes.md) |
183
+
184
+ **Execution order — always quick wins first:**
185
+
186
+ 1. **Zone redundancy on compute** (fast, in-place property update on the App's plan).
187
+ 2. **Health probes** (Premium / Dedicated only — in-place; for FC1 / Consumption, follow the consent gate in [configure-health-probes.md](references/configure-health-probes.md)).
188
+ 3. **Verify** the compute changes succeeded before doing anything else.
189
+ 4. **⛔ STOP — Ask about storage upgrade.** Compute is now zone-redundant, but storage may still be LRS or GRS. Ask the user explicitly:
190
+
191
+ ```
192
+ ✅ Compute is now zone-redundant.
193
+
194
+ To be **fully zone-redundant**, your storage account also needs to be upgraded:
195
+ • stii5trxva2ark4: currently `Standard_LRS` → needs `Standard_ZRS`
196
+
197
+ ⚠️ This is a live storage redundancy conversion:
198
+ • Takes hours to days depending on data volume
199
+ • Small ongoing cost increase (~$0.01/GB/month more)
200
+ • Only supported for Standard general-purpose v2 accounts
201
+
202
+ Do you want me to start the storage migration now? (yes / no / later)
203
+ ```
204
+
205
+ - **yes** → run `az storage account update --sku Standard_ZRS` (or `migration start` if needed); poll `az storage account show --query sku.name` until it reports `Standard_ZRS`.
206
+ - **no / later** → leave storage as-is; note in the re-assessment that ZR storage remains a gap.
207
+
208
+ 5. **Multi-region** — do NOT auto-run. Handled in **Step 3** below as an explicit follow-up after re-assessment.
209
+
210
+ > **⚠️ Warning:** If the user uses `azd up` or `terraform apply` later, CLI-only changes may be overwritten by the IaC definitions. Recommend also patching IaC after CLI fixes.
211
+
212
+ ### Path B: Patch IaC
213
+
214
+ Update the user's Bicep or Terraform files so reliability settings are persistent.
215
+
216
+ **Step 1: Detect IaC type**
217
+ 1. Look for `infra/` folder in project root
218
+ 2. If not found, check project root for `*.bicep` or `*.tf` files
219
+ 3. If still not found, ask user: "Where are your IaC files located?"
220
+ 4. Check for `*.bicep` files → use Bicep patching
221
+ 5. Check for `*.tf` files → use Terraform patching
222
+ 6. If both exist, ask user which to patch
223
+ 7. If no IaC exists, fall back to Path A (CLI) and inform user
224
+
225
+ **Step 2: Classify each fix by risk level**
226
+
227
+ | Fix | Risk Level | What Happens |
228
+ |-----|-----------|--------------|
229
+ | Zone redundancy (App plan) | 🟢 Safe patch | In-place property update on next deploy |
230
+ | Storage LRS → ZRS | 🟡 Pre-migration required | Live storage migration must complete before the IaC SKU change can deploy. **Never bundle with safe patches** — use the two-deploy flow in Steps 3–5. |
231
+ | Health check path (Basic/Standard/Premium / Dedicated) | 🟢 Safe patch | In-place update, but causes app restart |
232
+ | Health check path (FC1 / Consumption) | ⚪ Code-only — ask first | `healthCheckPath` is unsupported. Adding a health endpoint requires adding an HTTP-triggered `/api/health` function to **app code**. **Always ask the user for explicit consent before touching source code.** Do **not** patch IaC. |
233
+
234
+ **Step 3: Apply patches in two deploys (quick wins first)**
235
+
236
+ The IaC patching framework (detection, AVM-module guidance, deploy-order rule, storage SKU patch) lives in:
237
+
238
+ | IaC Type | Framework reference |
239
+ |---|---|
240
+ | Bicep | [references/iac-patching-bicep.md](references/iac-patching-bicep.md) |
241
+ | Terraform | [references/iac-patching-terraform.md](references/iac-patching-terraform.md) |
242
+
243
+ The actual **per-service compute patches** (Function App plan ZR, App Service Plan ZR, etc.) live in the per-service references — load the matching service file from Phase 2 for the exact Bicep / Terraform / AVM snippets. Only Azure Functions and App Service have per-service references in this skill version; Container Apps is out of scope.
244
+
245
+ **Deploy 1 — Quick wins only.** Patch the 🟢 Safe items (zone redundancy on the App Service/Function App plan, health probes on Basic/Standard/Premium / Dedicated). Do **NOT** include the storage SKU patch in this deploy.
246
+
247
+ After patching, **the skill runs the deploy itself** (do not stop and tell the user to run it). Detect the deployment tool and confirm once before executing:
248
+
249
+ ```
250
+ 📦 Patches applied to your IaC. Ready to deploy:
251
+ Tool detected: azd (found azure.yaml)
252
+ Command: azd up
253
+
254
+ Proceed with deployment? (yes / no)
255
+ ```
256
+
257
+ On **yes**, run the appropriate command, stream output back to the user, and continue to the next step on success:
258
+ - AZD project (has `azure.yaml`): `azd up`
259
+ - Bicep-only: `az deployment group create --resource-group <rg> --template-file infra/main.bicep --parameters @infra/main.parameters.json`
260
+ - Terraform: `terraform plan -out tfplan` → (show plan summary) → `terraform apply tfplan`
261
+
262
+ On **no**, stop and report the patched files; do not proceed to Step 4 / Re-Assess.
263
+
264
+ If deployment fails, surface the error and stop — do not continue to the storage step.
265
+
266
+ **⛔ STOP — Ask about storage upgrade before Deploy 2.** After Deploy 1 succeeds, ask the user explicitly:
267
+
268
+ ```
269
+ ✅ Quick-win patches deployed. Compute is now zone-redundant.
270
+
271
+ To be **fully zone-redundant**, your storage account also needs to be upgraded:
272
+ • stii5trxva2ark4: currently `Standard_LRS` → needs `Standard_ZRS`
273
+
274
+ ⚠️ This is a two-part change:
275
+ 1. Live storage migration (`az storage account migration start`) — takes hours to days
276
+ 2. A second deploy to update your IaC's storage SKU to match
277
+
278
+ Do you want me to start the storage migration now? (yes / no / later)
279
+ ```
280
+
281
+ - **yes** → the skill runs the migration command itself, polls until complete, then patches the storage SKU in IaC and runs **Deploy 2** (now a no-op confirmation). The user does not need to run anything manually.
282
+ - **no / later** → leave the storage SKU patch unapplied. Note in the re-assessment that ZR storage remains a gap; suggest revisiting later.
283
+
284
+ **Step 4: Storage migration (only if user said yes in Step 3)**
285
+
286
+ The skill runs these commands itself — do not ask the user to run them. Show progress as you go:
287
+
288
+ ```
289
+ 🔄 Starting storage migration (this can take up to 72 hours)...
290
+
291
+ az storage account migration start --name stii5trxva2ark4 \
292
+ --resource-group rg-example --sku Standard_ZRS --no-wait
293
+
294
+ Polling: az storage account show --name stii5trxva2ark4 --query sku.name
295
+ ...
296
+ ✅ Migration complete: sku.name = Standard_ZRS
297
+ ```
298
+
299
+ For very long migrations, you may surface a checkpoint to the user ("this is still running, check back later") rather than blocking the entire conversation.
300
+
301
+ **Step 5: Deploy 2 — storage SKU patch**
302
+
303
+ After the migration completes, the skill patches the storage SKU in IaC and runs the same deploy command as Step 3 (e.g. `azd up`). This deploy is a no-op confirmation that the IaC matches the live state. Confirm once with the user before executing, then run it directly.
304
+
305
+ ### Step 2 (both paths): Re-Assess
306
+
307
+ After changes are applied (CLI) or deployed (IaC), automatically re-run the assessment and show the **same feature-pivoted table** as Phase 3, with each feature row's status updated to reflect the new state. Briefly call out what changed since the previous run.
308
+
309
+ ```
310
+ 🔄 Reliability Re-Assessment — rg-eventhubs-python-jan13 (eastus)
311
+ ───────────────────────────────────────────────────────────────────────────────────────
312
+ Reliability Feature Status Resources
313
+ ───────────────────────────────────────────────────────────────────────────────────────
314
+ Zone redundancy — compute 🟢 ON • plan-ii5trxva2ark4 (FC1) — now ON
315
+ • plan-web-ii5trxva2ark4 (P1v3) — now ON
316
+
317
+ Zone-redundant storage 🟢 ZRS • stii5trxva2ark4 — GRS → ZRS
318
+
319
+ Health probes 🟡 PARTIAL • func-api-ii5trxva2ark4 — still off (FC1, code change declined)
320
+ • app-web-ii5trxva2ark4 — now ON
321
+
322
+ Multi-region failover 🔴 OFF • Single region (eastus) only
323
+ ───────────────────────────────────────────────────────────────────────────────────────
324
+
325
+ What changed: Function App and App Service plan zone redundancy, storage replication and health probes on App Service.
326
+ (Multi-region offered next — see Step 3.)
327
+ ```
328
+
329
+ ### Step 3 (both paths): Multi-region follow-up — ASK and WAIT
330
+
331
+ Multi-region is a significant cost/complexity step. Do **NOT** start it automatically. After re-assessment, only if **all core single-region reliability features are 🟢 ON** (zone-redundant compute, ZRS/GZRS storage, health probes), explicitly ask the user and **wait for their response** before doing anything:
332
+
333
+ ```
334
+ 🟢 Your app is now fully zone-redundant in {region}.
335
+
336
+ The next step (optional) is multi-region failover with Azure Front Door:
337
+ • Deploys compute + storage in a second region (paired region recommended)
338
+ • Adds Azure Front Door for global load balancing with health-probe-driven failover
339
+ • Protects against full region outages
340
+ • Estimated additional cost: ~2x compute (active-passive); Front Door ~$35/month base
341
+
342
+ Do you want me to set up multi-region failover now? (yes / no / later)
343
+ ```
344
+
345
+ - **yes** → proceed with [references/configure-multi-region.md](references/configure-multi-region.md). Confirm secondary region choice with the user, then:
346
+ 1. Generate the multi-region IaC (Bicep / Terraform additions for the secondary region + Front Door).
347
+ 2. Confirm once with the user: `📦 Multi-region IaC generated. Ready to deploy with \`azd up\`. Proceed? (yes / no)`
348
+ 3. On **yes**, **the skill runs the deploy itself** (`azd up` / `az deployment group create` / `terraform apply`) and streams output. Do not stop and tell the user to run it.
349
+ 4. After successful deploy, run a final re-assessment so the user sees Multi-region failover flip to 🟢 ON.
350
+ - **no / later** → leave the deployment as-is. Note that single-region zone-redundant is a reliable end state; multi-region can be revisited anytime.
351
+
352
+ > **⛔ Do not skip the wait.** Do not generate multi-region IaC, deploy a Front Door, or modify any files until the user has explicitly said yes. If core reliability is not yet all 🟢, do **not** ask about multi-region — finish the core gaps first.
353
+
354
+ ## Priority Classification
355
+
356
+ | Priority | Criteria | Action |
357
+ |---|---|---|
358
+ | Critical | No zone redundancy AND production workload | Fix immediately |
359
+ | High | LRS storage on zone-redundant compute | Fix within days |
360
+ | Medium | No multi-region (single region but zone-redundant) | Plan for next sprint |
361
+ | Low | Missing health probes or monitoring gaps | Track and fix |
362
+
363
+ ## Error Handling
364
+
365
+ | Error | Message | Remediation |
366
+ |---|---|---|
367
+ | Authentication required | "Please login" | Run `az login` and retry |
368
+ | Access denied | "Forbidden" | Confirm Reader/Contributor role assignment |
369
+ | Plan doesn't support ZR | "Upgrade required" | Inform user of plan upgrade path + cost delta |
370
+ | Region doesn't support AZ | "Region limitation" | Suggest supported regions |
371
+
372
+ ## Best Practices
373
+
374
+ - Run reliability assessments after every significant infrastructure change
375
+ - Test failover scenarios periodically (at least quarterly)
376
+
377
+ ## Skill Boundaries
378
+
379
+ | Action | This skill does | Hand off to |
380
+ |---|---|---|
381
+ | Assess reliability posture | ✅ Yes | — |
382
+ | Recommend improvements | ✅ Yes | — |
383
+ | Enable zone redundancy (CLI commands) | ✅ Yes | — |
384
+ | Patch Bicep/Terraform for reliability | ✅ Yes | — |
385
+ | Generate multi-region IaC | ✅ Yes (additions for the secondary region + Front Door) | `azure-prepare` for full new-app IaC scaffolding |
386
+ | Deploy IaC for reliability changes | ✅ Yes (runs `azd up` / `terraform apply` / `az deployment` itself, after user confirmation) | `azure-deploy` for general/non-reliability deploys |
387
+ | Validate pre-deployment | Reliability checks only | `azure-validate` for full validation |
@@ -0,0 +1,108 @@
1
+ ---
2
+ name: azure-resource-lookup
3
+ description: "List, find, and show Azure resources across subscriptions or resource groups. Handles prompts like \"list the websites in my subscription\", \"list my web apps\", \"show my app services\", \"list virtual machines\", \"list my VMs\", \"show storage accounts\", \"find container apps\", and \"what resources do I have\". USE FOR: list websites, list web apps, list app services, show websites in subscription, resource inventory, find resources by tag, tag analysis, orphaned resource discovery (not for cost analysis), unattached disks, count resources by type, cross-subscription lookup, and Azure Resource Graph queries. DO NOT USE FOR: deploying/changing resources (use azure-deploy), cost optimization (use azure-cost), or non-Azure clouds."
4
+ license: MIT
5
+ metadata:
6
+ author: Microsoft
7
+ version: "1.1.3"
8
+ ---
9
+
10
+ # Azure Resource Lookup
11
+
12
+ List, find, and discover Azure resources of any type across subscriptions and resource groups. Use Azure Resource Graph (ARG) for fast, cross-cutting queries when dedicated MCP tools don't cover the resource type.
13
+
14
+ ## When to Use This Skill
15
+
16
+ Use this skill when the user wants to:
17
+ - **List resources** of any type (VMs, web apps, storage accounts, container apps, databases, etc.)
18
+ - **Show resources** in a specific subscription or resource group
19
+ - Query resources **across multiple subscriptions** or resource types
20
+ - Find **orphaned resources** (unattached disks, unused NICs, idle IPs)
21
+ - Discover resources **missing required tags** or configurations
22
+ - Get a **resource inventory** spanning multiple types
23
+ - Find resources in a **specific state** (unhealthy, failed provisioning, stopped)
24
+ - Answer "**what resources do I have?**" or "**show me my Azure resources**"
25
+ - **List web apps, websites, or App Services**
26
+
27
+ > ⚠️ **Warning:** App Service / Web Apps have no dedicated MCP `list` command. Prompts like "list websites", "list web apps", or "list app services" **must** route through this skill to use Azure Resource Graph.
28
+
29
+ > 💡 **Tip:** For single-resource-type queries, first check if a dedicated MCP tool can handle it (see routing table below). If none exists, use Azure Resource Graph.
30
+
31
+ ## Quick Reference
32
+
33
+ | Property | Value |
34
+ |----------|-------|
35
+ | **Query Language** | KQL (Kusto Query Language subset) |
36
+ | **CLI Command** | `az graph query -q "<KQL>" -o table` |
37
+ | **Extension** | `az extension add --name resource-graph` |
38
+ | **MCP Tool** | `extension_cli_generate` with intent for `az graph query` |
39
+ | **Best For** | Cross-subscription queries, orphaned resources, tag audits |
40
+
41
+ ## MCP Tools
42
+
43
+ | Tool | Purpose | When to Use |
44
+ |------|---------|-------------|
45
+ | `extension_cli_generate` | Generate `az graph query` commands | Primary tool — generate ARG queries from user intent |
46
+ | `mcp_azure_mcp_subscription_list` | List available subscriptions | Discover subscription scope before querying |
47
+ | `mcp_azure_mcp_group_list` | List resource groups | Narrow query scope |
48
+
49
+ ## Workflow
50
+
51
+ ### Step 1: Check for a Dedicated MCP Tool
52
+
53
+ For single-resource-type queries, check if a dedicated MCP tool can handle it:
54
+
55
+ | Resource Type | MCP Tool | Coverage |
56
+ |---|---|---|
57
+ | Virtual Machines | `compute` | ✅ Full — list, details, sizes |
58
+ | Storage Accounts | `storage` | ✅ Full — accounts, blobs, tables |
59
+ | Cosmos DB | `cosmos` | ✅ Full — accounts, databases, queries |
60
+ | Key Vault | `keyvault` | ⚠️ Partial — secrets/keys only, no vault listing |
61
+ | SQL Databases | `sql` | ⚠️ Partial — requires resource group name |
62
+ | Container Registries | `acr` | ✅ Full — list registries |
63
+ | Kubernetes (AKS) | `aks` | ✅ Full — clusters, node pools |
64
+ | App Service / Web Apps | `appservice` | ❌ No list command — use ARG |
65
+ | Container Apps | — | ❌ No MCP tool — use ARG |
66
+ | Event Hubs | `eventhubs` | ✅ Full — namespaces, hubs |
67
+ | Service Bus | `servicebus` | ✅ Full — queues, topics |
68
+
69
+ If a dedicated tool is available with full coverage, use it. Otherwise proceed to Step 2.
70
+
71
+ ### Step 2: Generate the ARG Query
72
+
73
+ Use `extension_cli_generate` to build the `az graph query` command:
74
+
75
+ ```yaml
76
+ mcp_azure_mcp_extension_cli_generate
77
+ intent: "query Azure Resource Graph to <user's request>"
78
+ cli-type: "az"
79
+ ```
80
+
81
+ See [Azure Resource Graph Query Patterns](references/azure-resource-graph.md) for common KQL patterns.
82
+
83
+ ### Step 3: Execute and Format Results
84
+
85
+ Run the generated command. Use `--query` (JMESPath) to shape output:
86
+
87
+ ```bash
88
+ az graph query -q "<KQL>" --query "data[].{name:name, type:type, rg:resourceGroup}" -o table
89
+ ```
90
+
91
+ Use `--first N` to limit results. Use `--subscriptions` to scope.
92
+
93
+ ## Error Handling
94
+
95
+ | Error | Cause | Fix |
96
+ |-------|-------|-----|
97
+ | `resource-graph extension not found` | Extension not installed | `az extension add --name resource-graph` |
98
+ | `AuthorizationFailed` | No read access to subscription | Check RBAC — need Reader role |
99
+ | `BadRequest` on query | Invalid KQL syntax | Verify table/column names; use `=~` for case-insensitive type matching |
100
+ | Empty results | No matching resources or wrong scope | Check `--subscriptions` flag; verify resource type spelling |
101
+
102
+ ## Constraints
103
+
104
+ - ✅ **Always** use `=~` for case-insensitive type matching (types are lowercase)
105
+ - ✅ **Always** scope queries with `--subscriptions` or `--first` for large tenants
106
+ - ✅ **Prefer** dedicated MCP tools for single-resource-type queries
107
+ - ❌ **Never** use ARG for real-time monitoring (data has slight delay)
108
+ - ❌ **Never** attempt mutations through ARG (read-only)