Prerequisites

We need the following to implement this solution:

If you do not have an Azure subscription, you can get it for free by signing in here: https://azure.microsoft.com/en-us/free/.

If you have everything mentioned, you can start by following these steps:

  1. Log on to the Azure portal (https://portal.azure.com/).
  2. In the left navigation bar, click on Service Bus. If unavailable, you can find it by clicking on More Services.

 

  1. Click on Add:
  1. In the Create namespace dialog, enter a namespace, say, flixone. Select the pricing tier next: Basic, Standard, or Premium.
  2. Select your Subscription.
  3. Choose an existing resource or create a new one.
  4. Select the location where you want to host the namespace.
  5. Open a newly created namespace (we just created flixone).

 

  1. Now click on Shared access policies.
  2. Click on RootManageSharedAccessKey. Refer to the following screenshot:
  1. Click on Queues in the main dialog of the flixone namespace.
  2. From the Policy: RootManageSharedAccessKey window, note the primary key connection string for further use. Refer to the following screenshot:
  1. Click on Name to add a queue (say, flixonequeue), and click on Create (we're using REST values as default values). Refer to the following screenshot:

The preceding image is of Create Queue dialog. In the Create Queue dialog we can create a queue for example in above image we are creating a queue with the name of floxonequeue. Queues can be verified by visiting the Queues dialog.

Now we are ready to create our sender and receiver applications for messages.