Cloud Assert Blogs

How to create Azure Event Hub using Azure Portal

How to create Azure Event Hub using Azure Portal

Author: Sanobar Khan/Wednesday, November 2, 2022/Categories: General

Rate this article:
2.0

Pre-requisite:

You will need azure subscription before you begin.

Create a Resource Group:

  1. To create, sign-in to the Azure portal, select ‘Resource Groups’. Then select ‘Create’.

  2. On the ‘Create a Resource Group’ page, configure the settings for your new resource group.

  3. Optionally, in the ‘Tags’ tab, enter the name and value if you wish to categorize the resource.

  4. Select ‘Review + Create’ and then select‘Create’.

Create an Event Hub Namespace:

  1. To create, select ‘All Services’ in the left menu and select ‘Event Hubs’ in the ‘Analytics’ Category.



  2. Select ‘Event Hubs’. Then select ‘Create’.


  3. On the ‘Create Event Hub Namespace’ page, configure the settings for your new event hub namespace.



  4. Select ‘Networking’ tab and select your connectivity method.


  5. Select ‘Review + Create’, and then ‘Create’.


  6. On the ‘Deployment Page’, select ‘Go to resource’.



Create an Event Hub:

  1. To create an event hub within the namespace, go to ‘Event Hubs Namespace’ page, select ‘Event Hubs’ under ‘Entities’ category and select '+Event Hub'.


  2. Provide a unique name and then select ‘Review + Create’ and then select ‘Create’.


  3. We can find the newly created event hub under event hubs list.


  4. To communicate with the Azure Event Hub Instance, there will be default shared policy ‘RootManageSharedAccessKey’ created in the Event Hubs Namespace. You can get the connection string from the ‘Event Hubs Namespace’ page.



  5. On the ‘Event Hubs Namespace’ page, select ‘Shared access policies’ under ‘Settings’ Category and then select ‘RootManageSharedAccessKey’. You can find the connection string.


  6. Alternatively, you can create shared access key for each event hub instance. Normally, SAS tokens for event publishers are created with only send privileges and event consumers are created with only listen privileges on a specific event hub. To achieve this, click on the name of event hub.

  7. On the ‘Event Hub Instances’ page, select ‘Shared access policies’ under ‘Settings’ Category and then select ‘+ Add’.


  8. Provide ‘Policy Name’ and choose the rights for ‘Send’ operation. Then click ‘Create’ .


  9. We can find the newly created SAS policy under the policies list and upon clicking the newly created policy, you can find the connection string for send event.


  10. Similarly, you can create the shared access key for receive event.


Print

Number of views (1100)/Comments (0)

Leave a comment

This form collects your name, email, IP address and content so that we can keep track of the comments placed on the website. For more info check our Privacy Policy and Terms Of Use where you will get more info on where, how and why we store your data.
Add comment

Text/HTML