Open
Description
Describe the issue or suggestion
In each of the Azure Integration docs there is a section for Connect to an existing Azure XX account
. These sections are saying that if you want to connect to an existing Azure service, use the builder.AddConnectionString("name")
method. This approach doesn't work as well as using .AsExisting
because:
- The connection string isn't typed, you don't know if it is for a KeyVault, Storage, etc.
- Auth to the existing service isn't established. Each app gets a new Managed Identity created, and using a connection string doesn't add roles to this managed identity. But doing .AsExisting will add the necessary role assignments.
We should update these sections to recommend using AsExisting, like we have in the Azure Overview doc.
See also dotnet/aspire#9284
Metadata
Metadata
Assignees
Labels
No labels