本文へ移動
cccskills
無料GitHub で公開

azure-prepare

Prepare azd-based Azure projects for deployment: generates azure.yaml, infrastructure (Bicep/Terraform), and Dockerfiles for the Azure Developer CLI (azd) workflow. USE ONLY when the user explicitly wants to use azd as the deployment tool, or the project already has an azure.yaml file. DO NOT USE FOR: non-azd deployments, Python App Service code-only deploys (use python-appservice-deploy), or cross-cloud migration (use azure-cloud-migrate). WHEN: prepare app for azd, create azure.yaml, set up azd infrastructure, modernize app for Azure with azd, deploy with azd, function app, timer trigger, service bus trigger, event-driven function, managed identity, generate Bicep, generate Terraform, create and deploy to Azure.

インストール方法を見る

含まれるファイル(166)

  • SKILL.md12.6 KB
  • references/analyze.md4.0 KB
  • references/apim.md5.7 KB
  • references/architecture.md6.7 KB
  • references/aspire.md18.2 KB
  • references/auth-best-practices.md6.1 KB
  • references/azure-context.md5.7 KB
  • references/functional-verification.md3.2 KB
  • references/generate.md5.3 KB
  • references/global-rules.md2.0 KB
  • references/plan-template.md10.1 KB
  • references/recipe-selection.md3.2 KB
  • references/recipes/azcli/commands.md1.6 KB
  • references/recipes/azcli/README.md1.8 KB
  • references/recipes/azcli/scripts.md2.2 KB
  • references/recipes/azd/aspire.md8.9 KB
  • references/recipes/azd/azure-yaml.md6.7 KB
  • references/recipes/azd/docker.md2.0 KB
  • references/recipes/azd/iac-rules.md5.8 KB
  • references/recipes/azd/README.md3.8 KB
  • references/recipes/azd/terraform.md14.0 KB
  • references/recipes/bicep/patterns.md3.0 KB
  • references/recipes/bicep/README.md1.4 KB
  • references/recipes/terraform/patterns.md3.5 KB
  • references/recipes/terraform/README.md2.5 KB
  • references/region-availability.md1.7 KB
  • references/requirements.md2.5 KB
  • references/research.md8.6 KB
  • references/resources-limits-quotas.md13.0 KB
  • references/runtimes/nodejs.md5.9 KB
  • references/scan.md3.0 KB
  • references/sdk/azd-deployment.md792 B
  • references/sdk/azure-appconfiguration-java.md1.5 KB
  • references/sdk/azure-appconfiguration-py.md1.1 KB
  • references/sdk/azure-appconfiguration-ts.md1.2 KB
  • references/sdk/azure-identity-dotnet.md941 B
  • references/sdk/azure-identity-java.md1.2 KB
  • references/sdk/azure-identity-py.md1.1 KB
  • references/sdk/azure-identity-ts.md1.1 KB
  • references/security.md8.5 KB
  • references/services/aks/addons.md957 B
  • references/services/aks/bicep.md1.6 KB
  • references/services/aks/manifests.md1.4 KB
  • references/services/aks/README.md1.0 KB
  • references/services/app-insights/README.md848 B
  • references/services/app-service/bicep.md4.2 KB
  • references/services/app-service/custom-domains.md4.8 KB
  • references/services/app-service/deployment-slots.md4.5 KB
  • references/services/app-service/networking.md6.6 KB
  • references/services/app-service/README.md2.3 KB
  • references/services/app-service/scaling.md1.5 KB
  • references/services/app-service/sku-selection.md4.7 KB
  • references/services/app-service/templates/recipes/auth/README.md3.1 KB
  • references/services/app-service/templates/recipes/auth/source/dotnet.md1.3 KB
  • references/services/app-service/templates/recipes/auth/source/nodejs.md2.5 KB
  • references/services/app-service/templates/recipes/auth/source/python.md2.2 KB
  • references/services/app-service/templates/recipes/composition.md4.8 KB
  • references/services/app-service/templates/recipes/cosmos/README.md3.6 KB
  • references/services/app-service/templates/recipes/cosmos/source/dotnet.md1.3 KB
  • references/services/app-service/templates/recipes/cosmos/source/nodejs.md1.2 KB
  • references/services/app-service/templates/recipes/cosmos/source/python.md1.1 KB
  • references/services/app-service/templates/recipes/README.md2.8 KB
  • references/services/app-service/templates/recipes/redis/README.md3.3 KB
  • references/services/app-service/templates/recipes/redis/source/dotnet.md1.6 KB
  • references/services/app-service/templates/recipes/redis/source/nodejs.md2.2 KB
  • references/services/app-service/templates/recipes/redis/source/python.md2.9 KB
  • references/services/app-service/templates/recipes/sql/README.md3.5 KB
  • references/services/app-service/templates/recipes/sql/source/dotnet.md2.9 KB
  • references/services/app-service/templates/recipes/sql/source/nodejs.md3.0 KB
  • references/services/app-service/templates/recipes/sql/source/python.md4.4 KB
  • references/services/app-service/templates/selection.md2.8 KB
  • references/services/app-service/templates/web-api.md4.9 KB
  • references/services/app-service/templates/web-app.md4.9 KB
  • references/services/container-apps/bicep.md4.8 KB
  • references/services/container-apps/day2-operations.md5.1 KB
  • references/services/container-apps/environment.md1.2 KB
  • references/services/container-apps/health-probes.md1.1 KB
  • references/services/container-apps/networking.md5.1 KB
  • references/services/container-apps/README.md1.3 KB
  • references/services/container-apps/revisions.md4.9 KB
  • references/services/container-apps/scaling.md1.4 KB
  • references/services/container-apps/terraform.md6.1 KB
  • references/services/cosmos-db/bicep.md1.8 KB
  • references/services/cosmos-db/partitioning.md1.1 KB
  • references/services/cosmos-db/README.md1.4 KB
  • references/services/cosmos-db/sdk.md1.6 KB
  • references/services/durable-task-scheduler/bicep.md4.8 KB
  • references/services/durable-task-scheduler/dotnet.md6.1 KB
  • references/services/durable-task-scheduler/java.md7.7 KB
  • references/services/durable-task-scheduler/javascript.md5.6 KB
  • references/services/durable-task-scheduler/python.md6.4 KB
  • references/services/durable-task-scheduler/README.md4.9 KB
  • references/services/event-grid/bicep.md1.7 KB
  • references/services/event-grid/README.md1.0 KB
  • references/services/event-grid/subscriptions.md1.6 KB
  • references/services/foundry/README.md1.3 KB
  • references/services/foundry/region-availability.md826 B
  • references/services/functions/aspire-containerapps.md3.3 KB
  • references/services/functions/bicep.md11.9 KB
  • references/services/functions/cold-start.md6.3 KB
  • references/services/functions/durable.md1.8 KB
  • references/services/functions/hosting-plans.md6.8 KB
  • references/services/functions/README.md3.1 KB
  • references/services/functions/templates/base/eval/python.md762 B
  • references/services/functions/templates/base/eval/summary.md1.9 KB
  • references/services/functions/templates/base/eval/typescript.md1.1 KB
  • references/services/functions/templates/README.md6.5 KB
  • references/services/functions/templates/recipes/blob-eventgrid/eval/python.md1.2 KB
  • references/services/functions/templates/recipes/blob-eventgrid/eval/summary.md2.6 KB
  • references/services/functions/templates/recipes/blob-eventgrid/README.md1.6 KB
  • references/services/functions/templates/recipes/common/dotnet-entry-point.md2.0 KB
  • references/services/functions/templates/recipes/common/error-handling.md2.2 KB
  • references/services/functions/templates/recipes/common/health-check.md2.7 KB
  • references/services/functions/templates/recipes/common/nodejs-entry-point.md4.1 KB
  • references/services/functions/templates/recipes/composition.md11.1 KB
  • references/services/functions/templates/recipes/cosmosdb/eval/python.md1.2 KB
  • references/services/functions/templates/recipes/cosmosdb/eval/summary.md1.8 KB
  • references/services/functions/templates/recipes/cosmosdb/eval/typescript.md1.3 KB
  • references/services/functions/templates/recipes/cosmosdb/README.md1.5 KB
  • references/services/functions/templates/recipes/durable/eval/python.md1.2 KB
  • references/services/functions/templates/recipes/durable/eval/summary.md1.6 KB
  • references/services/functions/templates/recipes/durable/README.md1.8 KB
  • references/services/functions/templates/recipes/eventhubs/eval/python.md1.2 KB
  • references/services/functions/templates/recipes/eventhubs/eval/summary.md1.5 KB
  • references/services/functions/templates/recipes/eventhubs/README.md1.2 KB
  • references/services/functions/templates/recipes/mcp/eval/python.md1.2 KB
  • references/services/functions/templates/recipes/mcp/eval/summary.md1.5 KB
  • references/services/functions/templates/recipes/mcp/README.md1.9 KB
  • references/services/functions/templates/recipes/README.md1.1 KB
  • references/services/functions/templates/recipes/servicebus/eval/python.md1.3 KB
  • references/services/functions/templates/recipes/servicebus/eval/summary.md1.8 KB
  • references/services/functions/templates/recipes/servicebus/eval/typescript.md1.4 KB
  • references/services/functions/templates/recipes/servicebus/README.md1.3 KB
  • references/services/functions/templates/recipes/sql/eval/python.md1.2 KB
  • references/services/functions/templates/recipes/sql/eval/summary.md2.8 KB
  • references/services/functions/templates/recipes/sql/README.md1.8 KB
  • references/services/functions/templates/recipes/timer/eval/python.md1.2 KB
  • references/services/functions/templates/recipes/timer/eval/summary.md1.5 KB
  • references/services/functions/templates/recipes/timer/README.md1.5 KB
  • references/services/functions/templates/selection.md4.3 KB
  • references/services/functions/terraform.md13.3 KB
  • references/services/key-vault/bicep.md1.7 KB
  • references/services/key-vault/README.md1.3 KB
  • references/services/key-vault/sdk.md1.9 KB
  • references/services/logic-apps/bicep.md1.8 KB
  • references/services/logic-apps/README.md1.0 KB
  • references/services/logic-apps/triggers.md1.7 KB
  • references/services/service-bus/bicep.md3.7 KB
  • references/services/service-bus/patterns.md4.2 KB
  • references/services/service-bus/README.md1.4 KB
  • references/services/sql-database/auth.md4.0 KB
  • references/services/sql-database/bicep.md7.8 KB
  • references/services/sql-database/README.md1.9 KB
  • references/services/sql-database/scripts/grant-sql-access.ps13.4 KB
  • references/services/sql-database/scripts/grant-sql-access.sh3.5 KB
  • references/services/sql-database/sdk.md1.8 KB
  • references/services/static-web-apps/bicep.md1.0 KB
  • references/services/static-web-apps/deployment.md1.8 KB
  • references/services/static-web-apps/README.md1.3 KB
  • references/services/static-web-apps/region-availability.md674 B
  • references/services/static-web-apps/routing.md1.2 KB
  • references/services/static-web-apps/terraform.md3.5 KB
  • references/services/storage/access.md3.6 KB
  • references/services/storage/bicep.md1.7 KB
  • references/services/storage/README.md1.4 KB
  • references/specialized-routing.md4.3 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Azure Prepare

AUTHORITATIVE GUIDANCE — MANDATORY COMPLIANCE

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.


Triggers

Activate this skill when user wants to:

  • Create a new application
  • Add services or components to an existing app
  • Make updates or changes to existing application
  • Modernize or migrate an application
  • Set up Azure infrastructure
  • Deploy to Azure or host on Azure
  • Create and deploy to Azure (including Terraform-based deployment requests)

Rules

  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.
  2. Get approval — Present plan to user before execution
  3. Research before generating — Load references and invoke related skills
  4. Update plan progressively — Mark steps complete as you go
  5. Validate before deploy — Invoke azure-validate before azure-deploy
  6. Confirm Azure context — Use ask_user for subscription and location per Azure Context
  7. ❌ Destructive actions require ask_user — Global Rules
  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.
  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.
  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.
  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.

❌ PLAN-FIRST WORKFLOW — MANDATORY

YOU MUST CREATE A PLAN BEFORE DOING ANY WORK

  1. STOP — Do not generate any code, infrastructure, or configuration yet
  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
  3. CONFIRM — Present the completed plan to the user and get approval
  4. EXECUTE — Only after approval, execute the plan step by step

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.

⚠️ CRITICAL: .azure/deployment-plan.md must be WRITTEN TO DISK inside the workspace root (e.g., <workspace-root>/.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. ⚠️ 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.

⛔ Critical: Skipping the plan file creation will cause azure-validate and azure-deploy to fail. This requirement has no exceptions.


❌ STEP 0: Specialized Technology Check — MANDATORY FIRST ACTION

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.

Check 1: Prompt keywords

Prompt keywordsInvoke FIRST
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
Lambda, AWS Lambda, migrate AWS, migrate GCP, Lambda to Functions, migrate from AWS, migrate from GCPazure-cloud-migrate
Azure Functions, function app, serverless function, timer trigger, HTTP trigger, func newStay in azure-prepare — prefer Azure Functions templates in Step 4; for plan choice/cold starts see hosting-plans.md and cold-start.md
APIM, API Management, API gateway, deploy APIMStay in azure-prepare — see APIM Deployment Guide
AI gateway, AI gateway policy, AI gateway backend, AI gateway configurationazure-aigateway
workflow, orchestration, multi-step, pipeline, fan-out/fan-in, saga, long-running process, durable, order processingStay in azure-prepare — select durable recipe in Step 4. MUST load durable.md, DTS reference, and DTS Bicep patterns.

⚠️ Check the user's prompt text — not just existing code. Critical for greenfield projects with no codebase to scan. See full routing table.

After the specialized skill completes, resume azure-prepare at Phase 1 Step 4 (Select Recipe) for remaining infrastructure, validation, and deployment.


Phase 1: Planning (BLOCKING — Complete Before Any Execution)

Create .azure/deployment-plan.md by completing these steps. Do NOT generate any artifacts until the plan is approved.

#ActionReference
0If the prompt matches a specialized technology with a dedicated skill, invoke that skill firstspecialized-routing.md
1Analyze Workspace — Determine mode: NEW, MODIFY, or MODERNIZEanalyze.md
2Gather Requirements — Classification, scale, budgetrequirements.md
3Scan Codebase — Identify components, technologies, dependenciesscan.md
4Select Recipe — Choose AZD (default), AZCLI, Bicep, or Terraformrecipe-selection.md
5Plan Architecture — Select stack + map components to Azure servicesarchitecture.md
6Finalize 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
7Present Plan — Show plan to user and ask for approval.azure/deployment-plan.md
8Destructive actions require ask_userGlobal Rules

❌ STOP HERE — Do NOT proceed to Phase 2 until the user approves the plan.


Phase 2: Execution (Only After Plan Approval)

Execute the approved plan. Update .azure/deployment-plan.md status after each step.

#ActionReference
1Research Components — Load service references + invoke related skillsresearch.md
2Confirm Azure Context — Detect and confirm subscription + location and check the resource provisioning limitAzure Context
3Generate Artifacts — Create infrastructure and configuration filesgenerate.md
4Harden Security — Apply security best practicessecurity.md
5Functional Verification — Verify the app works (UI + backend), locally if possiblefunctional-verification.md
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
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.—

Outputs

ArtifactLocation
Plan.azure/deployment-plan.md
Infrastructure./infra/
AZD Configazure.yaml (AZD only)
Dockerfilessrc/<component>/Dockerfile

SDK Quick References


Next

⛔ MANDATORY NEXT STEP — DO NOT SKIP

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:

azure-prepare → azure-validate → azure-deploy

⛔ 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.

This applies to ALL deployment scenarios including containerized apps, Container Apps, App Service, Azure Functions, static sites, and any other Azure target. No exceptions.

Skipping validation leads to deployment failures. Be patient and follow the complete workflow for the highest success outcome.

→ Update plan status to Ready for Validation, then invoke azure-validate

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Build Azure AI Foundry agents using the Microsoft Agent Framework Python SDK (agent-framework-azure-ai). Use when creating persistent agents with AzureAIAgentsProvider, using hosted tools (code interpreter, file search, web search), integrating MCP servers, managing conversation threads, or implementing streaming responses. Covers function tools, structured outputs, and multi-tool agents.

日本語の概要は準備中です。原文の説明を表示しています。

microsoft/skills3,1012026年10月10日 更新

Set up AI Runway on AKS — from bare cluster to running model. Covers cluster verification, controller install, GPU assessment, provider setup, and first deployment. WHEN: "setup AI Runway", "onboard AKS cluster", "install AI Runway", "airunway setup", "deploy model to AKS", "GPU inference on AKS", "KAITO setup on AKS", "run LLM on AKS", "vLLM on AKS", "set up model serving on AKS", "AI Runway controller".

日本語の概要は準備中です。原文の説明を表示しています。

microsoft/skills3,1012026年10月10日 更新

Diagnose Day-2 AKS GPU and KAITO incidents using profile-aware, read-only evidence. WHEN: 'Insufficient nvidia.com/gpu', GPU pod Pending, model-load OOM, DCGM/VRAM, KAITO Workspace not ready, or GPU autoscaling. DO NOT USE FOR: setup (airunway-aks-setup), non-GPU incidents (aks-troubleshooting), standalone VM quota (azure-quotas), or generic cost (cost-analysis or cost-optimization from the optional azure-cost plugin).

日本語の概要は準備中です。原文の説明を表示しています。

microsoft/skills3,1012026年10月10日 更新

Lookup documented AKS fixes only when the prompt includes an exact catalog signature and all of its qualifiers: VMCannotFitEphemeralOSDisk; NodePoolMcVersionIncompatible; 'NodeImageVersion is not accepted'; AKS SkuNotAvailable with size, location, and zone; ZonalAllocationFailed with insufficient zone capacity; OverconstrainedAllocationRequest with listed constraints; nested AKS vmssCSE/CSE VMExtensionError_OutboundConnFail, VMExtensionError_K8SAPIServerConnFail, or VMExtensionError_K8SAPIServerDNSLookupFail; or AllocationFailed with the full cataloged internal-error or insufficient-regional-capacity message. Never use for quota errors, code-only or bare wrappers, generic symptoms, incomplete signatures, or failures outside AKS; use aks-troubleshooting or azure-diagnostics.

日本語の概要は準備中です。原文の説明を表示しています。

microsoft/skills3,1012026年10月10日 更新

Collects bounded packet captures from AKS nodes and Azure network configuration for wire-level evidence. WHEN: "capture packets on an AKS node", "take a pcap", "run tcpdump on AKS", "prove where packets drop". Use for explicit packet-capture intent after read-only diagnostics, not general AKS connectivity or ingress troubleshooting.

日本語の概要は準備中です。原文の説明を表示しています。

microsoft/skills3,1012026年10月10日 更新

Debug live Azure Kubernetes Service (AKS) incidents with a read-only, evidence-first investigation. WHEN: pod crashes or Pending, CrashLoopBackOff, OOMKilled, ImagePullBackOff, node NotReady, DNS or ingress failure, connectivity timeout, network policy, SNAT exhaustion, node-pool scaling blocked by QuotaExceeded or InsufficientVCPUQuota, upgrade stuck, spot or zone disruption, a bare VMExtensionProvisioningError or AllocationFailed wrapper, an uncataloged capacity symptom, or 'investigate my AKS cluster'. DO NOT USE FOR: packet capture (use aks-network-capture); GPU or model-serving issues (use aks-gpu-inference); cluster creation or provisioning (use azure-kubernetes); cost (use cost-analysis from the optional azure-cost plugin); pod rightsizing (use azure-kubernetes); a fully qualified documented AKS signature with every required nested qualifier (use aks-known-issues); standalone failures on non-AKS Azure resources (use azure-diagnostics). Unqualified errors and open-ended incidents stay here only for AKS.

日本語の概要は準備中です。原文の説明を表示しています。

microsoft/skills3,1012026年10月10日 更新

microsoft のスキルをすべて見る

このスキルの問題を報告する