SuperAPI AI 工具集

azure-cloud-migrate

部署与运维

查看项目

更新于 10-13 21:09

技能介绍

Azure Cloud Migrate 是一项用于评估和迁移现有云工作负载到 Azure 的技能。其主要用途是处理跨云工作负载的评估与代码迁移,覆盖评估报告生成和代码转换两个环节。

主要能力:技能按顺序阶段执行,不跳过任何阶段,且在任何代码迁移之前必须先生成评估。它要求加载对应场景的参考文档并遵循其中规则,使用 mcp_azure_mcp_get_azure_bestpractices 和 mcp_azure_mcp_documentation MCP 工具,并使用目标服务支持的最新运行时。进行破坏性操作时要求调用 ask_user。在长时间运行的操作(如部署、镜像推送)期间,需提供资源级别的状态更新。评估阶段还需审查应用代码中的服务发现:Kubernetes DNS 名称(如 http://order-service:3001)在 Container Apps 中无法解析,需扫描源码中 HTTP 客户端里硬编码的主机名/端口,并标记为通过环境变量注入 URL。

支持的迁移场景:AWS Lambda → Azure Functions(参考 lambda-to-functions.md,含评估、代码迁移);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,含评估、部署);Kubernetes (GKE/EKS/自托管) → 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> 是顶层工作区目录本身的名称(不是其子目录)。绝不修改源目录。步骤为: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 中跟踪进度。

适用场景与限制:适用于将上述来源平台的工作负载迁移到对应 Azure 目标服务。限制包括必须遵循顺序阶段、破坏性操作需询问用户、Code Migration 前必须先出评估等;关于收费、价格、效果等事实暂未提供。