You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/event-hubs/event-hubs-capture-managed-identity.md
+17-14Lines changed: 17 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,34 +7,29 @@ ms.date: 03/20/2024
7
7
8
8
9
9
# Authenticate modes for capturing events to destinations in Azure Event Hubs
10
-
Azure Event Hubs allows you to select different authentication modes when capturing events to a destination such as [Azure Blob storage](https://azure.microsoft.com/services/storage/blobs/) or [Azure Data Lake Storage Gen 1 or Gen 2](https://azure.microsoft.com/services/data-lake-store/) account of your choice. The authentication mode determines how the capture agent running in Event Hubs authenticate with the capture destination.
11
-
12
-
## SAS based authentication
13
-
The default authentication method is to use Shared Access Signature(SAS) to access the capture destination from Event Hubs service.
14
10
15
-
:::image type="content" source="./media/event-hubs-capture-overview/event-hubs-capture-default.png" alt-text="Image showing capturing of Event Hubs data into Azure Storage or Azure Data Lake Storage using default SAS authentication mode":::
11
+
Azure Event Hubs allows you to select different authentication modes when capturing events to a destination such as [Azure Blob storage](https://azure.microsoft.com/services/storage/blobs/)or [Azure Data Lake Storage Gen 1 or Gen 2](https://azure.microsoft.com/services/data-lake-store/) account of your choice. The authentication mode determines how the capture agent running in Event Hubs authenticate with the capture destination.
16
12
17
-
With this approach, you can capture data to destinations resources that are in the **same subscription** only.
13
+
## Use managed identity
18
14
19
-
## Use managed identity
20
-
With [managed identity](../active-directory/managed-identities-azure-resources/overview.md), users can seamlessly capture data to a preferred destination by using Microsoft Entra ID based authentication and authorization.
15
+
[Managed identity](../active-directory/managed-identities-azure-resources/overview.md) is the preferred way to seamlessly access the capture destination from your Event Hub, using Microsoft Entra ID based authentication and authorization.
21
16
22
17
:::image type="content" source="./media/event-hubs-capture-overview/event-hubs-capture-msi.png" alt-text="Image showing capturing of Event Hubs data into Azure Storage or Azure Data Lake Storage using Managed Identity":::
23
18
24
19
You can use system-assigned or user-assigned managed identities with Event Hubs Capture destinations.
25
20
26
-
## Use a system-assigned managed identity to capture events
21
+
###Use a system-assigned managed identity to capture events
27
22
System-assigned Managed Identity is automatically created and associated with an Azure resource, which is an Event Hubs namespace in this case.
28
23
29
24
To use system assigned identity, the capture destination must have the required role assignment enabled for the corresponding system assigned identity.
30
25
Then you can select `System Assigned` managed identity option when enabling the capture feature in an event hub.
31
26
32
27
:::image type="content" source="./media/event-hubs-capture-overview/event-hubs-captute-system-assigned.png" alt-text="Image showing capturing of Event Hubs data into Azure Storage or Azure Data Lake Storage using System Assigned managed identity.":::
33
28
34
-
Then capture agent would use the identity of the namespace for authentication and authorization with the capture destination.
29
+
Then capture agent would use the identity of the namespace for authentication and authorization with the capture destination.
35
30
36
-
### Azure Resource Manager template
37
-
Here's an example Azure Resource Manager template to configure capturing of data using a system-assigned managed identity.
31
+
####Azure Resource Manager template
32
+
Here's an example Azure Resource Manager (ARM) template to configure capturing of data using a system-assigned managed identity.
38
33
39
34
```json
40
35
{
@@ -296,7 +291,7 @@ Here's an example Azure Resource Manager template to configure capturing of data
296
291
}
297
292
```
298
293
299
-
## Use a user-assigned managed identity to capture events
294
+
###Use a user-assigned managed identity to capture events
300
295
You can create a user-assigned managed identity and use it for authenticate and authorize with the capture destination of Event hubs. Once the managed identity is created, you can assign it to the Event Hubs namespace and make sure that the capture destination has the required role assignment enabled for the corresponding user assigned identity.
301
296
302
297
Then you can select `User Assigned` managed identity option when enabling the capture feature in an event hub and assign the required user assigned identity when enabling the capture feature.
@@ -306,7 +301,7 @@ Then you can select `User Assigned` managed identity option when enabling the ca
306
301
Then capture agent would use the configured user assigned identity for authentication and authorization with the capture destination.
307
302
308
303
309
-
### Capturing events to a capture destination in a different subscription
304
+
####Capturing events to a capture destination in a different subscription
310
305
The Event Hubs Capture feature also support capturing data to a capture destination in a different subscription with the use of managed identity.
311
306
312
307
> [!IMPORTANT]
@@ -378,3 +373,11 @@ For example, following ARM template can be used to create an event hub with capt
378
373
}
379
374
]
380
375
```
376
+
377
+
## Related content
378
+
379
+
Learn more about the feature and how to enable it using the Azure portal and Azure Resource Manager template:
380
+
381
+
- [Capture events through Azure Event Hubs in Azure Blob Storage or Azure Data Lake Storage](event-hubs-capture-overview.md)
382
+
- [Use the Azure portal to enable Event Hubs Capture](event-hubs-capture-enable-through-portal.md)
383
+
- [Use an Azure Resource Manager template to enable Event Hubs Capture](event-hubs-resource-manager-namespace-event-hub-enable-capture.md)
0 commit comments