azure-app-onboard-prereq
π―SkillChecks whether your app's code is ready to deploy to Azure before you start setting up cloud resources. It reports what passes, what needs attention, and what blocks deployment, without installing packages or running builds.
Installation
npx skills add microsoft/azure-skills --skill azure-app-onboard-prereqRun it in a terminal; it asks which AI coding tools to install it for (Claude Code, Codex, Cursor and more).
Uses skills.sh Β· Node.js 22.20+
After installing
Ask for related work and the agent uses it on its own, or call it yourself.
/azure-app-onboard-prereqInstall by hand
Copy the whole skill folder from GitHub to the place below. Copying only SKILL.md can leave out files the skill uses.
Open the skill folder β- This project
.claude/skills/azure-app-onboard-prereq/ - All projects
~/.claude/skills/azure-app-onboard-prereq/
These paths are for Claude Code. For other tools, the command above puts it in the right place.
What this skill does
Overview
This skill reviews your repository before you plan Azure infrastructure, meaning the cloud resources your app will run on. It checks the app's build setup, whether the app is complete, its dependencies (the outside packages it uses), and whether Azure supports your frameworks. It looks at your files without installing or building anything and gives each part of the app a PASS, WARN, or FAIL result, saved to prereq-output.json.
Key Features
- Get a PASS, WARN, or FAIL result for each part of your app, grouped by how serious each problem is.
- Find deployment blockers, such as unsupported frameworks or incompatible dependencies, without installing packages or running builds and tests.
- See a warning when your code uses AWS, Google Cloud, or Firebase libraries, with an option to switch to the
azure-cloud-migrateskill. - Fix problems with the skill's help, and it asks you before it changes code or runs any build command.
- Run it alone, or as the first of four steps in the
azure-app-onboardworkflow.
Who is this for?
Use it when you have an existing app and want to know if it can run on Azure before you write any deployment setup. It also helps when a deployment is blocked and you need a clear list of what to change first.
Summarized by AI from this skill's SKILL.md. Suggest a better one
SKILL.md
View on GitHub βAssess whether source code is ready to deploy to Azure β the check BEFORE infrastructure work. Evaluates build health, app completeness, dependencies and local services, stack compatibility, and deployment feasibility. Answers questions about what your app needs before it can be deployed β frameworks, dependencies, and configuration. Checks whether dependencies are compatible and identifies deployment blockers and unsupported frameworks. WHEN: \"evaluate my repo\", \"is my app ready to deploy\", \"what does my app need to deploy\", \"what do I need before deploying\", \"does my app need\", \"can I ship this to Azure\", \"scan my repo for issues\", \"is this app deployable\", \"check if my app is ready for Azure\", \"do I need a Dockerfile\", \"what's blocking my deployment\", \"are there any blockers\", \"are my dependencies compatible\", \"does Azure support my framework\", \"what needs to change before deploying\", \"check my app configuration\".
Azure App Onboard Prereq β Repository Evaluation
Evaluate a user's repository for build health, app completeness, and Azure deployment feasibility β before infrastructure planning. Produces per-component verdicts (PASS/WARN/FAIL) consumed by downstream phases.
Orchestrator relationship: Called by
azure-app-onboardat Step 3, or standalone for code readiness checks. When called by orchestrator, return control toazure-app-onboardafter writing artifacts β do NOT invoke downstream phases directly.
Phase 1 of 4 in AppOnboard pipeline. Session: .copilot-azure/sessions/{session-id}/. Reads context.json. Writes components[], repo{}, detectedInfra[]. Produces prereq-output.json. Schema: prereq-schemas.ts β PrereqOutput, BuildRequirements. Direct entry supported.
When NOT to Use
| Signal | Redirect |
|---|---|
| Validate infrastructure (Bicep/TF/azure.yaml) | azure-validate |
| Generate IaC | azure-prepare |
| End-to-end idea-to-production | azure-app-onboard |
Run azd up or deploy | azure-deploy |
Rules
β ABSOLUTE PROHIBITION β
npm install,npm test,npx jest,pytest, and ALL install/build/test commands are NEVER allowed. Under NO circumstances may you runnpm install,npm test,npx jest,pip install,pytest,dotnet build,dotnet restore,dotnet test,go mod download,cargo build, or ANY package-manager install, build, or test command during the prereq phase. Do NOT run test suites to verify code β check for test config files statically instead. The prereq phase is read-only evaluation + static-only verification. ONLY exception β two sanctioned contexts, both consent-gated: (a) code the agent modified during migration/remediation (see remediation-protocol.md step 6), or (b) code the agent wrote from scratch on the zero-code path (see zero-code-path.md). In either case, install/build/test runs ONLY via the user-confirmed build-validation gate (build-check.md Step 3), after the user answers that specific per-command consent prompt. General prior consent never counts.
- β Full pipeline (Steps 1β8), no exceptions. All prompts β Step 1 directly. Answer specific questions AS PART OF findings (Step 5), not before.
- β No sub-agents for evaluation. 3-axis evaluation is inline. Exception: zero-code-path scaffolding (Step 2).
- Code/destructive modifications require
ask_user. Max 3 questions before results. Direct entry: don't repeat orchestrator's intent questions.
MCP Tools
| Tool | Purpose |
|---|---|
mcp_azure_mcp_get_azure_bestpractices | Validate detected stack patterns against Azure best practices |
mcp_azure_mcp_extension_cli_install | Check/install required CLI tools (az, azd, func) |
Workflow
Step 1: Session Check
Orchestrator entry: Session exists β read context.json, proceed to Step 2.
Direct entry: Check .copilot-azure/sessions/active-session.json:
- Exists β β read session-protocol.md for resume/fresh gate. Do NOT proceed until user answers.
- Missing β create session: generate UUID,
New-Item -ItemType Directory -Path ".copilot-azure/sessions/{uuid}" -Force, writecontext.json+active-session.jsonviacreatetool.
Then: az account show β merge {id, name, tenantId} into context.json.azure. β Session MUST exist on disk before any scanning.
Step 2: Scan Workspace
Scan for project files. Detect components, repo{}, detectedInfra[], detectedServices[]. Classify Terraform providers. Check CLI availability. Stack detection conflicts: user explicit statement wins (write to context.json, mark scan as override); scan-only β confirm with user; multiple stacks β show all and ask (see component-mapping.md); no code β zero-code-path.md.
If no project files, no Dockerfile, AND no index.html β β read zero-code-path.md.
β Cloud SDK early gate. Grep for
aws-sdk|@aws-sdk|boto3|google-cloud|@google-cloud|firebase. If functional deps found β read cloud-sdk-migration.md, thenask_user: "Redirect to Azure Cloud Migrate" (setrouteToSkill: "azure-cloud-migrate") Β· "Continue evaluation anyway" (finish readiness eval + SDKβAzure mapping, then STOP at Step 8 β no plan until the deps are swapped) Β· "Cancel".
Step 3: Per-Component Evaluation
| Sub-step | Action | Reference |
|---|---|---|
| 3.1 | Build check | β You MUST read build-check.md |
| 3.2 | Completeness check | β You MUST read completeness-check.md |
| 3.3 | Deployability check | β You MUST read deployability-check.md |
| 3.3a | Component mapping (conditional) | Read component-mapping.md ONLY IF >1 project manifest found (monorepo) |
Populate buildRequirements per component after evaluation. Verdict propagation, tier rules, and f1Viable aggregation are in readiness-gate.md and the individual check references.
Step 4: Write Artifacts + Readiness Gate
β Verify context.json exists on disk. β You MUST read readiness-gate.md (verdicts, tiers, batch-then-approve, fast-track), then β You MUST read prereq-artifacts.md (write procedures, schemas).
Step 5: Present Findings
Per readiness-gate.md Β§ Present Findings β show verdicts grouped by severity before proceeding.
Step 6: Remediation (conditional)
β You MUST read remediation-protocol.md IF any β FAIL verdict, π§ Recommended Fix, or β οΈ WARN with fixPhase: "prereq" exists. Contains remediation loop, static verification, re-eval mandate, post-remediation artifact updates, and the build-validation consent gate. If all verdicts are β
PASS or β οΈ WARN without fixPhase: "prereq", skip to Step 7.
Step 7: Write Final State
completedPhases already has "prereq" + currentPhase: null (from Step 4). Then:
β Write
lastScanCommit. Rungit rev-parse HEADand store the full 40-character SHA ascontext.json.repo.lastScanCommit. Required β staleness guard in Step 1 compares to HEAD on resume to detect changes.
Step 8: Route
β Mandatory β do NOT skip this step.
Routing fields: All routing writes
routeToSkillandrouteReasontocontext.json.
Post-remediation context: If Step 6 ran, lead the routing prompt with: "Remediation complete β {N} issues fixed, your app is now {overallHealth}."
β Evaluate rows top to bottom β first match wins.
| # | Condition | Action |
|---|---|---|
| 1 | routeToSkill set (any entry) | ask_user: "Redirect to {routeToSkill}" / "Not now". β Pipeline stops β do NOT proceed to architecture planning. |
| 2 | cloudSdkFindings[] non-empty (user chose "Continue evaluation anyway") | Present the cloud-SDK β Azure swap mapping as πΆ blockers, then ask_user with this exact prompt: "πΆ Cloud SDK migration required β these dependencies must be swapped before this app can deploy to Azure. (Redirect to azure-cloud-migrate / Stop β swap manually and re-run)" β Redirect sets routeToSkill: "azure-cloud-migrate", Stop halts. β Pipeline stops β do NOT proceed to architecture planning, and do NOT offer a "continue to prepare" option; the app can't deploy until the deps are swapped. |
| 3 | Orchestrator + no routeToSkill | Tell the user: "β
Your app has been evaluated and is ready β let's plan your Azure deployment." Then invoke azure-app-onboard. β Do NOT stop, do NOT wait for user input, do NOT narrate internal handoffs. The user already consented to the full pipeline at scope triage. |
| 4 | Direct + ready/readyWithCaveats + no Azure infra | ask_user: "Deploy to Azure (full pipeline)" β invoke azure-app-onboard / "Not now" |
| 5 | Direct + ready/readyWithCaveats + existing Azure infra | ask_user: "Start fresh" β invoke azure-app-onboard / "Use existing infra" β invoke azure-prepare / "Not now" |
| 6 | Direct + blocked | Report blocker summary + "Fix and re-run." |
Severity tiers (ππΆβπ§β οΈβ ) are defined in readiness-gate.md.
Outputs
| Artifact | Location | Consumer |
|---|---|---|
| Session context | context.json β components[], repo{}, detectedInfra[], detectedServices[] | All downstream phases |
| Prereq output | prereq-output.json | prepare phase (via azure-app-onboard) |
| Readiness report | .copilot-azure/sessions/{uuid}/readiness-report.md | User (offline reference) |
More from this repository10
Helps you build, deploy, test, and manage AI agents and models on Microsoft Foundry, Microsoft's Azure service for AI. It guides the AI through each task with fixed steps.
Helps you find and fix problems in apps running on Azure, such as crashes, slow responses, or connection failures. It checks things in a set order and can work only from logs you provide.
azure-prepare gets a new or existing app ready to deploy to Azure with azd, Microsoft's command-line tool for Azure. It first writes a plan for your approval, then creates the setup files.
azure-deploy puts your app on Azure after the azure-prepare and azure-validate skills have prepared and checked it. It runs the deployment, recovers from errors, and gives you the live web addresses.
azure-validate checks your Azure app before you deploy it, so you can catch setup and permission problems early. It runs after azure-prepare and before azure-deploy.
azure-resource-lookup finds and lists your Azure resources, such as web apps, virtual machines, and storage accounts, across your subscriptions. It only reads data and never changes anything.
azure-resource-visualizer draws a diagram of an Azure resource group that shows how each resource connects to the others. It saves the diagram and notes in a markdown file.
Lets Claude search and summarize large amounts of logs and app data stored in Azure Data Explorer. You ask what you want to know, and it writes and runs the queries for you.
Helps you send all requests to your AI models and tools through Azure API Management, so you can control cost, block harmful content and limit traffic. It includes Azure command-line steps for setup and testing.
Helps you find and fix errors in apps that send and receive messages through Azure Event Hubs or Service Bus. It checks service health and Microsoft docs to suggest a fix.