Search code examples
.netazure.net-8.0dotnet-aspire

When using "azd up" to deploy a .net Aspire application, is it possible to also deploy the related Azure resources (components)?


When creating a .net Aspire application with Azure components such as the Service Bus, I have to create the resource on Azure first, before I can run the application locally.

When I finally deploy the application using "azd up", a new resource group gets created and now I end up with 2.

What are my options to have everything I need under a single resource group? Would it be possible for "azd up" to also provision the related/required azure resources such as service bus, storage accounts and so on?


Solution

  • The plan is to enable this before we ship v1, but right now there's no easy way to reuse the same resource group unless you tweak the bicep that azd generates. You can use azd infra synth to spit out the bicep and you can customize it from there to do what you want (assumes you know bicep).