Skip to content

Commit 48e3d31

Browse files
Merge pull request #238361 from spelluru/patch-187
RBAC on Storage
2 parents aee40e6 + 9a3c3e8 commit 48e3d31

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

articles/event-hubs/event-hubs-capture-overview.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Capture streaming events - Azure Event Hubs | Microsoft Docs
33
description: This article provides an overview of the Capture feature that allows you to capture events streaming through Azure Event Hubs.
44
ms.topic: article
5-
ms.date: 05/31/2022
5+
ms.date: 05/16/2023
66
---
77

88
# Capture events through Azure Event Hubs in Azure Blob Storage or Azure Data Lake Storage
@@ -74,6 +74,26 @@ You can create an Azure Event Grid subscription with an Event Hubs namespace as
7474
## Explore captured files
7575
To learn how to explore captured Avro files, see [Explore captured Avro files](explore-captured-avro-files.md).
7676

77+
## Azure Storage account as a destination
78+
To enable capture on an event hub with Azure Storage as the capture destination, or update properties on an event hub with Azure Storage as the capture destination, the user or service principal must have an RBAC role with the following permissions assigned at the storage account scope. 
79+
80+
```
81+
Microsoft.Storage/storageAccounts/blobServices/containers/write
82+
Microsoft.Storage/storageAccounts/blobServices/containers/blobs/write permission(s) on above resource for the user or the application and retry.  
83+
```
84+
 
85+
86+
Without above permission, you will see below error: 
87+
88+
```
89+
Generic: Linked access check failed for capture storage destination <StorageAccount Arm Id>.
90+
User or the application with object id <Object Id> making the request doesn't have the required data plane write permissions.
91+
Please enable Microsoft.Storage/storageAccounts/blobServices/containers/write, Microsoft.Storage/storageAccounts/blobServices/containers/blobs/write permission(s) on above resource for the user or the application and retry.
92+
TrackingId:<ID>, SystemTracker:mynamespace.servicebus.windows.net:myhub, Timestamp:<TimeStamp>
93+
```
94+
95+
The [Storage Blob Data Owner](../role-based-access-control/built-in-roles.md#storage-blob-data-owner) is a built-in role with above permissions, so add the user account or the service principal to this role.  
96+
7797
## Next steps
7898
Event Hubs Capture is the easiest way to get data into Azure. Using Azure Data Lake, Azure Data Factory, and Azure HDInsight, you can perform batch processing and other analytics using familiar tools and platforms of your choosing, at any scale you need.
7999

0 commit comments

Comments
 (0)