Authorization is implemented using Microsoft Entra Json Web Token. The client application should be assigned with Azure Service Bus Data Sender role to publish the messages to Service Bus.
To configure Authorization, follow these steps.
-
Login the Azure portal and navigate to the newly created Service Bus topic.
-
On the left menu, select Access Control (IAM) > Role Assignments and then select + Add.
-
On the Add Role Assignment page, select Azure Service Bus Data Sender for Role, and then select Next.
-
Choose User, group, or Service principal for Assign access to and then select +Select members.
-
Select your client application that is newly registered. (in this example, SmatClientApp2).
-
Select Review + assign to save the role assignment.
Repeat the above steps for all other topics.