natureco-cli 5.18.3 → 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.
Files changed (154) hide show
  1. package/package.json +1 -1
  2. package/skills/airunway-aks-setup/SKILL.md +73 -0
  3. package/skills/algorithmic-art/SKILL.md +405 -0
  4. package/skills/appinsights-instrumentation/SKILL.md +76 -0
  5. package/skills/azure-ai/SKILL.md +71 -0
  6. package/skills/azure-aigateway/SKILL.md +129 -0
  7. package/skills/azure-cloud-migrate/SKILL.md +52 -0
  8. package/skills/azure-compliance/SKILL.md +108 -0
  9. package/skills/azure-compute/SKILL.md +46 -0
  10. package/skills/azure-cost/SKILL.md +45 -0
  11. package/skills/azure-deploy/SKILL.md +97 -0
  12. package/skills/azure-diagnostics/SKILL.md +151 -0
  13. package/skills/azure-enterprise-infra-planner/SKILL.md +54 -0
  14. package/skills/azure-hosted-copilot-sdk/SKILL.md +89 -0
  15. package/skills/azure-kubernetes/SKILL.md +153 -0
  16. package/skills/azure-kusto/SKILL.md +231 -0
  17. package/skills/azure-messaging/SKILL.md +57 -0
  18. package/skills/azure-prepare/SKILL.md +165 -0
  19. package/skills/azure-quotas/SKILL.md +276 -0
  20. package/skills/azure-rbac/SKILL.md +17 -0
  21. package/skills/azure-reliability/SKILL.md +387 -0
  22. package/skills/azure-resource-lookup/SKILL.md +108 -0
  23. package/skills/azure-resource-visualizer/SKILL.md +183 -0
  24. package/skills/azure-storage/SKILL.md +100 -0
  25. package/skills/azure-upgrade/SKILL.md +91 -0
  26. package/skills/azure-validate/SKILL.md +72 -0
  27. package/skills/brainstorming/SKILL.md +159 -0
  28. package/skills/brand-guidelines/SKILL.md +73 -0
  29. package/skills/brandkit/SKILL.md +798 -0
  30. package/skills/brutalist-skill/SKILL.md +92 -0
  31. package/skills/canvas-design/SKILL.md +130 -0
  32. package/skills/cavecrew/SKILL.md +82 -0
  33. package/skills/caveman-commit/SKILL.md +65 -0
  34. package/skills/caveman-help/SKILL.md +63 -0
  35. package/skills/caveman-review/SKILL.md +55 -0
  36. package/skills/caveman-stats/SKILL.md +10 -0
  37. package/skills/claude-api/SKILL.md +356 -0
  38. package/skills/composition-patterns/SKILL.md +89 -0
  39. package/skills/decision-mapping/SKILL.md +84 -0
  40. package/skills/deploy-to-vercel/SKILL.md +296 -0
  41. package/skills/design-an-interface/SKILL.md +94 -0
  42. package/skills/design-doc-mermaid/SKILL.md +498 -0
  43. package/skills/develop-userscripts/SKILL.md +84 -0
  44. package/skills/doc-coauthoring/SKILL.md +375 -0
  45. package/skills/documentation/SKILL.md +109 -0
  46. package/skills/docx/SKILL.md +590 -0
  47. package/skills/edit-article/SKILL.md +15 -0
  48. package/skills/entra-agent-id/SKILL.md +356 -0
  49. package/skills/entra-app-registration/SKILL.md +191 -0
  50. package/skills/faceless-explainer/SKILL.md +202 -0
  51. package/skills/fastify/SKILL.md +75 -0
  52. package/skills/general-video/SKILL.md +143 -0
  53. package/skills/git-guardrails-claude-code/SKILL.md +95 -0
  54. package/skills/github-actions-docs/SKILL.md +98 -0
  55. package/skills/gpt-tasteskill/SKILL.md +74 -0
  56. package/skills/grill-me/SKILL.md +7 -0
  57. package/skills/grilling/SKILL.md +10 -0
  58. package/skills/handoff/SKILL.md +16 -0
  59. package/skills/hyperframes/SKILL.md +152 -0
  60. package/skills/hyperframes-animation/SKILL.md +82 -0
  61. package/skills/hyperframes-cli/SKILL.md +109 -0
  62. package/skills/hyperframes-core/SKILL.md +78 -0
  63. package/skills/hyperframes-creative/SKILL.md +68 -0
  64. package/skills/hyperframes-media/SKILL.md +97 -0
  65. package/skills/image-to-code-skill/SKILL.md +1228 -0
  66. package/skills/imagegen-frontend-mobile/SKILL.md +1465 -0
  67. package/skills/imagegen-frontend-web/SKILL.md +987 -0
  68. package/skills/implement/SKILL.md +15 -0
  69. package/skills/init/SKILL.md +91 -0
  70. package/skills/internal-comms/SKILL.md +32 -0
  71. package/skills/lark-approval/SKILL.md +56 -0
  72. package/skills/lark-base/SKILL.md +157 -0
  73. package/skills/lark-doc/SKILL.md +81 -0
  74. package/skills/lark-shared/SKILL.md +168 -0
  75. package/skills/lark-workflow-meeting-summary/SKILL.md +122 -0
  76. package/skills/linting-neostandard-eslint9/SKILL.md +64 -0
  77. package/skills/loop-me/SKILL.md +32 -0
  78. package/skills/microsoft-foundry/SKILL.md +262 -0
  79. package/skills/migrate-to-shoehorn/SKILL.md +118 -0
  80. package/skills/minimalist-skill/SKILL.md +85 -0
  81. package/skills/motion-graphics/SKILL.md +170 -0
  82. package/skills/music-to-video/SKILL.md +197 -0
  83. package/skills/node/SKILL.md +94 -0
  84. package/skills/nodejs-core/SKILL.md +156 -0
  85. package/skills/oauth/SKILL.md +186 -0
  86. package/skills/obsidian-vault/SKILL.md +59 -0
  87. package/skills/octocat/SKILL.md +93 -0
  88. package/skills/openclaw-secure-linux-cloud/SKILL.md +157 -0
  89. package/skills/opensource-guide-coach/SKILL.md +218 -0
  90. package/skills/output-skill/SKILL.md +49 -0
  91. package/skills/pdf/SKILL.md +314 -0
  92. package/skills/pptx/SKILL.md +232 -0
  93. package/skills/pr-to-video/SKILL.md +235 -0
  94. package/skills/product-launch-video/SKILL.md +205 -0
  95. package/skills/python-appservice-deploy/SKILL.md +36 -0
  96. package/skills/qa/SKILL.md +130 -0
  97. package/skills/react-best-practices/SKILL.md +149 -0
  98. package/skills/react-native-skills/SKILL.md +121 -0
  99. package/skills/react-view-transitions/SKILL.md +320 -0
  100. package/skills/readme-i18n/SKILL.md +176 -0
  101. package/skills/redesign-skill/SKILL.md +178 -0
  102. package/skills/remotion/SKILL.md +364 -0
  103. package/skills/request-refactor-plan/SKILL.md +68 -0
  104. package/skills/resolving-merge-conflicts/SKILL.md +14 -0
  105. package/skills/running-claude-code-via-litellm-copilot/SKILL.md +263 -0
  106. package/skills/scaffold-exercises/SKILL.md +106 -0
  107. package/skills/secure-linux-web-hosting/SKILL.md +162 -0
  108. package/skills/setup-pre-commit/SKILL.md +91 -0
  109. package/skills/shadcn/SKILL.md +267 -0
  110. package/skills/simple/SKILL.md +52 -0
  111. package/skills/skill-creator/SKILL.md +485 -0
  112. package/skills/skill-optimizer/SKILL.md +47 -0
  113. package/skills/skills-cli/SKILL.md +281 -0
  114. package/skills/slack-gif-creator/SKILL.md +254 -0
  115. package/skills/snipgrapher/SKILL.md +58 -0
  116. package/skills/soft-skill/SKILL.md +98 -0
  117. package/skills/stitch-skill/SKILL.md +184 -0
  118. package/skills/supabase/SKILL.md +135 -0
  119. package/skills/supabase-postgres-best-practices/SKILL.md +64 -0
  120. package/skills/systematic-debugging/SKILL.md +296 -0
  121. package/skills/talking-head-recut/SKILL.md +1191 -0
  122. package/skills/taste-skill/SKILL.md +1206 -0
  123. package/skills/taste-skill-v1/SKILL.md +226 -0
  124. package/skills/tdd/SKILL.md +108 -0
  125. package/skills/teach/SKILL.md +140 -0
  126. package/skills/test-driven-development/SKILL.md +371 -0
  127. package/skills/theme-factory/SKILL.md +59 -0
  128. package/skills/to-prd/SKILL.md +75 -0
  129. package/skills/typescript-magician/SKILL.md +117 -0
  130. package/skills/tzst/SKILL.md +68 -0
  131. package/skills/ubiquitous-language/SKILL.md +93 -0
  132. package/skills/use-my-browser/SKILL.md +110 -0
  133. package/skills/using-superpowers/SKILL.md +121 -0
  134. package/skills/vercel-cli-with-tokens/SKILL.md +353 -0
  135. package/skills/vercel-optimize/SKILL.md +322 -0
  136. package/skills/viral-instagram-reels/SKILL.md +180 -0
  137. package/skills/viral-short-form/SKILL.md +147 -0
  138. package/skills/viral-short-form-ideas/SKILL.md +184 -0
  139. package/skills/viral-tiktok-content/SKILL.md +180 -0
  140. package/skills/web-artifacts-builder/SKILL.md +74 -0
  141. package/skills/web-design-guidelines/SKILL.md +39 -0
  142. package/skills/webapp-testing/SKILL.md +96 -0
  143. package/skills/website-to-video/SKILL.md +145 -0
  144. package/skills/writing-beats/SKILL.md +67 -0
  145. package/skills/writing-fragments/SKILL.md +79 -0
  146. package/skills/writing-great-skills/SKILL.md +82 -0
  147. package/skills/writing-guidelines/SKILL.md +39 -0
  148. package/skills/writing-plans/SKILL.md +174 -0
  149. package/skills/writing-shape/SKILL.md +79 -0
  150. package/skills/xdrop/SKILL.md +78 -0
  151. package/skills/xget/SKILL.md +87 -0
  152. package/skills/xlsx/SKILL.md +292 -0
  153. package/src/tools/skills_download.js +217 -0
  154. package/src/utils/tools.js +2 -2
@@ -0,0 +1,165 @@
1
+ ---
2
+ name: azure-prepare
3
+ description: "Prepare Azure apps for deployment (infra Bicep/Terraform, azure.yaml, Dockerfiles). Use for create/modernize or create+deploy; not cross-cloud migration (use azure-cloud-migrate). DO NOT USE FOR: copilot-sdk apps (use azure-hosted-copilot-sdk), or Python code-only App Service deploys (use python-appservice-deploy). WHEN: \"create app\", \"build web app\", \"create API\", \"modernize application\", \"host on Azure\", \"deploy to Azure\", \"deploy to Azure using Terraform\", \"deploy to Azure App Service\", \"deploy to Azure App Service using Terraform\", \"deploy to Azure Container Apps\", \"generate Terraform\", \"generate Bicep\", \"function app\", \"timer trigger\", \"service bus trigger\", \"event-driven function\", \"managed identity\"."
4
+ license: MIT
5
+ metadata:
6
+ author: Microsoft
7
+ version: "1.2.14"
8
+ ---
9
+
10
+ # Azure Prepare
11
+
12
+ > **AUTHORITATIVE GUIDANCE — MANDATORY COMPLIANCE**
13
+ >
14
+ > This document is the **official, canonical source** for preparing applications for Azure deployment. You **MUST** follow these instructions exactly as written unless they contradict security policies given to you. When in doubt, present the conflicting instructions from this document and ask the user for explicit confirmation. Do not improvise, infer, or substitute steps.
15
+
16
+ ---
17
+
18
+ ## Triggers
19
+
20
+ Activate this skill when user wants to:
21
+ - Create a new application
22
+ - Add services or components to an existing app
23
+ - Make updates or changes to existing application
24
+ - Modernize or migrate an application
25
+ - Set up Azure infrastructure
26
+ - Deploy to Azure or host on Azure
27
+ - Create and deploy to Azure (including Terraform-based deployment requests)
28
+
29
+ ## Rules
30
+
31
+ 1. **Plan first — MANDATORY** — You MUST physically write an initial `.azure/deployment-plan.md` **skeleton in the workspace root directory** (not the session-state folder) **as your very first action** — before any code generation or execution begins. Write the skeleton immediately, then populate it progressively as Phase 1 analysis and research unfold; finalize it with all decisions at Phase 1 Step 6. This file must exist on disk throughout. azure-validate and azure-deploy depend on it and will fail without it. Do not skip or defer this step.
32
+ 2. **Get approval** — Present plan to user before execution
33
+ 3. **Research before generating** — Load references and invoke related skills
34
+ 4. **Update plan progressively** — Mark steps complete as you go
35
+ 5. **Validate before deploy** — Invoke azure-validate before azure-deploy
36
+ 6. **Confirm Azure context** — Use `ask_user` for subscription and location per [Azure Context](references/azure-context.md)
37
+ 7. ❌ **Destructive actions require `ask_user`** — [Global Rules](references/global-rules.md)
38
+ 8. ⛔ **NEVER delete user project or workspace directories** — When adding features to an existing project, MODIFY existing files. `azd init -t <template>` is for NEW projects only; do NOT run `azd init -t` in an existing workspace. Plain `azd init` (without a template argument) may be used in existing workspaces when appropriate. File deletions within a project (e.g., removing build artifacts or temp files) are permitted when appropriate, but NEVER delete the user's project or workspace directory itself. See [Global Rules](references/global-rules.md).
39
+ 9. **Scope: preparation only** — This skill generates infrastructure code and configuration files. Deployment execution (`azd up`, `azd deploy`, `terraform apply`) is handled by the **azure-deploy** skill, which provides built-in error recovery and deployment verification.
40
+ 10. ⛔ **SQL Server Bicep: NEVER generate `administratorLogin` or `administratorLoginPassword`** — not in direct properties, not in conditional/ternary branches, not anywhere in the file. Always use Entra-only authentication (`azureADOnlyAuthentication: true`) unconditionally. See [references/services/sql-database/bicep.md](references/services/sql-database/bicep.md).
41
+ 11. **Remove stale template IaC after conversion** — If you converted Bicep templates from the selected `azd` template into Terraform templates, remove the Bicep templates that were introduced by that `azd` template and are now fully replaced by Terraform equivalents. Do not remove user-authored Bicep files. Only remove those template-provided Bicep files after the Terraform IaC is complete and Terraform has been selected as the deployment path. Before handing off to azure-validate skill, keep only the IaC templates required by the chosen deployment path.
42
+
43
+ ---
44
+
45
+ ## ❌ PLAN-FIRST WORKFLOW — MANDATORY
46
+
47
+ > **YOU MUST CREATE A PLAN BEFORE DOING ANY WORK**
48
+ >
49
+ > 1. **STOP** — Do not generate any code, infrastructure, or configuration yet
50
+ > 2. **CREATE SKELETON** - Write an initial `.azure/deployment-plan.md` skeleton to disk **immediately** (before any code generation or execution begins), then populate it progressively as Phase 1 steps 1-5 reveal details; finalize it at Step 6
51
+ > 3. **CONFIRM** — Present the completed plan to the user and get approval
52
+ > 4. **EXECUTE** — Only after approval, execute the plan step by step
53
+ >
54
+ > The `.azure/deployment-plan.md` file is the **source of truth** for this workflow and for azure-validate and azure-deploy skills. Without it, those skills will fail.
55
+ >
56
+ > ⚠️ **CRITICAL: `.azure/deployment-plan.md` must be WRITTEN TO DISK inside the workspace root** (e.g., `/tmp/my-project/.azure/deployment-plan.md`), not in the session-state folder. Use a file-write tool to create this file. This is the deployment plan artifact read by azure-validate and azure-deploy. **You MUST create this file — do not proceed without it.**
57
+ > ⚠️ **CRITICAL: You must create the file with the name `.azure/deployment-plan.md` as is**. You must not use other names such as `.azure/plan.md`.
58
+ >
59
+ > ⛔ **Critical:** Skipping the plan file creation will cause azure-validate and azure-deploy to fail. This requirement has no exceptions.
60
+
61
+ ---
62
+
63
+ ## ❌ STEP 0: Specialized Technology Check — MANDATORY FIRST ACTION
64
+
65
+ **BEFORE starting Phase 1**, check if the user's prompt OR workspace codebase matches a specialized technology that has a dedicated skill with tested templates. If matched, **invoke that skill FIRST** — then resume azure-prepare for validation and deployment.
66
+
67
+ ### Check 1: Prompt keywords
68
+
69
+ | Prompt keywords | Invoke FIRST |
70
+ |----------------|-------------|
71
+ | Python + App Service (e.g., "deploy Python to App Service", "Flask on Azure App Service", "publish Python web app to App Service") | **python-appservice-deploy** |
72
+ | Lambda, AWS Lambda, migrate AWS, migrate GCP, Lambda to Functions, migrate from AWS, migrate from GCP | **azure-cloud-migrate** |
73
+ | copilot SDK, copilot app, copilot-powered, @github/copilot-sdk, CopilotClient | **azure-hosted-copilot-sdk** |
74
+ | Azure Functions, function app, serverless function, timer trigger, HTTP trigger, func new | Stay in **azure-prepare** — prefer Azure Functions templates in Step 4 |
75
+ | APIM, API Management, API gateway, deploy APIM | Stay in **azure-prepare** — see [APIM Deployment Guide](references/apim.md) |
76
+ | AI gateway, AI gateway policy, AI gateway backend, AI gateway configuration | **azure-aigateway** |
77
+ | workflow, orchestration, multi-step, pipeline, fan-out/fan-in, saga, long-running process, durable, order processing | Stay in **azure-prepare** — select **durable** recipe in Step 4. **MUST** load [durable.md](references/services/functions/durable.md), [DTS reference](references/services/durable-task-scheduler/README.md), and [DTS Bicep patterns](references/services/durable-task-scheduler/bicep.md). |
78
+
79
+ ### Check 2: Codebase markers (even if prompt is generic like "deploy to Azure")
80
+
81
+ | Codebase marker | Where | Invoke FIRST |
82
+ |----------------|-------|-------------|
83
+ | `@github/copilot-sdk` in dependencies | `package.json` | **azure-hosted-copilot-sdk** |
84
+ | `copilot-sdk` in name or dependencies | `package.json` | **azure-hosted-copilot-sdk** |
85
+ | `CopilotClient` import | `.ts`/`.js` source files | **azure-hosted-copilot-sdk** |
86
+ | `createSession` + `sendAndWait` calls | `.ts`/`.js` source files | **azure-hosted-copilot-sdk** |
87
+
88
+ > ⚠️ Check the user's **prompt text** — not just existing code. Critical for greenfield projects with no codebase to scan. See [full routing table](references/specialized-routing.md).
89
+
90
+ After the specialized skill completes, **resume azure-prepare** at Phase 1 Step 4 (Select Recipe) for remaining infrastructure, validation, and deployment.
91
+
92
+ ---
93
+
94
+ ## Phase 1: Planning (BLOCKING — Complete Before Any Execution)
95
+
96
+ Create `.azure/deployment-plan.md` by completing these steps. Do NOT generate any artifacts until the plan is approved.
97
+
98
+ | # | Action | Reference |
99
+ |---|--------|-----------|
100
+ | 0 | **❌ Check Prompt AND Codebase for Specialized Tech** — If user mentions copilot SDK, Azure Functions, etc., OR codebase contains `@github/copilot-sdk`, invoke that skill first | [specialized-routing.md](references/specialized-routing.md) |
101
+ | 1 | **Analyze Workspace** — Determine mode: NEW, MODIFY, or MODERNIZE | [analyze.md](references/analyze.md) |
102
+ | 2 | **Gather Requirements** — Classification, scale, budget | [requirements.md](references/requirements.md) |
103
+ | 3 | **Scan Codebase** — Identify components, technologies, dependencies | [scan.md](references/scan.md) |
104
+ | 4 | **Select Recipe** — Choose AZD (default), AZCLI, Bicep, or Terraform | [recipe-selection.md](references/recipe-selection.md) |
105
+ | 5 | **Plan Architecture** — Select stack + map components to Azure services | [architecture.md](references/architecture.md) |
106
+ | 6 | **Finalize Plan (MANDATORY)** - Use a file-write tool to finalize `.azure/deployment-plan.md` with all decisions from steps 1-5. Update the skeleton written at the start of Phase 1 with the complete content. The file must be fully populated before you present the plan to the user. | [plan-template.md](references/plan-template.md) |
107
+ | 7 | **Present Plan** — Show plan to user and ask for approval | `.azure/deployment-plan.md` |
108
+ | 8 | **Destructive actions require `ask_user`** | [Global Rules](references/global-rules.md) |
109
+
110
+ ---
111
+
112
+ > **❌ STOP HERE** — Do NOT proceed to Phase 2 until the user approves the plan.
113
+
114
+ ---
115
+
116
+ ## Phase 2: Execution (Only After Plan Approval)
117
+
118
+ Execute the approved plan. Update `.azure/deployment-plan.md` status after each step.
119
+
120
+ | # | Action | Reference |
121
+ |---|--------|-----------|
122
+ | 1 | **Research Components** — Load service references + invoke related skills | [research.md](references/research.md) |
123
+ | 2 | **Confirm Azure Context** — Detect and confirm subscription + location and check the resource provisioning limit | [Azure Context](references/azure-context.md) |
124
+ | 3 | **Generate Artifacts** — Create infrastructure and configuration files | [generate.md](references/generate.md) |
125
+ | 4 | **Harden Security** — Apply security best practices | [security.md](references/security.md) |
126
+ | 5 | **Functional Verification** — Verify the app works (UI + backend), locally if possible | [functional-verification.md](references/functional-verification.md) |
127
+ | 6 | **⛔ Update Plan (MANDATORY before hand-off)** — Use the `edit` tool to change the Status in `.azure/deployment-plan.md` to `Ready for Validation`. You **MUST** complete this edit **BEFORE** invoking azure-validate. Do NOT skip this step. | `.azure/deployment-plan.md` |
128
+ | 7 | **⛔ MANDATORY Hand Off** — Invoke **azure-validate** skill. Your preparation work is done. Do NOT run `azd up`, `azd deploy`, or any deployment command directly — all deployment execution is handled by azure-deploy after azure-validate completes. **PREREQUISITE:** Step 6 must be completed first — `.azure/deployment-plan.md` status must say `Ready for Validation`. | — |
129
+
130
+ ---
131
+
132
+ ## Outputs
133
+
134
+ | Artifact | Location |
135
+ |----------|----------|
136
+ | **Plan** | `.azure/deployment-plan.md` |
137
+ | Infrastructure | `./infra/` |
138
+ | AZD Config | `azure.yaml` (AZD only) |
139
+ | Dockerfiles | `src/<component>/Dockerfile` |
140
+
141
+ ---
142
+
143
+ ## SDK Quick References
144
+
145
+ - **Azure Developer CLI**: [azd](references/sdk/azd-deployment.md)
146
+ - **Azure Identity**: [Python](references/sdk/azure-identity-py.md) | [.NET](references/sdk/azure-identity-dotnet.md) | [TypeScript](references/sdk/azure-identity-ts.md) | [Java](references/sdk/azure-identity-java.md)
147
+ - **App Configuration**: [Python](references/sdk/azure-appconfiguration-py.md) | [TypeScript](references/sdk/azure-appconfiguration-ts.md) | [Java](references/sdk/azure-appconfiguration-java.md)
148
+
149
+ ---
150
+
151
+ ## Next
152
+
153
+ > **⛔ MANDATORY NEXT STEP — DO NOT SKIP**
154
+ >
155
+ > After completing preparation, you **MUST** invoke **azure-validate** before any deployment attempt. Do NOT skip validation. Do NOT go directly to azure-deploy. Do NOT run `azd up` or any deployment command directly. The workflow is:
156
+ >
157
+ > `azure-prepare` → `azure-validate` → `azure-deploy`
158
+ >
159
+ > **⛔ BEFORE invoking azure-validate**, you MUST use the `edit` tool to update `.azure/deployment-plan.md` status to `Ready for Validation`. If the plan status has not been updated, the validation will fail.
160
+ >
161
+ > This applies to ALL deployment scenarios including containerized apps, Container Apps, App Service, Azure Functions, static sites, and any other Azure target. No exceptions.
162
+ >
163
+ > Skipping validation leads to deployment failures. Be patient and follow the complete workflow for the highest success outcome.
164
+
165
+ **→ Update plan status to `Ready for Validation`, then invoke azure-validate**
@@ -0,0 +1,276 @@
1
+ ---
2
+ name: azure-quotas
3
+ description: "Check/manage Azure quotas and usage across providers. For deployment planning, capacity validation, region selection. WHEN: \"check quotas\", \"service limits\", \"current usage\", \"request quota increase\", \"quota exceeded\", \"validate capacity\", \"regional availability\", \"provisioning limits\", \"vCPU limit\", \"how many vCPUs available in my subscription\"."
4
+ license: MIT
5
+ metadata:
6
+ author: Microsoft
7
+ version: "1.1.2"
8
+ ---
9
+
10
+
11
+ # Azure Quotas - Service Limits & Capacity Management
12
+
13
+ > **AUTHORITATIVE GUIDANCE** — Follow these instructions exactly for quota management and capacity validation.
14
+
15
+ ## Overview
16
+
17
+ **What are Azure Quotas?**
18
+
19
+ Azure quotas (also called service limits) are the maximum number of resources you can deploy in a subscription. Quotas:
20
+ - Prevent accidental over-provisioning
21
+ - Ensure fair resource distribution across Azure
22
+ - Represent **available capacity** in each region
23
+ - Can be increased (adjustable quotas) or are fixed (non-adjustable)
24
+
25
+ **Key Concept:** **Quotas = Resource Availability**
26
+
27
+ If you don't have quota, you cannot deploy resources. Always check quotas when planning deployments or selecting regions.
28
+
29
+ ## When to Use This Skill
30
+
31
+ Invoke this skill when:
32
+
33
+ - **Planning a new deployment** - Validate capacity before deployment
34
+ - **Selecting an Azure region** - Compare quota availability across regions
35
+ - **Troubleshooting quota exceeded errors** - Check current usage vs limits
36
+ - **Requesting quota increases** - Submit increase requests via CLI or Portal
37
+ - **Comparing regional capacity** - Find regions with available quota
38
+ - **Validating provisioning limits** - Ensure deployment won't exceed quotas
39
+
40
+ ## Quick Reference
41
+
42
+ | **Property** | **Details** |
43
+ |--------------|-------------|
44
+ | **Primary Tool** | Azure CLI (`az quota`) - **USE THIS FIRST, ALWAYS** |
45
+ | **Extension Required** | `az extension add --name quota` (MUST install first) |
46
+ | **Key Commands** | `az quota list`, `az quota show`, `az quota usage list`, `az quota usage show` |
47
+ | **Complete CLI Reference** | [commands.md](./references/commands.md) |
48
+ | **Azure Portal** | [My quotas](https://portal.azure.com/#blade/Microsoft_Azure_Capacity/QuotaMenuBlade/myQuotas) - Use only as fallback |
49
+ | **REST API** | Microsoft.Quota provider - **Unreliable, do NOT use first** |
50
+ | **MCP Server** | `azure-quota` MCP server — **NEVER use this. It is unreliable. Always use `az quota` CLI instead.** |
51
+ | **Required Permission** | Reader (view) or Quota Request Operator (manage) |
52
+
53
+ > **⚠️ ALWAYS USE CLI FIRST**
54
+ >
55
+ > REST API and Portal can show misleading "No Limit" values — this does **not** mean unlimited capacity. It means the quota API doesn't support that resource type. Always start with `az quota` commands; fall back to [Azure service limits docs](https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits) if CLI returns `BadRequest`.
56
+ >
57
+ > For complete CLI reference, see [commands.md](./references/commands.md).
58
+
59
+ ## Quota Types
60
+
61
+ | **Type** | **Adjustability** | **Approval** | **Examples** |
62
+ |----------|-------------------|--------------|--------------|
63
+ | **Adjustable** | Can increase via Portal/CLI/API | Usually auto-approved | VM vCPUs, Public IPs, Storage accounts |
64
+ | **Non-adjustable** | Fixed limits | Cannot be changed | Subscription-wide hard limits |
65
+
66
+ **Important:** Requesting quota increases is **free**. You only pay for resources you actually use, not for quota allocation.
67
+
68
+ ## Understanding Resource Name Mapping
69
+
70
+ **⚠️ CRITICAL:** There is **NO 1:1 mapping** between ARM resource types and quota resource names.
71
+
72
+ ### Example Mappings
73
+
74
+ | ARM Resource Type | Quota Resource Name |
75
+ |-------------------|---------------------|
76
+ | `Microsoft.App/managedEnvironments` | `ManagedEnvironmentCount` |
77
+ | `Microsoft.Compute/virtualMachines` | `standardDSv3Family`, `cores`, `virtualMachines` |
78
+ | `Microsoft.Network/publicIPAddresses` | `PublicIPAddresses`, `IPv4StandardSkuPublicIpAddresses` |
79
+
80
+ ### Discovery Workflow
81
+
82
+ **Never assume the quota resource name from the ARM type.** Always use this workflow:
83
+
84
+ 1. **List all quotas** for the resource provider:
85
+ ```bash
86
+ az quota list --scope /subscriptions/<id>/providers/<ProviderNamespace>/locations/<region>
87
+ ```
88
+
89
+ 2. **Match by `localizedValue`** (human-readable description) to find the relevant quota
90
+
91
+ 3. **Use the `name` field** (not ARM resource type) in subsequent commands:
92
+ ```bash
93
+ az quota show --resource-name ManagedEnvironmentCount --scope ...
94
+ az quota usage show --resource-name ManagedEnvironmentCount --scope ...
95
+ ```
96
+
97
+ > **📖 Detailed mapping examples and workflow:** See [commands.md - Resource Name Mapping](./references/commands.md#resource-name-mapping)
98
+
99
+ ## Scripts
100
+
101
+ Pre-built scripts handle quota extension installation, usage queries, and capacity calculation. Use these instead of constructing commands manually. A single call returns limits, usage, and available capacity.
102
+
103
+ | Script | Purpose | Usage |
104
+ |--------|---------|-------|
105
+ | `scripts/check-quota.ps1` | Returns limit, usage, and available capacity for all quotas (or a single quota when resource name is provided) | Primary script for quota checks |
106
+ | `scripts/check-quota.sh` | Same as above (bash) | Primary script for quota checks |
107
+
108
+ ## Core Workflows
109
+
110
+ ### Workflow 1: Check Quota for a Specific Resource
111
+
112
+ **Scenario:** Verify quota limits and current usage before deployment
113
+
114
+ Run the script with the resource provider and region. It returns a table of **all** quotas with their limit, current usage, and available capacity in a single call:
115
+
116
+ ```powershell
117
+ .\scripts\check-quota.ps1 -ResourceProvider <provider> -Region <region>
118
+ ```
119
+ ```bash
120
+ ./scripts/check-quota.sh <provider> <region>
121
+ ```
122
+
123
+ To check a single resource, add the resource name:
124
+
125
+ ```powershell
126
+ .\scripts\check-quota.ps1 -ResourceProvider <provider> -Region <region> -ResourceName <resource-name>
127
+ ```
128
+ ```bash
129
+ ./scripts/check-quota.sh <provider> <region> <resource-name>
130
+ ```
131
+
132
+ **Example:**
133
+
134
+ ```powershell
135
+ .\scripts\check-quota.ps1 -ResourceProvider Microsoft.Compute -Region eastus
136
+ ```
137
+
138
+ **Example Output:**
139
+
140
+ | Resource | Region | Limit | Usage | Available |
141
+ |----------|--------|-------|-------|-----------|
142
+ | cores | eastus | 100 | 50 | 50 |
143
+ | standardDSv3Family | eastus | 350 | 50 | 300 |
144
+ | virtualMachines | eastus | 25000 | 5 | 24995 |
145
+ | ... | ... | ... | ... | ... |
146
+
147
+ > **📖 See also:** [az quota show](./references/commands.md#az-quota-show), [az quota usage show](./references/commands.md#az-quota-usage-show)
148
+
149
+ ### Workflow 2: Compare Quotas Across Regions
150
+
151
+ **Scenario:** Find the best region for deployment based on available capacity
152
+
153
+ ```bash
154
+ # Define candidate regions
155
+ REGIONS=("eastus" "eastus2" "westus2" "centralus")
156
+ VM_FAMILY="standardDSv3Family"
157
+ SUBSCRIPTION_ID="<subscription-id>"
158
+
159
+ # Check quota availability across regions
160
+ for region in "${REGIONS[@]}"; do
161
+ echo "=== Checking $region ==="
162
+
163
+ # Get limit
164
+ LIMIT=$(az quota show \
165
+ --resource-name $VM_FAMILY \
166
+ --scope "/subscriptions/$SUBSCRIPTION_ID/providers/Microsoft.Compute/locations/$region" \
167
+ --query "properties.limit.value" -o tsv)
168
+
169
+ # Get current usage
170
+ USAGE=$(az quota usage show \
171
+ --resource-name $VM_FAMILY \
172
+ --scope "/subscriptions/$SUBSCRIPTION_ID/providers/Microsoft.Compute/locations/$region" \
173
+ --query "properties.usages.value" -o tsv)
174
+
175
+ # Calculate available
176
+ AVAILABLE=$((LIMIT - USAGE))
177
+
178
+ echo "Region: $region | Limit: $LIMIT | Usage: $USAGE | Available: $AVAILABLE"
179
+ done
180
+ ```
181
+
182
+ > **📖 See also:** [commands.md](./references/commands.md#az-quota-show) for full scripted multi-region loop patterns
183
+
184
+ ### Workflow 3: Request Quota Increase
185
+
186
+ **Scenario:** Current quota is insufficient for deployment
187
+
188
+ ```bash
189
+ # Request increase for VM quota
190
+ az quota update \
191
+ --resource-name standardDSv3Family \
192
+ --scope /subscriptions/<subscription-id>/providers/Microsoft.Compute/locations/eastus \
193
+ --limit-object value=500 \
194
+ --resource-type dedicated
195
+
196
+ # Check request status
197
+ az quota request status list \
198
+ --scope /subscriptions/<subscription-id>/providers/Microsoft.Compute/locations/eastus
199
+ ```
200
+
201
+ **Approval Process:**
202
+ - Most adjustable quotas are auto-approved within minutes
203
+ - Some requests require manual review (hours to days)
204
+ - Non-adjustable quotas require Azure Support ticket
205
+
206
+ > **📖 See also:** [az quota update](./references/commands.md#az-quota-update), [az quota request status](./references/advanced-commands.md#az-quota-request-status-list)
207
+
208
+ ### Workflow 4: List All Quotas for Planning
209
+
210
+ **Scenario:** Understand all quotas for a resource provider in a region
211
+
212
+ ```bash
213
+ # List all compute quotas in East US (table format)
214
+ az quota list \
215
+ --scope /subscriptions/<subscription-id>/providers/Microsoft.Compute/locations/eastus \
216
+ --output table
217
+
218
+ # List all network quotas
219
+ az quota list \
220
+ --scope /subscriptions/<subscription-id>/providers/Microsoft.Network/locations/eastus \
221
+ --output table
222
+
223
+ # List all Container Apps quotas
224
+ az quota list \
225
+ --scope /subscriptions/<subscription-id>/providers/Microsoft.App/locations/eastus \
226
+ --output table
227
+ ```
228
+
229
+ > **📖 See also:** [az quota list](./references/commands.md#az-quota-list)
230
+
231
+ ## Troubleshooting
232
+
233
+ ### Common Errors
234
+
235
+ | **Error** | **Cause** | **Solution** |
236
+ |-----------|-----------|--------------|
237
+ | REST API "No Limit" | Misleading — not unlimited | Use CLI instead; see warning in Quick Reference |
238
+ | `ExtensionNotFound` | Quota extension not installed | `az extension add --name quota` |
239
+ | `BadRequest` | Resource provider not supported by quota API | Check [service limits docs](https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits) |
240
+ | `MissingRegistration` | Microsoft.Quota provider not registered | `az provider register --namespace Microsoft.Quota` |
241
+ | `QuotaExceeded` | Deployment would exceed quota | Request increase or choose different region |
242
+ | `InvalidScope` | Incorrect scope format | Use pattern: `/subscriptions/<id>/providers/<namespace>/locations/<region>` |
243
+ | CLI commands fail entirely | Auth, extension, or environment issue | Verify Azure CLI login (`az account show`), reinstall quota extension, check network. Do NOT use the `azure-quota` MCP server — it is unreliable. |
244
+
245
+ ### Unsupported Resource Providers
246
+
247
+ **Known unsupported providers:**
248
+ - ❌ Microsoft.DocumentDB (Cosmos DB) - Use Portal or [Cosmos DB limits docs](https://learn.microsoft.com/en-us/azure/cosmos-db/concepts-limits)
249
+
250
+ **Confirmed working providers:**
251
+ - ✅ Microsoft.Compute (VMs, disks, cores)
252
+ - ✅ Microsoft.Network (VNets, IPs, load balancers)
253
+ - ✅ Microsoft.App (Container Apps)
254
+ - ✅ Microsoft.Storage (storage accounts)
255
+ - ✅ Microsoft.MachineLearningServices (ML compute)
256
+
257
+ > **📖 See also:** [Troubleshooting Guide](./references/commands.md#troubleshooting)
258
+
259
+ ## Additional Resources
260
+
261
+ | Resource | Link |
262
+ |----------|------|
263
+ | **CLI Commands Reference** | [commands.md](./references/commands.md) - Complete syntax, parameters, examples |
264
+ | **Azure Quotas Overview** | [Microsoft Learn](https://learn.microsoft.com/en-us/azure/quotas/quotas-overview) |
265
+ | **Service Limits Documentation** | [Azure subscription limits](https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits) |
266
+ | **Azure Portal - My Quotas** | [Portal Link](https://portal.azure.com/#blade/Microsoft_Azure_Capacity/QuotaMenuBlade/myQuotas) |
267
+ | **Request Quota Increases** | [How to request increases](https://learn.microsoft.com/en-us/azure/quotas/quickstart-increase-quota-portal) |
268
+
269
+ ## Best Practices
270
+
271
+ 1. ✅ **Always check quotas before deployment** - Prevent quota exceeded errors
272
+ 2. ✅ **Run `az quota list` first** - Discover correct quota resource names
273
+ 3. ✅ **Compare regions** - Find regions with available capacity
274
+ 4. ✅ **Account for growth** - Request 20% buffer above immediate needs
275
+ 5. ✅ **Use table output for overview** - `--output table` for quick scanning
276
+ 6. ✅ **Monitor usage trends** - Set up alerts at 80% threshold (via Portal)
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: azure-rbac
3
+ description: "Helps users find the right Azure RBAC role for an identity with least privilege access, then generate CLI commands and Bicep code to assign it. Also provides guidance on permissions required to grant roles. WHEN: bicep for role assignment, what role should I assign, least privilege role, RBAC role for, role to read blobs, role for managed identity, custom role definition, assign role to identity, what role do I need to grant access, permissions to assign roles."
4
+ license: MIT
5
+ metadata:
6
+ author: Microsoft
7
+ version: "1.1.1"
8
+ ---
9
+ Use the 'azure__documentation' tool to find the minimal role definition that matches the desired permissions the user wants to assign to an identity. If no built-in role matches the desired permissions, use the 'azure__extension_cli_generate' tool to create a custom role definition with the desired permissions. Then use the 'azure__extension_cli_generate' tool to generate the CLI commands needed to assign that role to the identity. Finally, use the 'azure__bicepschema' and 'azure__get_azure_bestpractices' tools to provide a Bicep code snippet for adding the role assignment. If user is asking about role necessary to set access, refer to Prerequisites for Granting Roles down below:
10
+
11
+ ## Prerequisites for Granting Roles
12
+
13
+ To assign RBAC roles to identities, you need a role that includes the `Microsoft.Authorization/roleAssignments/write` permission. The most common roles with this permission are:
14
+
15
+ - **User Access Administrator** (least privilege - recommended for role assignment only)
16
+ - **Owner** (full access including role assignment)
17
+ - **Custom Role** with `Microsoft.Authorization/roleAssignments/write`