Exposing Azure Service Bus through APIM, generating a SAS Token
On one of my recent projects, a client application was required to place a message onto an Azure Service Bus by using a HTTP endpoint rather than using the Service Bus SDK and with the following constraints . · The client is unable to generate the Service Bus SAS token. · Service Bus Session Id needs to be set to the customer number found in the message to ensure ordered delivery by the consumer. · Custom HTTP Request Headers may be used. I decided upon a solution that uses Azure APIM to expose the Service Bus endpoint. 1. The first step of this solution is to create an Azure Service Bus with a queue called ‘ apimqueue ’ . Please refer below screen shot. 2. Next click on created queue and navigate Shared access policy and added ‘ apimqueuesend ’ which has only Send claims. 3. Click on created ...