To create an Event Hub in Azure Portal, follow these steps:
- From New, select the Event Hubs services and create a new Event Hub by providing a name, resource, and other required details, such as pricing tier or location.
- Once the Event Hub is created and deployed, open the Event Hub and navigate to Settings | Shared Access Polices.
- Create a Policy by selecting all claims, that is Manage, Send, and Listen.
- Finally, note down its connection string and event hub name for further reference.
Fig: Connection String-Primary Key for Event Hub