Skip to content

Commit 4048019

Browse files
committed
RBAC for Event Hubs
1 parent bce2633 commit 4048019

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/event-hubs/authorize-access-azure-active-directory.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
title: Authorize access with Microsoft Entra ID
33
description: This article provides information on authorizing access to Event Hubs resources using Microsoft Entra ID.
44
ms.topic: conceptual
5-
ms.date: 10/25/2022
5+
ms.date: 12/11/2023
66
---
77

88
# Authorize access to Event Hubs resources using Microsoft Entra ID
9-
Azure Event Hubs supports using Microsoft Entra ID to authorize requests to Event Hubs resources. With Microsoft Entra ID, you can use Azure role-based access control (Azure RBAC) to grant permissions to a security principal, which may be a user, or an application service principal. To learn more about roles and role assignments, see [Understanding the different roles](../role-based-access-control/overview.md).
9+
Azure Event Hubs supports using Microsoft Entra ID to authorize requests to Event Hubs resources. With Microsoft Entra ID, you can use Azure role-based access control (Azure RBAC) to grant permissions to a security principal, which can be a user, or an application service principal. To learn more about roles and role assignments, see [Understanding the different roles](../role-based-access-control/overview.md).
1010

1111
## Overview
1212
When a security principal (a user, or an application) attempts to access an Event Hubs resource, the request must be authorized. With Microsoft Entra ID, access to a resource is a two-step process.
@@ -23,7 +23,7 @@ Native applications and web applications that make requests to Event Hubs can al
2323
## Assign Azure roles for access rights
2424
Microsoft Entra authorizes access rights to secured resources through [Azure role-based access control (Azure RBAC)](../role-based-access-control/overview.md). Azure Event Hubs defines a set of Azure built-in roles that encompass common sets of permissions used to access event hub data and you can also define custom roles for accessing the data.
2525

26-
When an Azure role is assigned to a Microsoft Entra security principal, Azure grants access to those resources for that security principal. Access can be scoped to the level of subscription, the resource group, the Event Hubs namespace, or any resource under it. A Microsoft Entra security principal may be a user, or an application service principal, or a [managed identity for Azure resources](../active-directory/managed-identities-azure-resources/overview.md).
26+
When an Azure role is assigned to a Microsoft Entra security principal, Azure grants access to those resources for that security principal. Access can be scoped to the level of subscription, the resource group, the Event Hubs namespace, or any resource under it. A Microsoft Entra security principal can be a user, or an application service principal, or a [managed identity for Azure resources](../active-directory/managed-identities-azure-resources/overview.md).
2727

2828
## Azure built-in roles for Azure Event Hubs
2929
Azure provides the following Azure built-in roles for authorizing access to Event Hubs data using Microsoft Entra ID and OAuth:
@@ -42,13 +42,13 @@ Before you assign an Azure role to a security principal, determine the scope of
4242
The following list describes the levels at which you can scope access to Event Hubs resources, starting with the narrowest scope:
4343

4444
- **Consumer group**: At this scope, role assignment applies only to this entity. Currently, the Azure portal doesn't support assigning an Azure role to a security principal at this level.
45-
- **Event hub**: Role assignment applies to the Event Hub entity and the consumer group under it.
45+
- **Event hub**: Role assignment applies to event hubs and their consumer groups.
4646
- **Namespace**: Role assignment spans the entire topology of Event Hubs under the namespace and to the consumer group associated with it.
4747
- **Resource group**: Role assignment applies to all the Event Hubs resources under the resource group.
4848
- **Subscription**: Role assignment applies to all the Event Hubs resources in all of the resource groups in the subscription.
4949

5050
> [!NOTE]
51-
> - Keep in mind that Azure role assignments may take up to five minutes to propagate.
51+
> - Keep in mind that Azure role assignments might take up to five minutes to propagate.
5252
> - This content applies to both Event Hubs and Event Hubs for Apache Kafka. For more information on Event Hubs for Kafka support, see [Event Hubs for Kafka - security and authentication](azure-event-hubs-kafka-overview.md#security-and-authentication).
5353
5454

@@ -59,7 +59,7 @@ For more information about how built-in roles are defined, see [Understand role
5959
## Samples
6060
- [Microsoft.Azure.EventHubs samples](https://github.com/Azure/azure-event-hubs/tree/master/samples/DotNet/Microsoft.Azure.EventHubs/Rbac).
6161

62-
These samples use the old **Microsoft.Azure.EventHubs** library, but you can easily update it to using the latest **Azure.Messaging.EventHubs** library. To move the sample from using the old library to new one, see the [Guide to migrate from Microsoft.Azure.EventHubs to Azure.Messaging.EventHubs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/MigrationGuide.md).
62+
These samples use the legacy **Microsoft.Azure.EventHubs** library, but you can easily update it to using the latest **Azure.Messaging.EventHubs** library. To move the sample from using the legacy library to new one, see the [Guide to migrate from Microsoft.Azure.EventHubs to Azure.Messaging.EventHubs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/MigrationGuide.md).
6363
- [Azure.Messaging.EventHubs samples](https://github.com/Azure/azure-event-hubs/tree/master/samples/DotNet/Azure.Messaging.EventHubs/ManagedIdentityWebApp)
6464

6565
This sample has been updated to use the latest **Azure.Messaging.EventHubs** library.

0 commit comments

Comments
 (0)