Delen via


Event Hubs

Connect to Azure Event Hubs to send and receive events.

This connector is available in the following products and regions:

Service Class Regions
Logic Apps Standard All Logic Apps regions and Integration Service Environments (ISEs)
Power Automate Premium All Power Automate regions
Power Apps Premium All Power Apps regions
Contact
Name Microsoft
URL Microsoft LogicApps Support
Microsoft Power Automate Support
Microsoft Power Apps Support
Connector Metadata
Publisher Microsoft
Website https://azure.microsoft.com/services/event-hubs/

Connector in-depth

For more information about the connector, see the in-depth section.

Microsoft Entra ID authentication and Azure Event Hubs connector

In order to use Microsoft Entra ID authentication, the account that is being used needs to be assigned an specific role assignment, for more information, visit Assign an Azure role for access rights - Azure Event Hubs:

Managed identity authentication and Azure Event Hubs connector

Currently, managed identity authentication is only supported in Logic Apps. Follow steps below to use it to connect to your Azure Event Hubs:

  1. Create an Azure Managed Identity
  2. Give identity access to Azure Event Hubs resources. For more details, visit Assign an Azure role for access rights - Azure Event Hubs
  3. If using a user-assigned identity, associate the logic app with the managed identity
    1. Navigate to the Logic App that will use the managed identity.
    2. Under Settings section of the blade, click Identity
    3. Go to User assigned tab and click on Add
    4. Select the managed identity to be used and click on Add

For more information about authenticating with managed identities in Logic Apps visit Authenticate access to Azure resources using managed identities in Azure Logic Apps

Known issues and limitations with triggers

  • Trigger polling occurs one partition at-a-time. This can potentially cause increased delays as partition count grows.

Creating a connection

The connector supports the following authentication types:

Access Key Provide connection string to access your Azure Event Hubs. All regions except Azure Government and Department of Defense (DoD) in Azure Government and US Government (GCC) and US Government (GCC-High) Not shareable
Access Key (Azure Government) Provide connection string to access your Azure Event Hubs. Azure Government and Department of Defense (DoD) in Azure Government and US Government (GCC) and US Government (GCC-High) only Not shareable
Azure AD Integrated Use Azure Active Directory to access your Azure Event Hubs. MOONCAKE only Not shareable
Azure AD Integrated (Azure Government) Use Azure Active Directory to access your Azure Event Hubs. Azure Government and Department of Defense (DoD) in Azure Government and US Government (GCC) and US Government (GCC-High) only Not shareable
Logic Apps Managed Identity Create a connection using a LogicApps Managed Identity LOGICAPPS only Shareable
Microsoft Entra ID Integrated Use Microsoft Entra ID to access your Azure Event Hubs. All regions except Azure Government and Department of Defense (DoD) in Azure Government and MOONCAKE and US Government (GCC) and US Government (GCC-High) Not shareable
Default [DEPRECATED] This option is only for older connections without an explicit authentication type, and is only provided for backward compatibility. All regions Not shareable

Access Key

Auth ID: connectionstringauth

Applicable: All regions except Azure Government and Department of Defense (DoD) in Azure Government and US Government (GCC) and US Government (GCC-High)

Provide connection string to access your Azure Event Hubs.

This is not shareable connection. If the power app is shared with another user, another user will be prompted to create new connection explicitly.

Name Type Description Required
Connection String securestring Azure Event Hubs Connection String True

Access Key (Azure Government)

Auth ID: connectionstringauth

Applicable: Azure Government and Department of Defense (DoD) in Azure Government and US Government (GCC) and US Government (GCC-High) only

Provide connection string to access your Azure Event Hubs.

This is not shareable connection. If the power app is shared with another user, another user will be prompted to create new connection explicitly.

Name Type Description Required
Connection String securestring Azure Event Hubs Connection String True

Azure AD Integrated

Auth ID: tokenBasedAuth

Applicable: MOONCAKE only

Use Azure Active Directory to access your Azure Event Hubs.

This is not shareable connection. If the power app is shared with another user, another user will be prompted to create new connection explicitly.

Name Type Description Required
Namespace Endpoint string Provide Event Hubs Namespace Endpoint (e.g: sb://testeh.servicebus.windows.net/) True

Azure AD Integrated (Azure Government)

Auth ID: tokenBasedAuth

Applicable: Azure Government and Department of Defense (DoD) in Azure Government and US Government (GCC) and US Government (GCC-High) only

Use Azure Active Directory to access your Azure Event Hubs.

This is not shareable connection. If the power app is shared with another user, another user will be prompted to create new connection explicitly.

Name Type Description Required
Namespace Endpoint string Provide Event Hubs Namespace Endpoint (e.g: sb://testeh.servicebus.windows.net/) True

Logic Apps Managed Identity

Auth ID: managedIdentityAuth

Applicable: LOGICAPPS only

Create a connection using a LogicApps Managed Identity

This is shareable connection. If the power app is shared with another user, connection is shared as well. For more information, please see the Connectors overview for canvas apps - Power Apps | Microsoft Docs

Name Type Description Required
LogicApps Managed Identity managedIdentity Sign in with a Logic Apps Managed Identity True
Namespace Endpoint string Provide Event Hubs Namespace Endpoint (e.g: sb://testeh.servicebus.windows.net/) True

Microsoft Entra ID Integrated

Auth ID: tokenBasedAuth

Applicable: All regions except Azure Government and Department of Defense (DoD) in Azure Government and MOONCAKE and US Government (GCC) and US Government (GCC-High)

Use Microsoft Entra ID to access your Azure Event Hubs.

This is not shareable connection. If the power app is shared with another user, another user will be prompted to create new connection explicitly.

Name Type Description Required
Namespace Endpoint string Provide Event Hubs Namespace Endpoint (e.g: sb://testeh.servicebus.windows.net/) True

Default [DEPRECATED]

Applicable: All regions

This option is only for older connections without an explicit authentication type, and is only provided for backward compatibility.

This is not shareable connection. If the power app is shared with another user, another user will be prompted to create new connection explicitly.

Name Type Description Required
Connection String securestring Azure Event Hubs Connection String True

Throttling Limits

Name Calls Renewal Period
API calls per connection 6000 60 seconds

Actions

Send event

Send event.

Send one or more events to the Event Hub partition (Preview)

Send one or more events to the Event Hub partition.

Send event

Send event.

Parameters

Name Key Required Type Description
Event Hub name
eventHubName True string

Name of the Event Hub.

Content
ContentData byte

Content of the event

Properties
Properties object

Key-value pairs for each application property

Partition key
partitionKey string

Partition key.

Send one or more events to the Event Hub partition (Preview)

Send one or more events to the Event Hub partition.

Parameters

Name Key Required Type Description
Event Hub name
eventHubName True string

Name of the Event Hub.

Content
ContentData byte

Content of the event

Properties
Properties object

Key-value pairs for each application property

Partition key
partitionKey True string

Partition key.

Triggers

When events are available in Event Hub

When events are available in Event Hub.

When events are available in Event Hub

When events are available in Event Hub.

Parameters

Name Key Required Type Description
Event Hub name
eventHubName True string

Name of the Event Hub.

Content type
contentType string

content type of the event.

Content schema
contentSchema string

content schema of the event.

Consumer group name
consumerGroupName string

Name of the consumer group.

Minimum partition key
minimumPartitionKey string

Minimum partition key to read from.

Maximum partition key
maximumPartitionKey string

Maximum partition key to read from.

Maximum events count
maximumEventsCount integer

Maximum number of events to read in a batch.

Returns

The outputs of this operation are dynamic.