SQL迁移评估数据检索
get-migration-assessment
使用必需的实例级和数据库级查询,从 Azure Resource Graph 检索现有的 SQL Server 迁移评估数据。
- License 许可
- MIT
- 最近更新
- 2026-11-01
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- get-migration-assessment
- description
- Retrieve existing SQL Server migration assessment data from Azure Resource Graph using required instance-level and database-level queries.
- allowed-tools
- Bash(az:*, curl:*) PowerShell Grep View
02 资源文件 3
- 参考文档references/arg-queries.md7.6 KB
- 参考文档references/response-schema.md10.5 KB
- 参考文档skill-contract.yml3.6 KB
03 SKILL.md 正文
Get Migration Assessment
When to Use
Use for existing Azure SQL Server assessment, readiness, blocker, SKU, and cost data. This skill does not trigger a new assessment.
Workflow
Step 1: Resolve Inputs
Use ARM resource identification. Reuse identifiers already in context. Confirm a defaulted subscription by display name and ID.
Step 2: Query Instance Data
Build and execute the instance query from references/arg-queries.md.
Step 3: Query Database Data
Build and execute the database query from references/arg-queries.md for every
returned instance.
Step 4: Interpret Results
Use references/response-schema.md. For every NotReady target, identify the
server or database blocker. If blocker details are unavailable, report a data gap.
If assessment data or assessmentUploadTime is missing, state that no migration
assessment data is available and identify likely causes: it has not been enabled
or run, results have not uploaded, the agent is not configured, or permissions are
insufficient.
Step 5: Render Results
Use assessment output to render the combined readiness and SKU recommendation.
- Multiple instances -> show a summary table, then render each instance.
For multiple instances, include aggregate readiness, cost, and common blocker insights when the returned data supports them.
Completion Check
- Both query phases completed for every instance.
- Pagination completed.
- Every
NotReadyresult has a cause or data-gap note. - Missing settings or readiness are stated explicitly.
Notes
- Use ARG as the assessment read transport.
- Execute queries through the
curladapter inreferences/arg-queries.md. - Exclude
master,model,msdb, andtempdb. - Show subscription display name with its ID.
- Follow the output template exactly.
Error Handling
- 401/403 -> verify Azure CLI login and read permission on the target scope.
- 429 -> honor
Retry-After; report persistent throttling. - Invalid resource URI -> show the expected Azure SQL Server instance resource-ID format.
- Empty result -> show the subscription display name/ID and resource group that were searched.
References
references/arg-queries.mdreferences/response-schema.md- ARM resource identification
- Assessment output
04 同仓库更多 Skills
主题演讲演示应用开发
keynote-demo-app
构建或扩展 SQLCon EU 2026 主题演讲演示应用,使其外观和行为与其他主题演讲应用一致。适用于创建新的演示视图(发票、运营、订单)、重新设计现有应用样式以保持一致、为故障排查演示添加刻意设计的数据库反模式,或通过托管标识将应用连接到 Azure SQL 或 Fabric SQL。触发词包括“让它看起来像主题演讲应用”“构建演示视图”“添加慢查询演示”“匹配 Caldova 样式”。
迁移后数据与架构校验
validate-post-migration-data
在将 SQL Server 迁移到 Azure SQL Database、Azure SQL Managed Instance 或 Azure VM 上的 SQL Server 之后,验证数据与架构。适用于迁移、还原、BACPAC 导入、LRS 完成、割接验证、行数比对或源端与目标端对账之后使用。
SQL Server 至 SQL MI 的 LRS 迁移
sql-server-to-sql-mi-lrs-migration
使用托管身份访问 Blob,通过日志重放服务(LRS)将 SQL Server 数据库迁移至 Azure SQL 托管实例。适用于 SQL Server 至 SQL MI、LRS、日志重放、持续还原或低停机时间的备份链迁移。
SQL Server 至 Azure SQL 数据库 BACPAC 迁移
sql-bacpac-to-azure-sql-db-migration
使用离线 BACPAC 工作流,将一个或全部用户数据库从 SQL Server 迁移至 Azure SQL Database。适用于 BACPAC、SqlPackage 导出/导入、批量数据库迁移或离线 Azure SQL Database 迁移请求。
SQL Server 备份还原迁移至 Azure SQL VM
sql-backup-restore-to-azure-sql-vm-migration
将 SQL Server 2008 至 SQL Server 2025 的源端迁移到任意运行位置的 SQL Server 2025 目标端(包括 Azure VM 上的 SQL Server):创建本地完整备份,使用 AzCopy 和操作员的 Microsoft Entra 身份将其上传到 Azure Blob Storage,然后使用目标 SQL Server 的托管标识从 URL 还原。比 SQL Server 2025 更新的源端会被阻止,因为目标端还原兼容性尚未验证。适用于 SQL-to-SQL、本地备份、AzCopy、托管标识、Azure SQL VM 或 SQL Server 2025 还原等迁移场景。
SQL Server 迁移评估请求路由
run-migration-assessment
用于路由泛化或未明确的 SQL Server 评估、就绪度、兼容性、成本和 SKU 推荐请求。当仅有裸服务器名称,或 Azure 与本地/本地部署(on-premises)未明确时使用该技能;先询问适用的源端类型,再进行转交。