microsoft/aspire-skills/aspire-deployment

Claude Code and agent skill by microsoft/aspire-skills

Trust tier 4
  • vendor
Source check pending

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-deployment

SKILL.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:

  1. 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.
  2. 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:

bash
aspire docs search "deploy with Aspire"
aspire docs search "Docker Compose deployment"
aspire docs search "Kubernetes deployment"
aspire docs search "Azure Container Apps deployment"
aspire docs search "Azure App Service deployment"
aspire docs search "Azure Kubernetes Service deployment"
aspire docs search "Radius deployment"
aspire docs get "deploy-to-azure-kubernetes-service-aks"
aspire docs get "<slug-from-search-results>"

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:

bash
aspire docs api search "<deployment API or concept>" --language csharp
aspire docs api search "<deployment API or concept>" --language typescript
aspire docs api search "<deployment API or concept>" --language go
aspire docs api get "<id-from-api-search>"

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:

bash
aspire publish --list-steps
aspire deploy --list-steps
aspire publish
aspire deploy
aspire destroy
aspire do <step>

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.yaml and .env*; Aspire can also run docker compose up through aspire deploy.
  • Kubernetes: inspect generated Helm chart output; use Helm/kubectl when applying published artifacts yourself.
  • Azure: use aspire add <azure-target>, aspire publish, and aspire deploy through the AppHost deployment environment.
  • AWS: use aspire add aws to add the integration, inspect generated CDK/CloudFormation output, and follow the AWS integrations repository guidance.
  • Radius: treat Aspire.Hosting.Radius as 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:

ChoiceAspire add commandUse when
Docker Composeaspire add dockerThe user wants local/server container deployment artifacts for Docker or Podman.
Kubernetesaspire add kubernetesThe user has an existing Kubernetes cluster and wants Helm/Kubernetes artifacts or direct cluster deployment.
Azure Container Appsaspire add azure-appcontainersThe user wants an Azure-managed container platform for distributed apps and services.
Azure App Serviceaspire add azure-appserviceThe user wants Azure website hosting for web apps/APIs that fit the App Service model.
Azure Kubernetes Service (AKS)aspire add azure-kubernetesThe user wants Aspire to provision and deploy to Azure-managed Kubernetes.
AWSaspire add awsThe 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 .Services instead of hosting context .ServiceProvider;
  • use AddConnectionString instead of PublishAsConnectionString; and
  • migrate deprecated Aspire.Hosting.GitHub.Models resources 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

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
vskill CERTIFIED badge
[![vskill CERTIFIED](https://verified-skill.com/api/v1/skills/microsoft/aspire-skills/aspire-deployment/badge)](https://verified-skill.com/skills/microsoft/aspire-skills/aspire-deployment)

Something wrong with this skill or its page? Tell us.