Skip to content

Conversation

@zhiyuanliang-ms
Copy link
Member

@zhiyuanliang-ms zhiyuanliang-ms commented Dec 18, 2025

Why this PR?

In PR #491, we upgraded the Microsoft.Azure.AppConfiguration.AspNetCore version from 3.0.1 to 7.3.0. But this change actually break the original app.

First thing is that we should call services.AddAzureAppConfiguration to add IConfigurationRefresherProvider to the DI.
Otherwise, it will fail at this line

image

But, even if we called services.AddAzureAppConfiguration, when the App Configuration is not added to the IConfiguration, our middleware will still fail at this line

image

How to fix?

When connection string is not configured, we can set the environment variable to add EmptyConfigurationRefresherProvider

@zhiyuanliang-ms zhiyuanliang-ms merged commit 772484c into main Dec 19, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants