> For the complete documentation index, see [llms.txt](https://docs.frends.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.frends.com/tasks/tasks/azure-event-hub.md).

# Azure Event Hub

Frends offers seamless integration with [Azure Event Hub](https://azure.microsoft.com/en-us/products/event-hubs), enabling you to effortlessly connect and automate data flows between your systems and Azure Event Hub.

Frends has tasks for performing all core Azure Event Hub operations.

By leveraging Frends' task-based approach, you can configure and customize Azure Event Hub integrations according to your specific requirements. Frends offers a wide range of tasks that facilitate integrations to a variety of systems and protocols.

## Getting Microsoft credentials

To get data needed for connection you need to register an application in Azure Active Directory and grant it the necessary permissions. Once you have registered the application, you can obtain the required credentials, which will be used to configure the connection in Frends. To do that you should do following steps:

1. Sign in to the [Microsoft Entra admin center](https://entra.microsoft.com/) or [Azure Portal](https://portal.azure.com/).
2. Go to **Identity** > **Applications** > **App registrations**.
3. Select your application from the list (or create a New registration).
4. On the Overview page, copy the following values:

* **Application (client) ID** $\rightarrow$ `ClientId`
* **Directory (tenant) ID** $\rightarrow$ `TenantId`

5. The Client Secret acts as the "password" for the application. It is used to prove the application's identity when requesting a token.

Here you can find some useful Microsoft guides:

* [How to find your Tenant ID](https://learn.microsoft.com/en-us/entra/fundamentals/how-to-find-tenant)
* [Register an application with the Microsoft identity platform](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app)
* [Create a new client secret](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app#add-a-client-secret)

## Use cases

Below you will find typical use cases for Azure Event Hub integrations and how they are implemented in Frends.

### Receive events

By using the [`Receive`](/tasks/tasks/azure-event-hub/receive.md) task we can create an integration that receives incoming events and saves them to a database.

<figure><img src="/files/ipOpTtKHtFt40PyXkAdU" alt=""><figcaption><p>Receive events</p></figcaption></figure>

### Send events

By using AMQP trigger and the [`Send`](/tasks/tasks/azure-event-hub/send.md) task we can create an integration that listens for incoming AMQP messages, enriches them with some metadata (e.g. correlation ID) and forwards them to Event Hub

<figure><img src="/files/tUXc5EfMkJy0lpBez89l" alt=""><figcaption><p>Send events</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.frends.com/tasks/tasks/azure-event-hub.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
