Skip to content

Commit aaa5b0d

Browse files
committed
Enable managed identity for an Event Hubs namespace
1 parent 26f5cfb commit aaa5b0d

File tree

6 files changed

+44
-0
lines changed

6 files changed

+44
-0
lines changed

articles/event-hubs/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,8 @@
331331
href: /azure/azure-monitor/agents/diagnostics-extension-stream-event-hubs
332332
- name: Secure
333333
items:
334+
- name: Enable managed identity for a namespace
335+
href: enable-managed-identity.md
334336
- name: Allow access from specific IP addresses
335337
href: event-hubs-ip-filtering.md
336338
- name: Allow access from specific virtual networks
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: Enable managed identity for a namespace
3+
description: Learn how to enable a system-assigned or user-assigned managed identity for an Azure Event Hubs namespace.
4+
ms.topic: how-to
5+
ms.date: 01/29/2025
6+
---
7+
8+
# Enable managed identity for an Azure Event Hubs namespace
9+
This article shows you how to enable a managed identity for an Azure Event Hubs namespace. The identity can be either a system-assigned managed identity or a user-assigned managed identity.
10+
11+
## Enable system-assigned managed identity for a namespace
12+
Here are the steps to enable a system-assigned managed identity for an Event Hubs namespace by using the Azure portal.
13+
14+
1. Sign-in to the [Azure portal](https://portal.azure.com).
15+
1. Navigate to your Event Hubs namespace.
16+
1. On the **Event Hubs namespace** page, select **Identity** on the left menu.
17+
1. On the **Identity** page, confirm that you are on the **System assigned** tab.
18+
1. For the **Status** field, select **On**.
19+
1. Select **Save** the command bar.
20+
21+
:::image type="content" source="./media/enable-managed-identity/system-assigned-identity.png" alt-text="Screenshot that shows the Identity page for an Event Hubs namespace with system-assigned managed identity enabled." lightbox="./media/enable-managed-identity/system-assigned-identity.png":::
22+
1. In the Pop-up window, select **Yes**.
23+
24+
:::image type="content" source="./media/enable-managed-identity/system-assigned-identity-enable.png" alt-text="Screenshot that shows the popup window to enable the system-assigned identity.":::
25+
26+
27+
## Enable user-assigned managed identity for a namespace
28+
Here are the steps to enable a user-assigned managed identity for an Event Hubs namespace by using the Azure portal.
29+
30+
1. Sign-in to the [Azure portal](https://portal.azure.com).
31+
1. If you didn't create a user-assigned identity already, create one by following instructions from: [Manage user-assigned managed identities](/entra/identity/managed-identities-azure-resources/how-manage-user-assigned-managed-identities).
32+
1. In the Azure portal, navigate to your Event Hubs namespace.
33+
1. On the **Event Hubs namespace** page, select **Identity** on the left menu.
34+
1. Switch to the **User assigned** tab, and select **+ Add** on the command bar.
35+
36+
:::image type="content" source="./media/enable-managed-identity/user-assigned-add-button.png" alt-text="Screenshot that shows the User assigned tab." lightbox="./media/enable-managed-identity/user-assigned-add-button.png":::
37+
1. In the **Add user assigned identity** pane, search for and select a user-assigned identity, and then select **Add**.
38+
39+
:::image type="content" source="./media/enable-managed-identity/select-user-assigned-identity.png" alt-text="Screenshot that shows the selection of a user assigned identity." :::
40+
41+
## Related content
42+
After you enable managed identity for your Event Hubs namespace, grant the identity appropriate role on a target resource. For example, if you want to enable capturing of event data on an event hub using a managed identity, the managed identity should be added to the **Storage Blob Data Contributor** role on the Azure storage account. For more information on using identities for capturing event data, see [Authenticate modes for capturing events to destinations in Azure Event Hubs](event-hubs-capture-managed-identity.md).
33 KB
Loading
15.7 KB
Loading
62 KB
Loading
74.2 KB
Loading

0 commit comments

Comments
 (0)