执行已准备好的 Azure 应用部署,并自动处理常见发布错误恢复。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "azure-deploy" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/GitHub-Copilot-for-Azure/main/plugin/skills/azure-deploy/SKILL.md 2. 保存为 ~/.claude/skills/azure-deploy/SKILL.md 3. 装好后重载技能,告诉我可以用了
请基于当前项目中已有的 .azure/deployment-plan.md 和基础设施配置,执行 Azure 部署流程。优先运行 azd up;如果环境已存在则改用 azd deploy,并在出错时自动重试或给出修复建议。
完成 Azure 部署执行,返回部署结果、关键日志、失败原因与恢复建议。
当前应用已经准备完成,请不要创建新资源方案。直接根据现有 Terraform 配置执行 terraform apply,将基础设施部署到 Azure,并在出现权限、状态锁或配置错误时进行恢复处理。
执行 Terraform 发布并汇总变更结果、资源状态及错误修复建议。
这个项目已经通过验证,请把它发布到 Azure 生产环境。使用现有部署计划和基础设施文件执行正式部署,不要创建新应用;如果 az deployment 或 bicep 部署失败,请继续做错误恢复。
输出生产部署结果、已发布资源列表、异常处理过程和后续检查建议。
AUTHORITATIVE GUIDANCE — MANDATORY COMPLIANCE
PREREQUISITE: The azure-validate skill MUST be invoked and completed with status
ValidatedBEFORE executing this skill.
⛔ STOP — PREREQUISITE CHECK REQUIRED Before proceeding, verify BOTH prerequisites are met:
- azure-prepare was invoked and completed →
.azure/deployment-plan.mdexists- azure-validate was invoked and passed → plan status =
ValidatedIf EITHER is missing, STOP IMMEDIATELY:
- No plan? → Invoke azure-prepare skill first
- Status not
Validated? → Invoke azure-validate skill first⛔ DO NOT MANUALLY UPDATE THE PLAN STATUS
You are FORBIDDEN from changing the plan status to
Validatedyourself. Only the azure-validate skill is authorized to set this status after running actual validation checks. If you update the status without running validation, deployments will fail.
DO NOT ASSUME the app is ready. DO NOT SKIP validation to save time. Skipping steps causes deployment failures. The complete workflow ensures success:
azure-prepare → azure-validate → azure-deploy
Activate this skill when user wants to:
azd up, azd deploy, or az deployment on a prepared projectScope: This skill executes deployments. It does not create applications, generate infrastructure code, or scaffold projects. For those tasks, use azure-prepare.
APIM / AI Gateway: Use this skill to deploy applications whose APIM/AI gateway infrastructure was already created during azure-prepare. For creating or changing APIM resources, see APIM deployment guide. For AI governance policies, invoke azure-aigateway skill.
.azure/deployment-plan.md must exist with status Validatedask_user — global-rulesazd up, azd deploy, terraform apply, and az deployment commands. These commands are run through this skill's error recovery and verification pipeline.| # | Action | Reference |
|---|---|---|
| 1 | Check Plan — Read .azure/deployment-plan.md, verify status = Validated AND Validation Proof section is populated | .azure/deployment-plan.md |
| 2 | Pre-Deploy Checklist — MUST complete ALL steps | Pre-Deploy Checklist |
| 3 | Load Recipe — Based on recipe.type in .azure/deployment-plan.md | recipes/README.md |
| 4 | RBAC Health Check — For Container Apps + ACR with managed identity: run azd provision --no-prompt, then verify AcrPull role has propagated before proceeding (see checklist) | Pre-Deploy Checklist — Container Apps RBAC |
| 5 | Execute Deploy — Follow recipe steps | Recipe README |
| 6 | Post-Deploy — Configure SQL managed identity and apply EF migrations if applicable | Post-Deployment |
| 7 | Handle Errors — See recipe's errors.md | — |
| 8 | Verify Success — Confirm deployment completed and endpoints are accessible | Verification |
…
分析并精简 Markdown 内容,降低 token 消耗并提升 AI 处理效率。
帮助开发者在 Azure 上构建、部署并修改 GitHub Copilot SDK 应用。