Skip to content

Commit 8e1f923

Browse files
Merge pull request #282192 from axisc/encourage_capture_with_msi
Encourage Event Hubs capture to be used with MSI
2 parents caf17cf + f123683 commit 8e1f923

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

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

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,29 @@ ms.date: 03/20/2024
77

88

99
# 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.
1410

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.
1612

17-
With this approach, you can capture data to destinations resources that are in the **same subscription** only.
13+
## Use managed identity
1814

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.
2116

2217
:::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":::
2318

2419
You can use system-assigned or user-assigned managed identities with Event Hubs Capture destinations.
2520

26-
## Use a system-assigned managed identity to capture events
21+
### Use a system-assigned managed identity to capture events
2722
System-assigned Managed Identity is automatically created and associated with an Azure resource, which is an Event Hubs namespace in this case.
2823

2924
To use system assigned identity, the capture destination must have the required role assignment enabled for the corresponding system assigned identity.
3025
Then you can select `System Assigned` managed identity option when enabling the capture feature in an event hub.
3126

3227
:::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.":::
3328

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.
3530

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.
3833

3934
```json
4035
{
@@ -296,7 +291,7 @@ Here's an example Azure Resource Manager template to configure capturing of data
296291
}
297292
```
298293

299-
## Use a user-assigned managed identity to capture events
294+
### Use a user-assigned managed identity to capture events
300295
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.
301296

302297
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
306301
Then capture agent would use the configured user assigned identity for authentication and authorization with the capture destination.
307302

308303

309-
### Capturing events to a capture destination in a different subscription
304+
#### Capturing events to a capture destination in a different subscription
310305
The Event Hubs Capture feature also support capturing data to a capture destination in a different subscription with the use of managed identity.
311306

312307
> [!IMPORTANT]
@@ -378,3 +373,11 @@ For example, following ARM template can be used to create an event hub with capt
378373
}
379374
]
380375
```
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

Comments
 (0)