Skip to content

AzureTableServiceHealthCheck does not work because of filter #2443

@adil-hx

Description

@adil-hx

Please, fill the following sections to help us fix the issue

What happened:

Return 400

What you expected to happen:

Return healthy when table exists

How to reproduce it (as minimally and precisely as possible):

services.AddHealthChecks()
               .AddAzureTable(sp =>
                       sp.GetRequiredService<TableServiceClient>(),
                   sp => new AzureTableServiceHealthCheckOptions
                   {
                       TableName = configuration[AzureTableStorageNameKey]
                   });

Source code sample:

Anything else we need to know?:

Change how the package is checking the table.

e.g.

var tableClient = _tableServiceClient.GetTableClient(_tableName);
await tableClient.GetAccessPoliciesAsync(cancellationToken: cancellationToken);

the filter being false is no longer supported.

Environment:

  • .NET Core version
  • Healthchecks version
  • Operative system: WIN 11 Enterprise
  • Others:

Metadata

Metadata

Assignees

No one assigned

    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