mcpField
A
azure-cloud-migrate

azure-cloud-migrate

官方
github.com/microsoft云与 DevOps1.6k517.7k 次安装今天更新
代码仓库

关于 azure-cloud-migrate

Azure Cloud Migrate 是一个用于将现有云工作负载评估并迁移到 Azure 的 skill。它按阶段执行评估与代码迁移,并将输出写入工作区下的独立目录,不修改源目录。

主要功能

  1. 01按阶段分析源代码并映射服务
  2. 02生成迁移评估报告
  3. 03转换代码与配置以适配 Azure 目标服务
  4. 04记录 migration-status.md 中的迁移进度

适用场景

  1. 01将 AWS Lambda 迁移到 Azure Functions
  2. 02将 Heroku 应用迁移到 Azure App Service
  3. 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.md
references/services/app-service/
app-engine-to-app-service.md
assessment.md
beanstalk-to-app-service.md
code-migration.md
global-rules.md
heroku-to-app-service.md
references/services/container-apps/
assessment-guide.md
cloudrun-assessment-guide.md
cloudrun-deployment-guide.md
cloudrun-to-container-apps.md
deployment-guide.md
fargate-assessment-guide.md
fargate-deployment-guide.md
fargate-to-container-apps.md
k8s-to-container-apps.md
spring-apps-to-aca.md
spring-assessment-guide.md
spring-dependency-patterns.md
spring-deployment-guide.md
references/services/functions/
assessment.md
code-migration.md
global-rules.md
lambda-to-functions.md
references/services/functions/runtimes/
csharp.md
java.md
javascript.md
powershell.md
python.md
typescript.md

详细介绍

Azure Cloud Migrate

此技能用于将现有云工作负载迁移到 Azure,包括评估和代码迁移。

规则

  1. 按顺序执行各阶段,不要跳过
  2. 在进行任何代码迁移之前生成评估报告
  3. 加载场景参考并遵循其中的规则
  4. 使用 mcp_azure_mcp_get_azure_bestpractices 和 mcp_azure_mcp_documentation MCP 工具
  5. 为目标服务使用最新受支持的运行时
  6. 破坏性操作必须使用 ask_user — functions global-rules | app-service global-rules
  7. 向用户报告进度 — 在长时间运行的操作(部署、推送镜像)期间,提供资源级状态更新,确保用户始终能获得反馈,不会一直等待 — 参见 workflow-details.md
  8. 审计应用代码中的服务发现 — Kubernetes DNS 名称(例如 http://order-service:3001)在 Container Apps 中无法解析。评估期间,扫描源代码中的 HTTP 客户端,查找硬编码的主机名和端口,并标记这些内容,以便通过环境变量注入 URL

迁移场景

来源目标参考
AWS LambdaAzure Functionslambda-to-functions.md(assessment,code-migration)
AWS Elastic BeanstalkAzure App Servicebeanstalk-to-app-service.md
HerokuAzure App Serviceheroku-to-app-service.md
Google App EngineAzure App Serviceapp-engine-to-app-service.md
AWS Fargate (ECS)Azure Container Appsfargate-to-container-apps.md(assessment,deployment)
Kubernetes (GKE/EKS/Self-hosted)Azure Container Appsk8s-to-container-apps.md
GCP Cloud RunAzure Container Appscloudrun-to-container-apps.md
Spring Boot (Azure Spring Apps/VMs)Azure Container Appsspring-apps-to-aca.md

没有匹配的场景?请使用 mcp_azure_mcp_documentation 和 mcp_azure_mcp_get_azure_bestpractices 工具。

输出目录

所有输出都写入工作区根目录下的 <workspace-root-basename>-azure/,其中 <workspace-root-basename> 是顶层工作区目录本身的名称(而不是其中的子目录)。绝不要修改源目录。

步骤

  1. 创建工作区根目录下的 <workspace-root-basename>-azure/
  2. 评估 — 分析源代码,映射服务,并使用场景专用评估指南生成报告 → functions assessment | app-service assessment
  3. 迁移 — 使用场景专用迁移指南转换代码/配置 → functions code-migration | app-service code-migration
  4. 询问用户 — “迁移已完成。要在本地测试还是部署到 Azure?”
  5. 移交给 azure-prepare,以处理基础设施、测试和部署

在 migration-status.md 中跟踪进度 — 参见 workflow-details.md。

评论

支持 Markdown