AspNetCore.Diagnostics.HealthChecks
AspNetCore.Diagnostics.HealthChecks copied to clipboard
[AzureServiceBus] AddAzureServiceBusTopic method returns always Unhealthy
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
What if you try latest 7.0.0 preview package?
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 ?
What if you try latest 7.0.0 preview package?
Got the same issue using 8.0.1