Skip to content

AzureAppConfigurationHealthCheck does not honor failureStatus parameter #712

@isak1080

Description

@isak1080

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions