AGENT SKILL

Azure SQL SKU 规格评估推荐

recommend-sku-sizing

仅在明确确认源端为本地/本地部署(on-premises)后,才收集性能数据并计算 Azure SQL SKU 推荐。切勿用于泛泛的 SKU 请求或仅有裸服务器名称的场景;未明确的请求应通过 run-migration-assessment 进行路由。

License 许可
MIT
最近更新
2026-11-01
Stars
★ 3
Forks
0

01 前言 Front Matter

name
recommend-sku-sizing
description
Collect performance data and calculate Azure SQL SKU recommendations only after the source is explicitly confirmed local/on-premises. Never use for a generic SKU request or bare server name; route unresolved requests through run-migration-assessment.
allowed-tools
PowerShell Grep View

02 资源文件 2

03 SKILL.md 正文

Recommend SKU Sizing

When to Use

Use directly or from run-migration-assessment when a local/on-premises server needs performance-based Azure SQL sizing. Invoke after the server is confirmed Local. Route Azure identifiers and unresolved servers through run-migration-assessment.

Workflow

Step 0: Enforce Source Routing

Proceed only when the current conversation explicitly identifies the source as Local or on-premises, or already provides local evidence such as an IP address, connection string, or config file. The words SQL Server, server, or SKU recommendation alone do not establish that the source is Local.

If the source is not explicit, do not ask for an instance name, output folder, credentials, collection duration, or target platform. Invoke run-migration-assessment so it can ask whether the source is Azure or Local.

Step 1: Check the Host and Confirm Inputs

Apply OS requirements, then assessment prerequisites, before collecting local inputs. Confirm the output folder with selectable Default (%LOCALAPPDATA%\Microsoft\SqlAssessment) and Custom choices. Wait for the answer and use the selected path.

Step 2: Check Existing Results

Run the host-specific lookup from references/command-execution.md.

  • Existing result -> render it with its generation time and refresh only if explicitly requested.
  • No result -> explain that performance collection is required and ask whether to continue.

SKU filenames are not instance-specific. Use a per-instance output folder to associate results with the selected server.

Step 3: Collect Parameters

Use local server connection for missing connection details. Ask for collection duration with selectable 2-hour and 24-hour (Recommended) options, plus "I don't want a SKU recommendation". Allow a custom duration. Stop if the user declines. Convert the duration to seconds. Use the parameter-alignment rule in references/command-execution.md. Do not start a collection that cannot complete one persistence cycle.

Step 4: Start Collection

Run the exact detached collection and SKU command from references/command-execution.md. Show the collection-started output from assessment output.

Step 5: Check and Render Results

When requested, run the completion check from references/command-execution.md.

  • Complete -> read the newest SKU JSON report when available. Extract only the recommended target's compute and storage configuration and populate those fields in the Skill Response Template in assessment output. Include readiness if readiness results are already available in the current conversation context. Otherwise omit the Migration Readiness section and show the SKU data only.
  • Running -> show collection status.
  • Stopped without time-series data -> report failure and show the log path.

Notes

  • Confirm the output folder before checking files.
  • Always ask for collection duration.
  • Reuse existing performance data when the user returns.
  • Static common counter files alone do not mean collection completed.

Error Handling

  • Collection stops -> check connectivity and restart with the same folder.
  • Output permission denied -> confirm write access or select another folder.
  • Tool or extension unavailable -> follow assessment prerequisites.

References

04 同仓库更多 Skills

microsoft
microsoft/sqlcon-eu-2026-demos

主题演讲演示应用开发

keynote-demo-app

构建或扩展 SQLCon EU 2026 主题演讲演示应用,使其外观和行为与其他主题演讲应用一致。适用于创建新的演示视图(发票、运营、订单)、重新设计现有应用样式以保持一致、为故障排查演示添加刻意设计的数据库反模式,或通过托管标识将应用连接到 Azure SQL 或 Fabric SQL。触发词包括“让它看起来像主题演讲应用”“构建演示视图”“添加慢查询演示”“匹配 Caldova 样式”。

软件开发工程师示例与演示技能
★ 3
microsoft
microsoft/sqlcon-eu-2026-demos

迁移后数据与架构校验

validate-post-migration-data

在将 SQL Server 迁移到 Azure SQL Database、Azure SQL Managed Instance 或 Azure VM 上的 SQL Server 之后,验证数据与架构。适用于迁移、还原、BACPAC 导入、LRS 完成、割接验证、行数比对或源端与目标端对账之后使用。

数据库管理员数据平台迁移
★ 3
microsoft
microsoft/sqlcon-eu-2026-demos

SQL Server 至 SQL MI 的 LRS 迁移

sql-server-to-sql-mi-lrs-migration

使用托管身份访问 Blob,通过日志重放服务(LRS)将 SQL Server 数据库迁移至 Azure SQL 托管实例。适用于 SQL Server 至 SQL MI、LRS、日志重放、持续还原或低停机时间的备份链迁移。

数据库管理员数据平台迁移
★ 3
microsoft
microsoft/sqlcon-eu-2026-demos

SQL Server 至 Azure SQL 数据库 BACPAC 迁移

sql-bacpac-to-azure-sql-db-migration

使用离线 BACPAC 工作流,将一个或全部用户数据库从 SQL Server 迁移至 Azure SQL Database。适用于 BACPAC、SqlPackage 导出/导入、批量数据库迁移或离线 Azure SQL Database 迁移请求。

数据库管理员数据平台迁移
★ 3
microsoft
microsoft/sqlcon-eu-2026-demos

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 还原等迁移场景。

数据库管理员数据平台迁移
★ 3
microsoft
microsoft/sqlcon-eu-2026-demos

SQL Server 迁移评估请求路由

run-migration-assessment

用于路由泛化或未明确的 SQL Server 评估、就绪度、兼容性、成本和 SKU 推荐请求。当仅有裸服务器名称,或 Azure 与本地/本地部署(on-premises)未明确时使用该技能;先询问适用的源端类型,再进行转交。

云架构师云迁移与工作负载移植
★ 3