AspNetCore.Diagnostics.HealthChecks icon indicating copy to clipboard operation
AspNetCore.Diagnostics.HealthChecks copied to clipboard

[AzureServiceBus] AddAzureServiceBusTopic method returns always Unhealthy

Open MuscaAndra opened this issue 2 years ago • 3 comments

Hello, I have added some checks for azure service bus topics using the AddAzureServiceBusTopic method. Even if the topic is Active, the endpoint that I have created to check the topic health, returns Unhealthy status. I have also used the AddAzureServiceBusQueue method for checking the queues health and it is working fine.

Could someone help me with this?

The code looks like this and is added:

 services.AddHealthChecks().AddAzureServiceBusTopic(azureBusConnectionString,
                topicName: "topicName",
                name: "topicName");

Environment:

  • .NET Core 6
  • AspNetCore.HealthChecks.AzureServiceBus package 6.1.0 version

MuscaAndra avatar Mar 14 '23 05:03 MuscaAndra

What if you try latest 7.0.0 preview package?

sungam3r avatar Mar 14 '23 13:03 sungam3r

We have the same problem. Our permission to Topics is only for Sender, the healthcheck appears to require Manage rights as it tries to retrieve the Topic properties via GetTopicRuntimePropertiesAsync.

Is there a way to check for connectivity using only the permissions we have ?

slaneyrw avatar May 07 '24 04:05 slaneyrw

What if you try latest 7.0.0 preview package?

Got the same issue using 8.0.1

woeterman94 avatar Jul 23 '24 13:07 woeterman94