I register my app config health checks like so:
builder.Services.AddHealthChecks()
.AddAzureAppConfiguration(
name: "AzureAppConfiguration",
failureStatus: HealthStatus.Degraded)
// and a few more health checks here...
What I want to achieve is that the overall status of my API is marked as Degraded when azure app config is not available since my app can function without it.
This failureStatus parameter is ignored by the AzureAppConfigurationHealthCheck implementation.
I think the solution is that instead of directly returning HealthStatus.Unhealthy, the checker should return whatever value it got from its HealthCheckContext
I register my app config health checks like so:
What I want to achieve is that the overall status of my API is marked as
Degradedwhen azure app config is not available since my app can function without it.This
failureStatusparameter is ignored by theAzureAppConfigurationHealthCheckimplementation.I think the solution is that instead of directly returning
HealthStatus.Unhealthy, the checker should return whatever value it got from itsHealthCheckContext