Search code examples
.net.net-8.0daprdotnet-aspire

How to have different settings for local development and production in .net Aspire


Let's say I want to use a Redis container when running it locally and Azure Cache for Redis in production (when deployed to Azure Container Apps).

Or it could be dapr state store plus pubsub locally and, Azure Cosmos DB plus Service Bus in production.

How would I set this up? In every demo and documentation I found so far, "azd up" is used to deploy the application with the same settings as local dev.


Solution

  • This isn't really supported yet but we expect this will be easy to do by v1. The only way to get around this today is to change the scaffolded bicep and change it to spin up those services. It's on the roadmap to support this in a more first class way.