Send Messages from Postman to Service Bus

Introduction

This article demonstrates to Configure the Permissions to Azure Service Bus for sending messages using postman by Authorization. This article starts with introduction to configure the permission to service Bus. After that, it demonstrates how to send the message from Postman. 

Configure Permissions to Service Bus

  • Open the Service Bus
    Configure Permissions to Service Bus
  • Select the existing Service Bus
    Configure Permissions to Service Bus
  • Navigate to Access Control (IAM)
    Configure Permissions to Service Bus
  • Click on role assignment to add the role
    Configure Permissions to Service Bus
  • Select “Azure Service Bus Data Sender” from the Search by role and click Next
    Configure Permissions to Service Bus
  • Click on +Select members and select your App registration and click on Select
    Configure Permissions to Service Bus
  • Click on Review + assign
    Configure Permissions to Service Bus
  • Go to Role assignment and check the role is assigned or not
    Configure Permissions to Service Bus

Configure Permissions to App Registration

  • Open the existing App Registration
    Configure Permissions to App Registration
  • Click on API Permission and Add the Permission
    Configure Permissions to App Registration
  • Click on API’s my organization uses and select the “Microsoft.ServiceBus”
    Configure Permissions to App Registration
  • Select user_impersonation and Click on Add Permission.
    Configure Permissions to App Registration
  • Check the Permissions added or not 
    Configure Permissions to App Registration

Configure Postman to Send Message

  • Copy queue URL and Append “/messages”
    Configure Postman to Send Message
  • Add Headers as below Configure Postman to Send Message
  • Add Body as any Message you want to send
    Configure Postman to Send Message
  • Click on Send button and you will see the status as 201 Created.
    Configure Postman to Send Message

Summary

In this article, I discussed how we can configure the roles to service bus, App Registration and send the messages using the Postman.


Similar Articles