Skip to content

Commit 14fc391

Browse files
authored
Merge pull request #77357 from spelluru/ehubrbac0520
Event Hubs RBAC
2 parents d97fbf9 + 8a48729 commit 14fc391

File tree

6 files changed

+46
-4
lines changed

6 files changed

+46
-4
lines changed

articles/event-hubs/event-hubs-managed-service-identity.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.service: event-hubs
1010
ms.devlang: na
1111
ms.topic: article
1212
ms.custom: seodec18
13-
ms.date: 12/06/2018
13+
ms.date: 05/20/2019
1414
ms.author: shvija
1515

1616
---
@@ -24,8 +24,28 @@ With managed identities, the Azure platform manages this runtime identity. You d
2424
Once it is associated with a managed identity, an Event Hubs client can do all authorized operations. Authorization is granted by associating a managed identity with Event Hubs roles.
2525

2626
## Event Hubs roles and permissions
27+
You can add a managed identity to the **Event Hubs Data Owner** role of an Event Hubs namespace. This role grants the identity, full control (for management and data operations) on all entities in the namespace.
2728

28-
You can only add a managed identity to the "Owner" or "Contributor" roles of an Event Hubs namespace, which grants the identity full control on all entities in the namespace. However, management operations that change the namespace topology are initially supported only though Azure Resource Manager. It's not through the native Event Hubs REST management interface. This support also means that you cannot use the .NET Framework client [NamespaceManager](/dotnet/api/microsoft.servicebus.namespacemanager) object within a managed identity.
29+
>[!IMPORTANT]
30+
> We earlier supported adding managed identity to the **Owner** or **Contributor** role. However, data access privileges for **Owner** and **Contributor** role are no longer honored. If you are using the **Owner** or **Contributor** role, switch to using the **Event Hubs Data Owner** role.
31+
32+
To use the new built-in role, follow these steps:
33+
34+
1. Navigate to the [Azure portal](https://portal.azure.com)
35+
2. Navigate to the Event Hubs namespace.
36+
3. On the **Event Hubs Namespace** page, select **Access Control(IAM)** from the left menu.
37+
4. On the **Access Control (IAM)** page, select **Add** in the **Add a role assignment** section.
38+
39+
![Add a role assignment button](./media/event-hubs-managed-service-identity/add-role-assignment-button.png)
40+
5. On the **Add role assignment** page, do the following steps:
41+
1. For **Role**, select **Azure Event Hubs Data Owner**.
42+
2. Select the **identity** to be added to the role.
43+
3. Select **Save**.
44+
45+
![Event Hubs Data Owner role](./media/event-hubs-managed-service-identity/add-role-assignment-dialog.png)
46+
6. Switch to the **Role assignments** page and confirm that the user is added to the **Azure Event Hubs Data Owner** role.
47+
48+
![Confirm user is added to the role](./media/event-hubs-managed-service-identity/role-assignments.png)
2949

3050
## Use Event Hubs with managed identities for Azure Resources
3151

articles/event-hubs/event-hubs-role-based-access-control.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.service: event-hubs
1010
ms.devlang: na
1111
ms.topic: article
1212
ms.custom: seodec18
13-
ms.date: 12/06/2018
13+
ms.date: 05/21/2019
1414
ms.author: shvija
1515

1616
---
@@ -24,8 +24,13 @@ For Azure Event Hubs, the management of namespaces and all related resources thr
2424
An application that uses Azure AD RBAC does not need to handle SAS rules and keys or any other access tokens specific to Event Hubs. The client app interacts with Azure AD to establish an authentication context, and acquires an access token for Event Hubs. With domain user accounts that require interactive login, the application never handles any credentials directly.
2525

2626
## Event Hubs roles and permissions
27+
Azure provides the following built-in RBAC roles for authorizing access to an Event Hubs namespace:
28+
29+
The [Event Hubs Data Owner (Preview)](../role-based-access-control/built-in-roles.md#service-bus-data-owner) role enables data access to an Event Hubs namespace and its entities (queues, topics, subscriptions, and filters)
30+
31+
>[!IMPORTANT]
32+
> We earlier supported adding managed identity to the **Owner** or **Contributor** role. However, data access privileges for **Owner** and **Contributor** role are no longer honored. If you are using the **Owner** or **Contributor** role, switch to using the **Event Hubs Data Owner** role.
2733
28-
For the initial public preview, you can only add Azure AD accounts and service principals to the "Owner" or "Contributor" roles of an Event Hubs namespace. This operation grants the identity full control over all entities in the namespace. Management operations that change the namespace topology are initially only supported though Azure resource management and not through the native Event Hubs REST management interface. This support also means that the .NET Framework client [NamespaceManager](/dotnet/api/microsoft.servicebus.namespacemanager) object cannot be used with an Azure AD account.
2934

3035
## Use Event Hubs with an Azure AD domain user account
3136

97.4 KB
Loading
21.2 KB
Loading
50 KB
Loading

articles/role-based-access-control/built-in-roles.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ The following table provides a brief description of each built-in role. Click th
8484
| [DevTest Labs User](#devtest-labs-user) | Lets you connect, start, restart, and shutdown your virtual machines in your Azure DevTest Labs. |
8585
| [DNS Zone Contributor](#dns-zone-contributor) | Lets you manage DNS zones and record sets in Azure DNS, but does not let you control who has access to them. |
8686
| [DocumentDB Account Contributor](#documentdb-account-contributor) | Can manage Azure Cosmos DB accounts. Azure Cosmos DB is formerly known as DocumentDB. |
87+
| [Event Hubs Data Owner](#event-hubs-data-owner) | Allows full access to Azure Event Hubs resources |
8788
| [EventGrid EventSubscription Contributor](#eventgrid-eventsubscription-contributor) | Lets you manage EventGrid event subscription operations. |
8889
| [EventGrid EventSubscription Reader](#eventgrid-eventsubscription-reader) | Lets you read EventGrid event subscriptions. |
8990
| [HDInsight Cluster Operator](#hdinsight-cluster-operator) | Lets you read and modify HDInsight cluster configurations. |
@@ -1404,6 +1405,22 @@ The following table provides a brief description of each built-in role. Click th
14041405
> | **NotDataActions** | |
14051406
> | *none* | |
14061407
1408+
## Event Hubs Data Owner
1409+
1410+
> [!div class="mx-tableFixed"]
1411+
> | | |
1412+
> | --- | --- |
1413+
> | **Description** | Allows for full access to Azure Event Hubs resources. |
1414+
> | **Id** | f526a384-b230-433a-b45c-95f59c4a2dec |
1415+
> | **Actions** | |
1416+
> | Microsoft.EventHubs/* | Allows full management access to Event Hubs namespace |
1417+
> | **NotActions** | |
1418+
> | *none* | |
1419+
> | **DataActions** | |
1420+
> | Microsoft.EventHubs/* | Allows full data access to Event Hubs namespace |
1421+
> | **NotDataActions** | |
1422+
> | *none* | |
1423+
14071424
## EventGrid EventSubscription Contributor
14081425
> [!div class="mx-tableFixed"]
14091426
> | | |

0 commit comments

Comments
 (0)