Skip to content

ConnectionString set in AppHost is discarded when adding Azure AppConfiguration #5492

Closed Answered by davidfowl
tobey74 asked this question in Q&A
Discussion options

You must be logged in to vote

then Aspire would be the last config provider added?

There's no aspire configuration provider. The apphost is setting environment variables which is the second last provider added by default.

Basically ensuring that Aspire/AppHost is added last as an app configuration provider?

By adding AddEnvironmentVariables after adding the app configuration based configuration.

builder.Configuration.AddEnvironmentVariables();

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@tobey74
Comment options

@davidfowl
Comment options

Answer selected by tobey74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants