We need the following to implement this solution:
- Visual Studio 2017 update 3 or later
- A valid Azure subscription
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:
- Log on to the Azure portal (https://portal.azure.com/).
- In the left navigation bar, click on Service Bus. If unavailable, you can find it by clicking on More Services.
- Click on Add:
- In the Create namespace dialog, enter a namespace, say, flixone. Select the pricing tier next: Basic, Standard, or Premium.
- Select your Subscription.
- Choose an existing resource or create a new one.
- Select the location where you want to host the namespace.
- Open a newly created namespace (we just created flixone).
- Now click on Shared access policies.
- Click on RootManageSharedAccessKey. Refer to the following screenshot:
- Click on Queues in the main dialog of the flixone namespace.
- From the Policy: RootManageSharedAccessKey window, note the primary key connection string for further use. Refer to the following screenshot:
- 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.