npx skills add ...
npx skills add microsoft/aspire-skills --skill aspire-deployment
**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.
npx skills add microsoft/aspire-skills --skill 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. This guidance targets Aspire 13.5.3: use stable 13.5.3 SDK/hosting packages and matching 13.5.3-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.
This skill wins over generic cloud deployment skills when both conditions are true:
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.
Before adding target packages, editing the AppHost, or using an unfamiliar deployment API, use Aspire docs:
When you need exact C# or TypeScript API shape, use API docs too. Search both languages when you are not sure which AppHost language the repo uses:
Do not invent package names, builder methods, overloads, or deployment commands. API shapes differ between C# and TypeScript AppHosts.
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:
aspire-output/docker-compose.yaml and .env*; Aspire can also run docker compose up through aspire deploy.aspire add <azure-target>, aspire publish, and aspire deploy through the AppHost deployment environment.aspire add aws to add the integration, inspect generated CDK/CloudFormation output, and follow the AWS integrations repository guidance.Aspire.Hosting.Radius as preview. Use integration/docs search to verify
the package and API, then model AddRadiusEnvironment(...).WithNamespace(...).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.
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.
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.
Before publish or deploy, verify that Aspire.AppHost.Sdk and every hosting package use
the matching 13.5 servicing line. Stable packages should be 13.5.3; preview-only
integrations use matching 13.5.3-preview.* builds selected by aspire add or current
docs. A 13.5 CLI does not make mixed 13.4/13.5 hosting packages safe; mixed graphs can
fail at startup with MissingMethodException or TypeLoadException.
Migrate obsolete 13.5 surfaces while editing deployment code:
.Services instead of hosting context .ServiceProvider;AddConnectionString instead of PublishAsConnectionString; andAspire.Hosting.GitHub.Models resources to Azure AI Foundry.aspire ls to list AppHosts in the current scope, then use aspire.config.json, AppHost project files, or aspire ps if more context is needed.aspireify skill to initialize/wire the AppHost before continuing.Aspire.Hosting.Radius;
do not guess experimental API shapes.aspire add ... command if the integration is missing.WithComputeEnvironment(...); for TypeScript AppHosts, verify the current language-specific docs before assuming an equivalent.aspire publish --list-steps or aspire deploy --list-steps.aspire publish -o <scratch-or-output-path> when artifact review is requested.aspire deploy resolves values and applies the deployment from the AppHost model; it does not consume a previously published output directory.aspire deploy when the user asked to deploy and preflight is complete.aspire do <step> only when the user asked for a specific pipeline step.aspire destroy to execute the selected AppHost/environment's target destroy pipeline.--yes only when the user or CI workflow already made teardown intent explicit.aspire destroy over target-native delete commands unless you are troubleshooting failed teardown or cleaning up unmanaged leftovers.aspire describe, cloud CLI, Docker Compose, kubectl, or endpoint checks appropriate to the target.Search the AppHost for deployment environment resources:
| Target | Aspire add command | Integration | AppHost environment concept |
|---|---|---|---|
| Docker Compose | aspire add docker | Docker hosting | Docker Compose environment |
| Kubernetes | aspire add kubernetes | Kubernetes hosting | Kubernetes environment |
| Azure Container Apps | aspire add azure-appcontainers | Azure Container Apps hosting | Azure Container Apps environment |
| Azure App Service | aspire add azure-appservice | Azure App Service hosting | Azure App Service environment |
| Azure Kubernetes Service (AKS) | aspire add azure-kubernetes | Azure Kubernetes hosting | Azure Kubernetes Service (AKS) environment |
| AWS | aspire add aws | AWS hosting | AWS CDK environment |
| Radius (preview) | Discover with aspire integration search radius | Aspire.Hosting.Radius | Radius environment |
Use this table only for orientation. Before editing code, verify the current API in Aspire docs for the AppHost language.
Parameters are deployment inputs. They may be supplied by configuration files, user secrets, environment variables, command-line args, interactive prompts, or CI/CD secret stores depending on the target and command.
Before deployment, report:
Parameters__name; for parameter names with dashes, use underscores in environment variables, for example registry-endpoint becomes Parameters__registry_endpoint.env, or Azure app settingUse aspire secret list for AppHost user secrets when appropriate, but do not print secret values. For deployment artifacts, inspect generated placeholders and mappings, not raw secret content.
When running unattended (CI, scripted, agent-driven), append --non-interactive to every Aspire CLI invocation that may prompt — most importantly aspire publish, aspire deploy, and aspire destroy. For aspire destroy, also pass --yes only after the user has explicitly confirmed teardown intent (or a CI workflow already encodes that intent).
Prefer surfacing prompt-driving values up front (target subscription/region/resource group, parameters, secrets, registry credentials) so the unattended run does not stall. See references/preflight.md for the full preflight checklist.
| Scenario | Route To |
|---|---|
| Start, stop, wait, or restart the AppHost / its resources | aspire-orchestration skill |
| Logs, traces, metrics, dashboard for a running or deployed app | aspire-monitoring skill |
| AppHost authoring — adding integrations, wiring resources, environment setup | aspireify skill |
| Deployed-app diagnostics — App Insights, ACA logs, AKS Container Insights | azure-diagnostics skill (azure-skills) |
Never hand deployment off to azure-skills. Aspire handles publish, deploy, and destroy end-to-end across Docker Compose / Kubernetes / Azure / AWS via the AppHost model.
If .agents/skills/aspire-deployment/SKILL.md exists (dropped by aspire agent init),
prefer it over this plugin skill — it is the authoritative project-local version with
content version-aligned to the consumer's Aspire CLI. This plugin skill is the always-on
safety net for repos that have not yet run aspire agent init.
aspire docs api search "<deployment API or concept>" --language csharp
aspire docs api search "<deployment API or concept>" --language typescript
aspire docs api get "<id-from-api-search>"aspire publish --list-steps
aspire deploy --list-steps
aspire publish
aspire deploy
aspire destroy
aspire do <step>