In this video, learn how to implement and configure an Azure Event Hub using the Azure Resource Manager.
- [Instructor] Now that we've talked about event hubs, let's go ahead and configure one in Azure. I've already logged into Azure, and we're currently looking at the overview blade of our LIL messaging resource group. I'm going to go ahead, click on add to add in our event hub. I'm going to search on event hub, and then select it. The event hub blade will pop up, providing some information about event hubs. We're going to go ahead and click on create.
We're going to provide a name for event hub. This does need to be a unique name. Next, we can pick our pricing tier. And again, remember that we'll only see two of the three tiers available, the basic and standard. You need an enterprise agreement in order to see the dedicated tier. I'm going to leave it at standard. Select your subscription, your resource group, your location. Next, we can choose our throughput units. And throughput units are what we use to scale our event hubs.
By default, we can have up to 20 throughput units. I'm going to leave it at one. And our last software option, enable auto-inflate is a new feature, and that will allow us to scale up our throughput units automatically. This feature is not available in the basic tier. Go ahead and click create, that's it. Now that our event hub has provision, I'm going to go ahead and close down these windows. I'm going to refresh our resource group, and now we can see our event hub.
Let's go ahead and create an entity in that event hub. I'm going to click on event hub again, provide a unique name. Next, we can specify how many partitions we want within the event hub, I'm going to leave it as default. And then how long do you want the messages to be retained for, again, I'm going to leave this at default. We do have the option to capture our data as well. When I click on, we can configure the time window in minutes, and the size for that capture.
Then we can specify our capture provider. In this case we have Azure storage, therefore, I would be required to configure a storage container. I could also choose Azure Data Lake Store. Because I'm not going to enable capture I'm just going to go ahead and close down this blade, turn capture off. And that's all we need to do. I can just go ahead and click create. And the event hub has now been created.
If I pop into entities and event hubs, we'll see that we have our event hub here with a message retention of one day, a partition count of two, and one consumer group. I can go ahead and add in additional consumer groups if I wish to do so. and there's a consumer group. And remember, because I chose a standard pricing tier, I can have up to 20 consumer groups. I'm going to go ahead and close that blade.
If I need to scale my event hubs, I can easily do so in adjusting the throughput units, again, up to 20. I'm going to go ahead and discard that, and then close the window. And that's all there is to creating event hubs in the Azure portal.
- Creating compute-intensive applications
- Creating long-running applications
- Implementing messaging systems
- Azure Service Bus relays
- Using Azure Storage queues
- Creating an Azure Event Hub
- Creating Azure WebJobs
- Managing cloud environments with Azure Active Directory Domain Services