analyze-readiness-at-scale
Analyze migration assessment readiness at scale or show an estate-wide migration assessment dashboard for Azure Arc SQL Server instances.
- License 许可
- MIT
- 最近更新
- 2026-11-01
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- analyze-readiness-at-scale
- description
- Analyze migration assessment readiness at scale or show an estate-wide migration assessment dashboard for Azure Arc SQL Server instances.
- allowed-tools
- Bash(az:*, curl:*) PowerShell Grep View
02 资源文件 14
- 参考文档references/arg-queries.md18.3 KB
- 参考文档references/cli-api-usage.md7.8 KB
- 参考文档references/client-library-usage.md4.8 KB
- 参考文档references/core-concepts.md7.5 KB
- 参考文档references/data-management.md21.2 KB
- 参考文档references/data-transfer.md12.1 KB
- 参考文档references/gcsfuse.md21.6 KB
- 参考文档references/high-performance-storage.md11.2 KB
- 参考文档references/iac-usage.md9.4 KB
- 参考文档references/mcp-usage.md13.7 KB
- 参考文档references/readiness-output.md3.8 KB
- 参考文档references/remediation-sources.md1.6 KB
- 参考文档references/storage-intelligence.md15.3 KB
- 参考文档skill-contract.yml4.0 KB
03 SKILL.md 正文
Analyze Readiness at Scale
When to Use
Use for Azure Arc SQL Server estate assessment coverage, target readiness totals, and side-by-side instance-level readiness for SQL DB, SQL MI, and SQL VM. Version and edition are optional instance filters, not default sections.
This capability is Azure-only and reads existing data through Azure Resource Graph. Do not offer a local mode or run assessments.
Workflow
Step 1: Resolve Dashboard Scope
Use provided subscriptions. Otherwise ask for all accessible subscriptions in
the current tenant (default) or a selected subset. Follow Subscription
Selection in references/arg-queries.md. Do not ask for individual instances.
When the user explicitly refers to a current Estate view and the host provides current-view context, use its subscription scope and applicable filters. If current-view context is unavailable, use the normal subscription-selection flow above.
Step 2: Run the Queries
Read references/arg-queries.md and references/readiness-output.md completely before executing queries or rendering output. If either reference cannot be read, stop instead of improvising.
For the default report, run Query 1, Query 2, and Query 3 exactly as defined in
references/arg-queries.md; run Query 3 once for SQL DB and once for SQL MI.
Do not run Query 4 or Query 5 unless the user requests an edition or version
filter. Do not add, remove, or normalize query conditions. Render all three
fixed-output sections in the same turn.
Define the complete KQL and invoke the provided ARG adapter in the same
PowerShell tool call because terminal state does not persist. Do not use
az graph query in place of the provided ARG adapter.
The default instance grid must include only fresh assessed instances. Use its fully paginated Query 2 row count for the grid heading and pagination.
Step 3: Render the Fixed Output
Render only the fixed output defined in references/readiness-output.md, in this exact order:
- Readiness totals
- Instance × SQL DB/SQL MI/SQL VM readiness grid
- Top five recorded blockers for SQL DB and SQL MI, followed by the fixed SQL VM no-compatibility-blockers message
End with the optional version/edition filter prompt defined in the output reference, including the option to request remediation guidance for a listed top blocker. Do not render version or edition distributions by default.
Do not add costs, target SKUs, blocker-count status cells, warning actions, database coverage, or recommended next steps.
The instance table columns must be exactly:
SQL Server instance | SQL DB | SQL MI | SQL VM
The totals table columns must be exactly:
Status | SQL DB | SQL MI | SQL VM
Step 4: Drill Down
Use Query 4 to offer edition values and Query 5 to offer version values. Apply the selected value to Query 2 and rerender the assessed-instance grid. For one instance's detailed assessment, use get-migration-assessment.
When the user asks for remediation for a top blocker, read
references/remediation-sources.md completely. Map the Query 3 FeatureId to
the rule title in the Microsoft Learn catalog for SQL DB or SQL MI. Return only published description, recommendation, and supporting links. Do not invent steps or imply that remediation is automated or guaranteed.
Completion Check
- Query execution followed
references/arg-queries.mdwithout modification. - Output followed
references/readiness-output.md. - ARG pagination completed before totals were presented.
- Top blocker counts use distinct affected SQL Server instances.
- The totals use Query 1 and the readiness grid count uses Query 2.
- Every ARG request contained the intended complete KQL in the same terminal invocation; no state was reused from a previous invocation.
Error Handling
- 401/403 -> verify Azure authentication and Resource Graph read permission.
- 429 -> honor
Retry-After; report persistent throttling. - Empty Query 1 result -> say that no fresh assessment totals are visible to the current Azure identity in the selected scope.
- Empty Query 2 with a non-empty Query 1 -> say that fresh assessment totals exist, but no instances qualify for the assessed-instance grid because that grid also excludes failover-cluster nodes and VM-contained resources.
- Empty results do not prove that the subscriptions contain zero Arc SQL Server instances.
- Partial result -> identify incomplete scope; do not present it as complete.
References
references/arg-queries.mdreferences/readiness-output.mdreferences/remediation-sources.md
04 同仓库更多 Skills
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".
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.
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.
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.
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.
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.