dotnet / aspire

Tools, templates, and packages to accelerate building observable, production-ready apps
https://learn.microsoft.com/dotnet/aspire
MIT License
3.86k stars 462 forks source link

Add Azure storage blob containers #5167

Open andwi opened 3 months ago

andwi commented 3 months 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 3 months ago

cc @tg-msft @JoshLove-msft