Evaluating Aspire adoption: benefits for the inner loop and consistency, lock-in and version churn, fit with an existing Kubernetes platform, Helm and GitOps, observability standards, adoption options (local-only, testing, full deployment), and how to decide and measure.
I'd split Aspire into four parts that can be adopted separately: local orchestration (AppHost), service defaults, integration testing with the testing builder, and deployment (publish/deploy).
On a platform-owned Kubernetes cluster, the platform's Helm and GitOps stay the source of truth, so the usual answer is: adopt Aspire for the inner loop, service defaults and tests, align telemetry with the platform's OpenTelemetry Collector, and don't let Aspire deploy to the cluster. Its generated Helm chart is a reference at most.
Run-time lock-in is low because services read plain IConfiguration and send OTLP. The real costs are the learning curve, keeping up with releases, and a second topology model that can drift from production manifests. I'd decide with a time-boxed pilot, measured on onboarding time and local failures, and record it in an ADR.
"First I'd stop treating Aspire as one decision. It's really four things: an AppHost for local orchestration, a service defaults project, a testing library that starts the whole app in an integration test, and deployment publishers. Each has a different cost and a different owner. On a Kubernetes platform that a platform team runs with Helm and Argo CD, the deployment part is the one that clashes: the platform already owns ingress, network policies, resource limits and the GitOps flow, and two sources of truth for production manifests is a recipe for drift. So my default recommendation is to adopt the AppHost, service defaults and testing, and keep deployment with the platform.
For example, at [company] we [ran a four-week pilot with one team of six and three services]. I set measures up front: onboarding time, the number of 'works on my machine' tickets, and how long it took to get a trace across services locally. We aligned service defaults with the platform's conventions, OTLP to the cluster's OpenTelemetry Collector, the same
service.nameanddeployment.environment.nameattributes, so local traces matched production ones. [Onboarding went from a day and a half to under an hour, and the platform team signed off because nothing changed in their pipeline.]On lock-in I'm fairly relaxed: services only read configuration and emit OTLP, so removing Aspire means replacing the AppHost with Compose and keeping everything else. The real costs are the learning curve, a frequent release cadence to keep up with, Docker on every laptop, and the AppHost drifting from the Helm charts. I'd reject it if the platform already provides good ephemeral dev environments, or if the team is one service with one database. I'd adopt Aspire where it removes friction for the team, and keep production decisions with the people who run production."
| Option | What you adopt | Fits | Watch out for |
|---|---|---|---|
| A. Local only | AppHost + dashboard | Any platform | AppHost drifting from production topology |
| B. Local + service defaults | A + shared OTel/health/resilience baseline | Most teams | Must match platform telemetry conventions |
| C. B + integration tests | DistributedApplicationTestingBuilder in CI |
Teams with cross-service bugs | CI needs Docker; slower tests |
| D. Full, including deployment | aspire publish/deploy to the cluster or Container Apps |
Teams owning their own Container Apps or cluster | Clashes with platform-owned GitOps |
| Benefit | Cost |
|---|---|
| Faster onboarding, one-command local run | Docker/Podman and resources on every machine |
| Consistent telemetry and health checks | Service defaults must be kept aligned with platform standards |
| Cross-service integration tests | Longer CI runs |
| Readable model of the system | A second topology description to keep in sync |
| Fast first deployment | Generated artefacts to review; preview features; version churn |
[A platform with 14 .NET services on AKS] adopted options A to C over a quarter. Local environment tickets fell from [about 12 a month] to [2], and an AppHost-based integration test caught a breaking contract change between two services [three times] before it reached the shared test cluster. Deployment stayed with the platform team's Helm and Argo CD.
Checks architectural judgement: decomposing a tool decision, respecting platform ownership, analysing lock-in honestly and deciding with evidence.
Green flags
Red flags
+-------------------- Aspire --------------------+
| |
Inner loop Service defaults Testing Deployment
(AppHost, DCP, (OTel, health, (Aspire.Hosting. (publishers: Bicep,
dashboard) discovery, resilience) Testing) Helm, Compose; deploy)
| | | |
owner: team owner: team + owner: team owner: whoever owns
platform standards production manifests
| Layer | Coupling to Aspire | Exit path |
|---|---|---|
| Service code | Low: IConfiguration, ILogger, OTLP, optional client integrations |
Replace client integrations with plain SDK registration |
| Service defaults | Low: it's your source code using OpenTelemetry and Microsoft.Extensions packages | Keep it; rename it |
| AppHost | High: Aspire-specific DSL | Replace with Compose or Tilt/Skaffold |
| Generated deployment | Medium: Bicep/Helm are standard formats | Take ownership of the last generated output |
ConnectionStrings__cache, services__catalog__http__0, or plain Kubernetes DNS with pass-through discovery), so code doesn't branch per environment.DistributedApplicationTestingBuilder.CreateAsync<Projects.AppHost>() starts the whole model (containers included) inside a test, gives you an HttpClient for any resource, and lets you wait for health. It's slower than unit tests but catches wiring and contract problems no mock will. Run it in CI on a Docker-capable agent, typically on pull requests to main.
DistributedApplicationTestingBuilder test that calls the API and asserts a healthy response.aspire publish with a Kubernetes environment and compare the generated chart with your platform's chart.Option C in practice: an AppHost-driven integration test and service defaults aligned with a platform Collector.
// tests/Orders.IntegrationTests/CheckoutFlowTests.cs
namespace Orders.IntegrationTests;
using System.Net;
using System.Net.Http.Json;
using Aspire.Hosting.Testing;
public sealed class CheckoutFlowTests
{
[Fact]
public async Task Checkout_returns_ok_across_services()
{
using var cts = new CancellationTokenSource(TimeSpan.FromMinutes(3));
var appHost = await DistributedApplicationTestingBuilder.CreateAsync<Projects.Orders_AppHost>(cts.Token);
await using var app = await appHost.BuildAsync(cts.Token);
await app.StartAsync(cts.Token);
// Wait until the API is healthy (its own WaitFor dependencies come first).
await app.ResourceNotifications.WaitForResourceHealthyAsync("api", cts.Token);
using var http = app.CreateHttpClient("api");
var response = await http.PostAsJsonAsync("/checkout", new { CartId = Guid.NewGuid() }, cts.Token);
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
}
}
// ServiceDefaults/Extensions.cs (excerpt): same telemetry shape locally and on the cluster
builder.Services.AddOpenTelemetry()
.ConfigureResource(r => r.AddAttributes(
[
new("deployment.environment.name", builder.Environment.EnvironmentName),
new("service.namespace", "orders")
]))
.UseOtlpExporter(); // locally: dashboard (set by AppHost); on AKS: the platform Collector via OTEL_EXPORTER_OTLP_ENDPOINT
# Platform Helm values (owned in GitOps) inject the same keys the AppHost does locally
env:
- name: ConnectionStrings__cache
valueFrom: { secretKeyRef: { name: orders-redis, key: connection } }
- name: services__catalog__http__0
value: http://catalog.orders.svc.cluster.local
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://otel-collector.observability.svc:4317
The senior move here is scoping: Aspire is valuable for the team's inner loop and for consistency, and the platform team's ownership of production is legitimate. Getting both teams to agree on configuration keys and telemetry conventions matters more than the tool.
Why the telemetry alignment pays off. OpenTelemetry gives every service the same trace context, attribute names and export protocol, so a request can be followed across services with one trace id, from the developer's dashboard to Grafana Tempo or Application Insights in production. When local and production telemetry share conventions, developers arrive at incidents already fluent in the traces, and instrumentation gaps are found and fixed in pull requests rather than during an outage.
Security and secrets. Aspire changes the local secrets story (user secrets and secret parameters) but must not change production's: on the cluster, secrets still come from Key Vault through the Secrets Store CSI driver or workload identity, under the platform's rotation and audit. Watch for secret parameters being copied into generated Helm values or committed aspire publish output, keep the dashboard's authentication on, and make sure local telemetry doesn't capture personal data that would be a Privacy Act problem if it leaked from a laptop.
| Decision | When it fits | Cost | When not to |
|---|---|---|---|
| Adopt A to C, platform keeps deployment | Platform-owned Kubernetes with GitOps | Keep AppHost and charts aligned | Platform already gives great dev environments |
| Adopt A to D on Container Apps | Team owns its Azure footprint | Review generated Bicep | Strict separation of duties |
| Compose + Testcontainers instead | Polyglot teams, simple systems | No dashboard or typed model | .NET-heavy systems with many services |
| Don't adopt | Locked-down machines, one service | Status quo pain remains | Onboarding is a real problem |
The AppHost model is the input to deployment. You add a compute environment (Azure Container Apps, Kubernetes, Docker Compose or App Service) and then:
aspire publish generates artefacts: Bicep for Azure, a Helm chart for Kubernetes, or Compose files, for review and your own pipeline.aspire deploy builds and pushes images and applies them; for Container Apps it's still marked preview in Microsoft's docs.azd up packages, provisions (Bicep) and deploys to Container Apps, and azd pipeline config creates CI/CD with federated credentials.Deployed apps use managed identity and secret parameters, not keys. Aspire itself doesn't run in production: the platform handles scaling, revisions, probes and networking. You still own migrations, private networking, scaling rules, environments and approvals. The trade-off: one model from laptop to cloud, versus generated infrastructure you must review and sometimes override.
Helm is the package manager for Kubernetes. A chart is a set of manifest templates (Go templating) plus a values.yaml of defaults. You install it as a release, overriding values per environment with files like values-prod.yaml. Helm stores each revision in the cluster, so helm upgrade --install --atomic deploys and helm rollback returns to an earlier revision. Charts are versioned and pushed to OCI registries such as Azure Container Registry.
Kustomize takes the opposite approach: plain YAML bases with environment overlays and patches, no templating, built into kubectl apply -k.
I use Helm when a chart is shared across many services or for third-party software, and Kustomize for simple in-house overlays. The trade-off: Helm's power versus template complexity.
All of them store and show traces; they differ in who runs them and how they price and store data.
From .NET you instrument once with OpenTelemetry and export OTLP, ideally through a Collector that can batch, sample and fan out. The trade-off: managed backends cost money per GB; self-hosted ones cost engineering time.
How to tell it (STAR)
**S:** At [company], a team on our platform-owned AKS cluster wanted Aspire, and the platform team was worried it would bypass GitOps. **T:** As [principal engineer], I had to decide whether and how to adopt it without creating two sources of truth. **A:** I split Aspire into its parts, ran a [four-week] pilot using only the AppHost, service defaults and testing, aligned configuration keys and telemetry with the platform's Collector, and left deployment in Argo CD. I wrote the outcome up as an ADR. **R:** Onboarding fell from [a day and a half] to [under an hour], local-environment tickets dropped by [about 80%], and the platform team approved rolling it out to [three] more teams.
Last updated 23 Nov 2026.