Azure Event Hub: Create Event Hub Part2

In our last blog, we discussed everything about Event Hub in detail including What is Event Hub, its architecture, and its components. Here in this blog, we will be discussing more on How to create an event hub using Azure Portal?

Create Event Hub using Azure Portal

Step 1 - Sign in to the Azure Portal

Step 2 - On the Portal, search for Event Hubs. 


Step 3 - Click "New" & in the "Create Namespace" blade, select your subscription, followed by "Resource Group". Then enter the name of your Event Hub and choose the "Pricing Tier". Currently, there are 2 Pricing Tier i.e Basic tier which has only 1 Consumer Group and Standard tier with 20 Consumer Groups. Once done with the pricing tier, select the "Throughput unit". (To know more about the Throughput unit refer to Part1). Finally, press "Review & Create". 

Step 4 - Once the deployment is succeeded, open the Namespace & Click on "+EventHub" to create EventHub. 


Step 5 - Provide the name of Event Hub. Then "Partition count" again needs to be decided based on the use case. Now select the "Retention Period" which can be in between 1 -7 days. Followed by a toggle button to ON/OFF the "Capture". So, in case want to save the data in Azure Storage or ADLS that can be specified along with "Time Window (minutes)" & "Window Size(MB)". In case the user has opted for Capture Events, the user needs to also set the "file format". 


Step 6 - Wait for some time and your event hub will be created successfully. However, to connect Event Hub from an external source go to "Shared access policies" and use the connection string for connectivity. 


Now you have successfully created Event Hub. So, try creating your own Namespace & Enjoy using it. 

In our next blog, we will write a Producer and Consumer in Python which will Produce some Messages and Event Hub Consumer will consume and process those messages. 

If you like this blog, please do show your appreciation by hitting like button and sharing this blog. Also, drop any comments about the post & improvements if needed. Till then HAPPY LEARNING.

Comments