---
title: "Running a production-like local environment with Aspire"
url: https://daily.dev/posts/running-a-production-like-local-environment-with-aspire-7qzdip0aa
source_url: https://timdeschryver.dev/blog/running-a-production-like-local-environment-with-aspire
type: article
source: "Tim Deschryver"
author: "Tim Deschryver"
published: 2026-05-31T07:47:15.479Z
updated: 2026-06-01T04:02:20.874Z
tags: ["azure", ".net"]
reading_time: 11
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Running a production-like local environment with Aspire

**[Tim Deschryver](https://daily.dev/sources/timdeschryver)** · [@timdeschryver](https://daily.dev/timdeschryver) · 11 min read · 0 upvotes · 0 comments

## Summary

Running a local development environment that closely mirrors production is a common challenge. .NET Aspire addresses this by letting you define your application and all its dependencies in a single AppHost, which orchestrates services like databases, caches, queues, and cloud storage locally. Using Azure Blob Storage with Azurite as a concrete example, the post walks through how to configure the storage resource in AppHost, wire it to an API project, and switch between local (Azurite) and real Azure Storage for deployed environments — all without changing application code. The centralized configuration reduces manual setup, eliminates environment-specific branching in app code, and gives teams a consistent, repeatable local environment that catches integration issues before they reach production.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://timdeschryver.dev/blog/running-a-production-like-local-environment-with-aspire>

---

Tags: [#azure](https://daily.dev/tags/azure), [#.net](https://daily.dev/tags/.net)

[View this post on daily.dev](https://daily.dev/posts/running-a-production-like-local-environment-with-aspire-7qzdip0aa)
