dotnet / aspire

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

We need an Aspire component for Azure SDK for .NET's Resource Manager APIs #1546

Open mitchdenny opened 11 months ago

mitchdenny commented 11 months ago

Some Azure resources locate some operations that you might wish to perform inside the Azure management plane SDKs for .NET. A good example is that you cannot create a database via the data plane Cosmos SDK when using AAD / managed identity tokens. To create a database you need to use the resource manager APIs (and that needs sufficient permission to perform the operations on the Azure subscription.

We need a mechanism that allows us to add the host Azure subscription for an Asprie app as a resource for the app model and have an Aspire component that takes that resource connection info to preconfigure a client to perform management plane operations. Some applications need to be able to dynamically create resources (e.g. spinning up ACI instances for background operations).

mitchdenny commented 11 months ago

/cc @davidfowl @vhvb1989 @ellismg

For discussion only at this point.

ellismg commented 11 months ago

Somewhat related - I have been thinking about adding an azure.deployment.v0 resource where the resource contains a template to be deployed as part of the overall infrastructure deployment.

Some applications need to be able to dynamically create resources (e.g. spinning up ACI instances for background operations).

Suspect this will also be a thing when we support ACA Jobs if that ends up becoming a thing...