Creating an Azure Function event hub trigger 

Perform the following steps:

  1. Create a new Azure Function by choosing Event Hub Trigger in the template list.
  2. Once you have selected the template, you might have to install the extensions. Then, you will need to provide the name of the event hub, capturemessage. If you don't have any connections configured yet, you need to click on the New button.
  3. Clicking on the New button will open a Connection popup, where you can choose your Event Hub and other details. Choose the required details and click on the Select button, as shown in the following screenshot:
  1. The previous step will populate the Event Hub Connection drop-down. Finally, click on Create to create the function.