关于 azure-cloud-migrate
Azure Cloud Migrate 是一个用于将现有云工作负载评估并迁移到 Azure 的 skill。它按阶段执行评估与代码迁移,并将输出写入工作区下的独立目录,不修改源目录。
主要功能
- 01按阶段分析源代码并映射服务
- 02生成迁移评估报告
- 03转换代码与配置以适配 Azure 目标服务
- 04记录 migration-status.md 中的迁移进度
适用场景
- 01将 AWS Lambda 迁移到 Azure Functions
- 02将 Heroku 应用迁移到 Azure App Service
- 03将 Kubernetes 工作负载迁移到 Azure Container Apps
MCP 相关
该 skill 指定使用 mcp_azure_mcp_get_azure_bestpractices 与 mcp_azure_mcp_documentation 等 Azure MCP 工具获取最佳实践和文档。
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ microsoft/ azure-skills --skill azure-cloud-migrate安装后在 Claude Code 中输入/azure-cloud-migrate确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
references/workflow-details.mdreferences/services/app-service/app-engine-to-app-service.mdassessment.mdbeanstalk-to-app-service.mdcode-migration.mdglobal-rules.mdheroku-to-app-service.mdreferences/services/container-apps/assessment-guide.mdcloudrun-assessment-guide.mdcloudrun-deployment-guide.mdcloudrun-to-container-apps.mddeployment-guide.mdfargate-assessment-guide.mdfargate-deployment-guide.mdfargate-to-container-apps.mdk8s-to-container-apps.mdspring-apps-to-aca.mdspring-assessment-guide.mdspring-dependency-patterns.mdspring-deployment-guide.mdreferences/services/functions/assessment.mdcode-migration.mdglobal-rules.mdlambda-to-functions.mdreferences/services/functions/runtimes/csharp.mdjava.mdjavascript.mdpowershell.mdpython.mdtypescript.md详细介绍
Azure Cloud Migrate
此技能用于将现有云工作负载迁移到 Azure,包括评估和代码迁移。
规则
- 按顺序执行各阶段,不要跳过
- 在进行任何代码迁移之前生成评估报告
- 加载场景参考并遵循其中的规则
- 使用
mcp_azure_mcp_get_azure_bestpractices和mcp_azure_mcp_documentationMCP 工具 - 为目标服务使用最新受支持的运行时
- 破坏性操作必须使用
ask_user— functions global-rules | app-service global-rules - 向用户报告进度 — 在长时间运行的操作(部署、推送镜像)期间,提供资源级状态更新,确保用户始终能获得反馈,不会一直等待 — 参见 workflow-details.md
- 审计应用代码中的服务发现 — Kubernetes DNS 名称(例如
http://order-service:3001)在 Container Apps 中无法解析。评估期间,扫描源代码中的 HTTP 客户端,查找硬编码的主机名和端口,并标记这些内容,以便通过环境变量注入 URL
迁移场景
| 来源 | 目标 | 参考 |
|---|---|---|
| AWS Lambda | Azure Functions | lambda-to-functions.md(assessment,code-migration) |
| AWS Elastic Beanstalk | Azure App Service | beanstalk-to-app-service.md |
| Heroku | Azure App Service | heroku-to-app-service.md |
| Google App Engine | Azure App Service | app-engine-to-app-service.md |
| AWS Fargate (ECS) | Azure Container Apps | fargate-to-container-apps.md(assessment,deployment) |
| Kubernetes (GKE/EKS/Self-hosted) | Azure Container Apps | k8s-to-container-apps.md |
| GCP Cloud Run | Azure Container Apps | cloudrun-to-container-apps.md |
| Spring Boot (Azure Spring Apps/VMs) | Azure Container Apps | spring-apps-to-aca.md |
没有匹配的场景?请使用
mcp_azure_mcp_documentation和mcp_azure_mcp_get_azure_bestpractices工具。
输出目录
所有输出都写入工作区根目录下的 <workspace-root-basename>-azure/,其中 <workspace-root-basename> 是顶层工作区目录本身的名称(而不是其中的子目录)。绝不要修改源目录。
步骤
- 创建工作区根目录下的
<workspace-root-basename>-azure/ - 评估 — 分析源代码,映射服务,并使用场景专用评估指南生成报告 → functions assessment | app-service assessment
- 迁移 — 使用场景专用迁移指南转换代码/配置 → functions code-migration | app-service code-migration
- 询问用户 — “迁移已完成。要在本地测试还是部署到 Azure?”
- 移交给 azure-prepare,以处理基础设施、测试和部署
在 migration-status.md 中跟踪进度 — 参见 workflow-details.md。
评论
支持 Markdown