microsoft/aspire-skills/aspire-deployment
Claude Code and agent skill by microsoft/aspire-skills
- vendor
Checking that the SKILL.md file is still in the repository.
**WORKFLOW SKILL** — Deploy Aspire apps from AppHost models to Docker Compose, Kubernetes, Azure, AWS, or preview Radius. WHEN: \"deploy Aspire app\", \"publish Aspire artifacts\", \"deploy to Azure Container Apps\", \"generate Kubernetes artifacts\", \"deploy to Radius\", \"tear down Aspire deployment\". INVOKES: aspire CLI, Aspire docs, target cloud/container CLIs. FOR SINGLE OPERATIONS: use generic Azure, Kubernetes, Docker, AWS, or Radius tools only when no Aspire AppHost exists.
Install
npx vskill@latest install microsoft/aspire-skills/aspire-deploymentSKILL.md
The same SKILL.md was published earlier as microsoft/aspire-skills/aspire-deployment.
Aspire Deployment
Use this skill when the task is to publish, preview, validate, deploy, or tear down an Aspire application deployment. This skill owns Aspire deployment routing. Do not start with a generic Azure, Docker, Kubernetes, Helm, or Bicep workflow until you have checked whether the workspace is an Aspire app.
Aspire deployment starts from the AppHost model. Treat aspire deploy, aspire publish, aspire destroy, aspire do, and the deployment environment resources in the AppHost as the primary path. Use stable SDK/hosting packages from the project's release family and matching preview builds for preview-only integrations such as Kubernetes and Radius.
Keep this as one skill with target-specific references. Load only the reference files that match the target you discover or the user requests.
Routing precedence
This skill wins over generic cloud deployment skills when both conditions are true:
- The user asks to deploy, publish, generate deployment artifacts, create Bicep/Helm/Compose/CDK output, host on Azure or AWS, deploy to Azure, AWS, Kubernetes, Docker Compose, or Radius, tear down deployed resources, or validate a deployment.
- The workspace has Aspire markers:
- Aspire workspace configuration
- C#, TypeScript, or Go AppHost files
- an AppHost project
- AppHost code using Aspire distributed application builder APIs
If Aspire markers are present but this skill was not automatically invoked, switch to this skill before continuing. Prefer Aspire CLI commands such as aspire ls, aspire config list, aspire ps, and aspire describe for workspace orientation.
Guiding principles
Use Aspire docs before changing deployment code
Before adding target packages, editing the AppHost, or using an unfamiliar deployment API, use Aspire docs:
When you need exact C#, TypeScript, or Go API shape, use API docs too. Search each language that could apply when you are not sure which AppHost language the repo uses. Go AppHosts require Aspire 17.0 or later, and --language go needs the 17.0 CLI:
Do not invent package names, builder methods, overloads, or deployment commands. API shapes differ between C#, TypeScript, and Go AppHosts.
Prefer Aspire-native deployment
Deploy the resources declared in the AppHost, not the AppHost process itself. For Docker Compose, configure the Compose environment and let Aspire generate services for those resources; do not replace this with an AppHost Dockerfile or Compose service.
Use Aspire deployment targets and CLI commands first:
Use target-specific tooling only after Aspire has generated artifacts or when the target docs call for it:
- Docker Compose: inspect generated
aspire-output/docker-compose.yamland.env*; Aspire can also rundocker compose upthroughaspire deploy. - Kubernetes: inspect generated Helm chart output; use Helm/kubectl when applying published artifacts yourself.
- Azure: use
aspire add <azure-target>,aspire publish, andaspire deploythrough the AppHost deployment environment. - AWS: use
aspire add awsto add the integration, inspect generated CDK/CloudFormation output, and follow the AWS integrations repository guidance. - Radius: treat
Aspire.Hosting.Radiusas preview. Use integration/docs search to verify
the package and API, then model AddRadiusEnvironment(...).WithNamespace(...).
Ask where to deploy only when ambiguous
Do not ask for target selection when the user already chose a target such as Docker Compose, Kubernetes, Azure Container Apps, Azure App Service, Azure Kubernetes Service (AKS), or AWS. Use the chosen target and continue with its reference.
If the user did not explicitly choose a deployment target and the AppHost does not already contain exactly one deployment environment, ask where they want to deploy before adding integrations, editing the AppHost, publishing artifacts, or deploying. Use a single multiple-choice question:
Where do you want to deploy this Aspire app?
Show these choices:
| Choice | Aspire add command | Use when | |
|---|---|---|---|
| Docker Compose | aspire add docker | The user wants local/server container deployment artifacts for Docker or Podman. | |
| Kubernetes | aspire add kubernetes | The user has an existing Kubernetes cluster and wants Helm/Kubernetes artifacts or direct cluster deployment. | |
| Azure Container Apps | aspire add azure-appcontainers | The user wants an Azure-managed container platform for distributed apps and services. | |
| Azure App Service | aspire add azure-appservice | The user wants Azure website hosting for web apps/APIs that fit the App Service model. | |
| Azure Kubernetes Service (AKS) | aspire add azure-kubernetes | The user wants Aspire to provision and deploy to Azure-managed Kubernetes. | |
| AWS | aspire add aws | The user wants Aspire to publish/deploy through the AWS Aspire integrations and AWS CDK. |
Do not offer preview Radius as a default choice. Use it when the user explicitly requests Radius or the AppHost already contains a Radius environment.
If the user says only "Azure", ask again with just the Azure choices: Azure Container Apps, Azure App Service, or Azure Kubernetes Service (AKS). If the AppHost already contains exactly one deployment environment and the user did not ask to change targets, use that target and tell the user what was detected.
Ask before creating cloud resources when intent is not explicit
Cloud deploys can create billable resources. If the user asked for a plan, preview, validation, or "make this deployable", stop after the deployment plan/artifacts and ask before running the command that provisions resources.
If the user explicitly asked to deploy now, continue through preflight and deployment, but still surface any target choice, subscription/resource group ambiguity, or missing parameter decisions before provisioning.
Keep Azure deployment Aspire-native
The Azure deployment path in this skill is aspire add <azure-target>, AppHost environment configuration, aspire publish, and aspire deploy. Do not route Azure deployment work through a separate Azure deployment tool or generated infrastructure workflow.
Keep Aspire packages on one release family
Before publish or deploy, verify that Aspire.AppHost.Sdk and the hosting packages use compatible versions in the project's selected release family. Preview-only integrations need compatible preview builds selected by aspire add or integration docs. The CLI version does not make incompatible hosting packages safe; mixed graphs can fail at startup with MissingMethodException or TypeLoadException.
Migrate obsolete 13.5 surfaces while editing deployment code:
- use
.Servicesinstead of hosting context.ServiceProvider; - use
AddConnectionStringinstead ofPublishAsConnectionString; and - migrate deprecated
Aspire.Hosting.GitHub.Modelsresources to Azure AI Foundry.
Default workflow
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 18 Nov 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/aspire-deployment/SKILL.md
Popularity
- Repository stars
- 87
- Repository forks
- 10
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/aspire-skills/aspire-deployment)