agentleFS
MicrosoftKnown publishermicrosoft/sqlcon-eu-2026-demos/corenote/migration/skills/evaluate-azure-migration-assessment/SKILL.md

evaluate-azure-migration-assessment

Skill0 starsChanged 53 days agoMITView on GitHub

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

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 6 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

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

    line 11
  2. Distinctive:

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

    line 25
  3. Very specific:

    Run getTelemetry, capture its Azure-AsyncOperation URL, and poll it using references/command-execution.md.

    line 58
  4. Distinctive:

    Use the selected fresh telemetry reports as the source for readiness, blockers, target SKU, requirements, recommendation details, and …

    line 85
  5. Distinctive:

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

    line 91
  6. Distinctive:

    Use assessment output to render the combined readiness and SKU recommendation.

    line 94
  7. Very specific:

    Follow the transport rules in references/command-execution.md.

    line 99
  8. Distinctive:

    Run its PowerShell sections in order and execute each fenced block as one terminal command.

    line 100
  9. Very specific:

    Treat a successful telemetry LRO as report-read completion.

    line 103
  10. Very specific:

    Use EndedOn as the generated time.

    line 105
  11. Distinctive:

    Use only the recommended target and user databases in output.

    line 106

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
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

  • references/command-execution.md
  • ARM resource identification
  • Assessment output

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.