AGENT SKILL

应用 Azure 上云全流程编排

azure-app-onboard

端到端编排器:从业务想法、应用想法或现有应用,到运行中的 Azure 部署,包含成本估算和部署前审批。分析你的应用、自动检测合适的 Azure 服务、搭建基础设施代码脚手架并完成部署——针对你的应用量身定制,而非套用模板。支持将现有应用迁移到 Azure,无需重写或只需极少改动。适用场景:"将我的应用带上 Azure"、"规划我的应用"、"运行成本"、"我的代码是否准备好部署"、"将我的应用部署到云端"、"部署我所有的服务"、"我需要哪些 Azure 服务"、"规划我的 Azure 部署"、"将我的新应用部署到 Azure"、"一键部署"、"我有一个应用,想把它放到 Azure 上"、"将我的应用迁移到 Azure"、"帮我入门"、"构建一个应用"、"尚无代码"、"示例起始项目"。不适用于:使用 azd 进行部署(使用 azure-deploy)、优化现有成本(使用 cost-optimization)、仅做代码就绪检查(使用 azure-app-onboard-prereq)。

License 许可
MIT
最近更新
2026-11-14
Stars
★ 1.6k
Forks
267

01 前言 Front Matter

name
azure-app-onboard
license
MIT
metadata
{ "author": "Microsoft", "version": "1.2.9" }
description
End-to-end orchestrator: from a business idea, app idea, or existing app to running Azure deployment with cost estimates and pre-deploy approval. Analyzes your app, auto-detects the right Azure services, scaffolds infrastructure code, and deploys — tailored to your app, not a template. Handles moving existing apps to Azure without rewriting or with minimal changes. WHEN: bring your app to Azure, plan my app, cost to run, is my code ready to deploy, deploy my app to the cloud, deploy all my services, what Azure services do I need, plan my Azure deployment, deploy my new app to Azure, one-click deploy, I have an app and want it on Azure, migrate my app to Azure, help me get started, build an app, no code yet, starter project. DO NOT USE FOR: use azd for deployment(use azure-deploy), optimizing existing costs (use cost-optimization), code readiness checks only (use azure-app-onboard-prereq).

02 资源文件 67

03 SKILL.md 正文

Azure App Onboard

⛔ Every repo goes through the full pipeline (Steps 1–10). No exceptions. Do not skip steps, refuse, or short-circuit based on what you recognize. Follow the Workflow table below sequentially — read each step's references before acting.

Quick Reference

Property Value
Best for Developers who know what to build but not which Azure services to use
Inputs Business idea or existing codebase, budget/scale preferences (optional)
Outputs Architecture plan, cost estimate, IaC files, deployed Azure resources
Phases Discover → Architect → Scaffold → Deploy (self-contained, no external skill calls)

When to Use This Skill

  • Deploy existing code without knowing which Azure services to use
  • Check if your existing code is ready to deploy to Azure
  • Move an existing app to Azure without rewriting or with minimal changes
  • Get cost estimates before committing to infrastructure
  • Understand architecture decisions and rejected alternatives
  • Get answers to Azure architecture or service selection questions (e.g., "What database should I use?")
  • Get guided Azure onboarding without prior experience

When NOT to Use

Scenario Use Instead
Run azd up or execute an existing deployment azure-deploy
Optimize existing Azure spend cost-optimization from the optional azure-cost plugin
Generate Bicep/Terraform for a known architecture azure-prepare
Validate infrastructure or run preflight checks azure-validate
Troubleshoot a running Azure deployment azure-diagnostics
Deploy to or manage AKS/Kubernetes directly azure-kubernetes
Look up or list existing Azure resources azure-resource-lookup

If cost-optimization is unavailable, explain that it is provided by the optional azure-cost plugin and direct the user to their client's supported plugin installation flow; do not imply the handoff completed.

Pipeline Rules

⛔ You MUST read references/pipeline-rules.md at the start of every AppOnboard session. It contains approval gates, phase lifecycle, session artifacts, deploy-as-is, and security baseline rules.

Workflow

⛔ Deploy recovery: After deploy gate approval OR before any az deployment/az webapp deploy/az acr build — if you haven't read deploy/PHASE.md, read .copilot-azure/sessions/{id}/deploy-checklist.md first, then deploy/PHASE.md. ⛔ NEVER invoke {"skill": "azure-deploy"} — that is a DIFFERENT skill for a DIFFERENT workflow.

⛔ Post-scaffold transition (MANDATORY): Immediately after scaffold-manifest.json is written, YOUR NEXT ACTION MUST be Step 8 (Deploy Approval Gate) — NOT a summary report, NOT a "here are the generated files" message, NOT a completion signal. Confirm context.json has completedPhases: [...,"scaffold"] + currentPhase: "deploy" (update it yourself if the scaffold subagent didn't). Re-read approval-gates.md § Deploy Gate if evicted from context (scaffold reference loading is heavy), then present the exact prompt: "? Ready to deploy? (Yes / Run manually / Edit plan / Cancel)". This gate is the LAST content in your response — wait for the user's reply.

# Step Action Reference
1 Session check + Azure login Create/resume session, verify Azure CLI auth, resolve subscription + user identity ⛔ You MUST read session-protocol.md
2 Scope triage Check azd markers, triage question. Empty workspace or code-only (no infra) → Step 3 directly. ⛔ Read intent-gathering.md § Scope Triage
3 Prereq scan ⛔ Skip if completedPhases includes "prereq". Otherwise: invoke {"skill": "azure-app-onboard-prereq"}. Write prereq-output.json, update context.json. Halt if: overallHealth: "blocked" OR routeToSkill set.
4 Gather intent Present prereq results, confirm stack + Azure services, ask remaining questions. ⛔ Read intent-gathering.md § After Prereq Returns
5 Plan architecture Write prepare-plan.json. ⛔ You MUST read prepare/PHASE.md
6 Scaffold approval gate Display plan for user approval BEFORE generating any files. ⛔ Read approval-gates.md § Scaffold Gate
7 Scaffold Generate IaC, self-review. Write scaffold-manifest.json. Update context.json. ⛔ You MUST read scaffold/PHASE.md
8 Deploy approval gate Display validation summary. ⛔ After approval: FIRST read deploy-checklist.md → deploy/PHASE.md. NEVER {"skill": "azure-deploy"}. ⛔ Read approval-gates.md § Deploy Gate
9 Deploy Execute IaC, health-check. Write deploy-result.json. ⛔ You MUST read deploy/PHASE.md
10 Handoff Surface deployment identity, cleanup commands, next steps. ⛔ You MUST read handoff-protocol.md

Error Handling

Error Remediation
Phase fails Halt, report phase + error. User decides: retry, skip, abort.
MCP server unavailable Skip affected checks, add disclaimer to costEstimate.assumptions[] and every approval gate.
Missing RBAC Report required role + az role assignment command.

Shared references: MCP tools (cross-phase tool parameters) | IaC resources (Azure resource docs for troubleshooting)

04 同仓库更多 Skills

microsoft
microsoft/azure-skills

azure-advisor-cost-optimization

Analyze Azure Advisor Cost/IdleResources findings and prevalidate deletion safety, including Service Groups. WHEN: "find unused Azure resources", "what resources am I paying for but no longer using", "idle-resource savings", "historical idle-resource savings", "are these idle resources safe to delete". Generic Cost, other subcategories, and cross-category requests use azure-advisor.

★ 1.6k
microsoft
microsoft/azure-skills

Python应用Azure App Service部署

python-appservice-deploy

将Python(Flask/Django/FastAPI)代码部署到Azure App Service Linux。适用场景:"Flask App Service"、"Django App Service"、"FastAPI App Service"、"将Python部署到App Service"。不适用于:Container Apps、Functions、非Python、Terraform/Bicep/IaC、完整基础设施——请使用 azure-prepare。

软件开发工程师部署与发布管理
★ 1.6k
microsoft
microsoft/azure-skills

Azure OpenAI模型最佳区域部署

preset

通过分析所有可用区域的容量,智能地将Azure OpenAI模型部署到最佳区域。自动先检查当前区域,并在必要时显示备选方案。适用于:快速部署、最佳区域、最优区域、自动区域选择、快速设置、多区域容量检查、高可用部署、部署到最佳位置。不适用于:自定义SKU选择(请使用 customize)、特定版本选择(请使用 customize)、自定义容量配置(请使用 customize)、PTU部署(请使用 customize)。

AI 工程师AI 平台资源管理
★ 1.6k
microsoft
microsoft/azure-skills

Azure OpenAI模型自定义部署

customize

Azure OpenAI模型的交互式引导部署流程,提供完全自定义控制。逐步选择模型版本、SKU(GlobalStandard/Standard/ProvisionedManaged)、容量、RAI策略(内容过滤器)以及高级选项(动态配额、优先处理、溢出)。适用于:自定义部署、自定义模型部署、选择版本、选择SKU、设置容量、配置内容过滤器、RAI策略、部署选项、详细部署、高级部署、PTU部署、预置吞吐量。不适用于:快速部署到最佳区域(请使用 preset)。

AI 工程师AI 平台资源管理
★ 1.6k
microsoft
microsoft/azure-skills

Azure OpenAI容量查询

capacity

发现跨区域和项目的可用 Azure OpenAI 模型容量。分析配额限制、比较可用性,并根据容量需求推荐最佳部署位置。USE FOR:查找容量、检查配额、可以在哪里部署、容量发现、容量最佳区域、多项目容量搜索、配额分析、模型可用性、区域比较、检查 TPM 可用性。DO NOT USE FOR:实际部署(发现后转交给预设或自定义技能)、配额提升请求(引导用户前往 Azure 门户)、列出现有部署。

AI 工程师AI 平台资源管理
★ 1.6k
microsoft
microsoft/azure-skills

Azure OpenAI模型部署

deploy-model

统一的 Azure OpenAI 模型部署技能,具备基于意图的智能路由。处理快速预设部署、完全自定义部署(版本/SKU/容量/RAI 策略)以及跨区域和项目的容量发现。USE FOR:部署模型、部署 gpt、创建部署、模型部署、部署 openai 模型、设置模型、配置模型、查找容量、检查模型可用性、可以在哪里部署、模型最佳区域、容量分析。DO NOT USE FOR:列出现有部署(使用 foundry_models_deployments_list MCP 工具)、删除部署、创建智能体(使用 agent/create)、创建项目(使用 project/create)。

AI 工程师AI 平台资源管理
★ 1.6k