AGENT SKILL

evaluate-azure-migration-assessment

Run or refresh migration assessment for an Azure SQL Server instance and retrieve readiness and SKU results.

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

01 前言 Front Matter

name
evaluate-azure-migration-assessment
description
Run or refresh migration assessment for an Azure SQL Server instance and retrieve readiness and SKU results.
allowed-tools
Bash(az:*, curl:*) PowerShell Grep View

02 资源文件 6

03 SKILL.md 正文

Evaluate Azure Migration Assessment

When to Use

Use directly or from run-migration-assessment for Azure SQL Server instances.

Workflow

Step 1: Resolve the Resource

Collect subscription, resource group, and instance name using ARM resource identification if not in context. Initialize the API versions and instance endpoint from references/command-execution.md.

Step 2: Check Existing Assessment

Always check for an existing assessment first for a general request such as "run migration assessment".

Skip this check only when the user explicitly asks to refresh, rerun, replace, or generate a new/fresh assessment, or explicitly says to ignore existing results.

Invoke get-migration-assessment with the resolved identifiers.

  • Existing data -> render it before asking anything else. Trigger a fresh assessment only after the user explicitly confirms.
  • Enabled with no data -> continue to Step 3.
  • Explicitly disabled -> offer ARM enablement, portal enablement, or Local assessment if the host tool allows.

Step 3: Trigger and Monitor Assessment

Record the trigger request time and run the assessment trigger from references/command-execution.md. Continue in the same command by polling MigrationJobOnDemand using the configurable attempt count and interval from that reference.

  • 2xx or 409 -> continue.
  • Other 4xx/5xx -> report the error and stop.
  • InProgress -> continue polling in the same turn without asking the user.
  • Succeeded with lastExecutionTime later than the trigger request time -> continue to Step 4.
  • Succeeded with an older lastExecutionTime -> continue polling.
  • Failed -> show jobException and stop.
  • Still running after the polling window -> show the portal link and stop; the user can return later to refresh.

Step 4: Retrieve Telemetry

Run getTelemetry, capture its Azure-AsyncOperation URL, and poll it using references/command-execution.md. Save the full response to a temporary file.

  • Succeeded -> decode the response.
  • Failed or Canceled -> report the error.
  • Timeout -> show the portal link and stop.

Step 5: Confirm Fresh Results

Decode the portal's four telemetry report families:

  • Suitability / Suitability_V2.
  • SKURecommendation_AzureSQLVM / _V2.
  • SKURecommendation_AzureSQLMI / _V2.
  • SKURecommendation_AzureSQLDB / _V2.

For each family, select the report with the newer telemetry ObservedTimestampUTC. Use Suitability for readiness and blockers, and the three SKU reports for sizing and recommendation details.

Compare the selected Suitability EndedOn with the trigger request time after converting both to UTC. Also require each available selected SKU report's ObservedTimestampUTC to be later than the trigger request time. If any selected report is stale, repeat telemetry retrieval and decoding up to three times for report propagation. Use the job only for running, fresh success, and failure state.

Use the selected fresh telemetry reports as the source for readiness, blockers, target SKU, requirements, recommendation details, and available monetary cost fields.

Step 6: Render

Use the recommended target and available cost from the fresh telemetry selected in Step 5.

Use assessment output to render the combined readiness and SKU recommendation. Include the portal report link.

Notes

  • Follow the transport rules in references/command-execution.md.
  • Run its PowerShell sections in order and execute each fenced block as one terminal command.
  • The telemetry operation URL comes from getTelemetry.
  • Treat a successful telemetry LRO as report-read completion. Use MigrationJobOnDemand for assessment-job completion.
  • Use EndedOn as the generated time.
  • Use only the recommended target and user databases in output.

References

04 同仓库更多 Skills

microsoft
microsoft/sqlcon-eu-2026-demos

keynote-demo-app

Build or extend a SQLCon EU 2026 keynote demo application so it looks and behaves like the other keynote apps. Use when creating a new demo view (invoices, operations, orders), restyling an existing app to match, adding a deliberate database anti-pattern for a troubleshooting demo, or wiring an app to Azure SQL or Fabric SQL with managed identity. Triggers include "make this look like the keynote app", "build a demo view", "add the slow query demo", "match Caldova styling".

后端与接口
★ 3
microsoft
microsoft/sqlcon-eu-2026-demos

validate-post-migration-data

Validate data and schema after migrating SQL Server to Azure SQL Database, Azure SQL Managed Instance, or SQL Server on Azure VM. Use after migration, restore, BACPAC import, LRS completion, cutover validation, row-count comparison, or source-target reconciliation.

数据分析师后端与接口
★ 3
microsoft
microsoft/sqlcon-eu-2026-demos

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

Migrate SQL Server databases to Azure SQL Managed Instance with Log Replay Service (LRS) using managed identity for Blob access. Use for SQL Server to SQL MI, LRS, log replay, continuous restore, or low-downtime backup-chain migrations.

数据分析师后端与接口
★ 3
microsoft
microsoft/sqlcon-eu-2026-demos

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

Migrate one or all user databases from SQL Server to Azure SQL Database with an offline BACPAC workflow. Use for BACPAC, SqlPackage export/import, bulk database migration, or offline Azure SQL Database migration requests.

数据分析师后端与接口
★ 3
microsoft
microsoft/sqlcon-eu-2026-demos

sql-backup-restore-to-azure-sql-vm-migration

Migrate a SQL Server 2008 through SQL Server 2025 source to a SQL Server 2025 target wherever it runs, including SQL Server on Azure VM, by creating a local full backup, uploading it to Azure Blob Storage with AzCopy and the operator's Microsoft Entra identity, and restoring from URL with the target SQL Server managed identity. Sources newer than SQL Server 2025 are blocked because target restore compatibility has not been validated. Use for SQL-to-SQL, local-backup, AzCopy, managed-identity, Azure SQL VM, or SQL Server 2025 restore migrations.

数据分析师后端与接口
★ 3
microsoft
microsoft/sqlcon-eu-2026-demos

run-migration-assessment

Route generic or unresolved SQL Server assessment, readiness, compatibility, cost, and SKU recommendation requests. Use for bare server names or whenever Azure versus local/on-premises is not explicit; ask which source applies, then delegate.

后端与接口
★ 3