dotnet / aspire

An opinionated, cloud ready stack for building observable, production ready, distributed applications in .NET
https://learn.microsoft.com/dotnet/aspire
MIT License
3.63k stars 408 forks source link

Add Azure storage blob containers #5167

Open andwi opened 1 month ago

andwi commented 1 month ago

Is there an existing issue for this?

Is your feature request related to a problem? Please describe the problem.

I want to declare the Azure storage blob containers that I need in the AppHost project and then I want azd to create them for me when I deploy.

Describe the solution you'd like

With Azure Service Bus it is possible to add queues and topics like this.

var sb = builder.AddAzureServiceBus("sb");
sb.AddQueue("myqueue");

I would like something similar for blob containers (and storage queues and tables for completeness).

var storage = builder.AddAzureStorage("storage");
var blobs = storage.AddBlobs("BlobConnection");
blobs.AddBlobContainer("mycontainer");

Additional context

No response

davidfowl commented 1 month ago

cc @tg-msft @JoshLove-msft