[BUG] Use Azure Resource Manager to retrieve Connection String doesn't work #27831
Closed
3 tasks done
Labels
azure-spring
All azure-spring related issues
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Client
This issue points to a problem in the data-plane of the library.
issue-addressed
Workflow: The Azure SDK team believes it to be addressed and ready to close.
Milestone
Describe the bug
When using the Spring Cloud Azure Stream Binder for Service Bus to receive a message from a Service Bus queue using a Service Principal that is in the "Contributor" role in the Service Bus but does NOT have the Azure Service Bus Data Sender or Azure Service Bus Data Receiver roles set, the Azure Resource Manager should be able to retrieve the Connection String using the Service Principal and thus be able to send or receive messages as outlined here
This however fails in 4.0.0-beta3 and the Service Principal is lacking the permission to listen on or send to a queue without the explicit Data Sender and Data Receiver roles.
Exception or Stack Trace
To Reproduce
Steps to reproduce the behavior:
Running the sample as outlined here fails.
Code Snippet
Default, auto-wired code:
Expected behavior
The Service Principal should be able to connect to the Queue or Topic by using the Azure Resource Manager to retrieve a Connection String instead of requiring the Azure Service Bus Data Sender and Azure Service Bus Data Receiver roles.
Screenshots
n/a
Setup (please complete the following information):
Additional context
This issue is for documentation purpose. It has been addressed and fixed in 4.0.0-beta4
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: