-
Notifications
You must be signed in to change notification settings - Fork 805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After release update from 6.0.4 to 6.1.0. , health check for Azure Service Bus Queue is broken. Throws Unauthorized access error. #1724
Comments
See #1565 . Did you try the latest preview packages? |
Hi @sungam3r, I tried with new Pre release package 7.0.0-rc2.4, and it doesn't work. I get some weird error and it breaks the existing code. |
Would you like to post PR fixing it? |
@sungam3r Latest prerelease package 7.0.0-rc2.4 doesn't seem to contain #1565. @bhavsarravi When #1565 is released you should be able to use the new options parameter and set services.AddHealthChecks()
.AddAzureServiceBusQueue("example.servicebus.windows.net", "queueName", options =>
{
options.UsePeekMode = false;
}); |
I have tested 7.0.0-rc5 and it seems to work as intended (with |
I did tested version 7.0.0-rc2.5 using (with UsePeekMode = false) configurations and its working now. Note: _Error : "FileNotFoundException: Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.System.Reflection.CustomAttribute.CreateCaObject(RuntimeModule pModule, RuntimeType type, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs)" This can be closed now! |
@bhavsarravi What is your TFM? |
I actually get the same error in .NET 7 for
But not for |
I have a feeling this dependency problem should be fixed by MS but in real world we can end up with spreading #1720 fix across all packages. |
|
|
Closing as fixed. |
What happened: After release update from 6.0.4 to 6.1.0. , health check for Azure Service Bus Queue is broken. Throws Unauthorized access error.
What you expected to happen: We expect the same as how the AzureServiceBusQueue health check was working with least privilege Service Bus Sender Role as in 6.0.4 version.
How to reproduce it (as minimally and precisely as possible): Just provide with least privilege Service Bus Sender Role.
I attempted to implement a health check for a queue using an identity assigned the "Azure Service Bus Data Sender" role.
Source code sample:
Anything else we need to know?:
Exact Error Received:
[Error] [] Health check "catalog-servicebus-check" with status Unhealthy completed after 12744.2465ms with message 'null'System.UnauthorizedAccessException: Unauthorized access. 'Listen' claim(s) are required to perform this operation. Resource: 'sb://eus2-pind-sremark-atest.servicebus.windows.net/rdi-reportdata/$management'. TrackingId:11111111-2222-3333-4444-555555555555_G3, SystemTracker:NoSystemTracker, Timestamp:2023-03-02T02:47:07For troubleshooting information, see https://aka.ms/azsdk/net/servicebus/exceptions/troubleshoot.
The text was updated successfully, but these errors were encountered: