Skip to content

Commit 2ffa862

Browse files
Merge pull request #280500 from ealsur/users/ealsur/cfproles
Cosmos DB Change Feed Processor: Adding roles and permissions
2 parents 20328da + af8dc85 commit 2ffa862

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

articles/cosmos-db/nosql/change-feed-processor.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.service: cosmos-db
88
ms.subservice: nosql
99
ms.devlang: csharp
1010
ms.topic: conceptual
11-
ms.date: 04/19/2024
11+
ms.date: 07/10/2024
1212
ms.custom: devx-track-csharp, build-2023
1313
---
1414

@@ -252,6 +252,20 @@ The change feed processor can be hosted in any platform that supports long-runni
252252

253253
Although the change feed processor can run in short-lived environments because the lease container maintains the state, the startup cycle of these environments adds delays to the time it takes to receive notifications (due to the overhead of starting the processor every time the environment is started).
254254

255+
## Role-based access requirements
256+
257+
When using Microsoft Entra ID as authentication mechanism, make sure the identity has the proper [permissions](../how-to-setup-rbac.md#permission-model):
258+
259+
* On the monitored container:
260+
* `Microsoft.DocumentDB/databaseAccounts/readMetadata`
261+
* `Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/readChangeFeed`
262+
* On the lease container:
263+
* `Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read`
264+
* `Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create`
265+
* `Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/replace`
266+
* `Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/delete`
267+
* `Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/executeQuery`
268+
255269
## Additional resources
256270

257271
* [Azure Cosmos DB SDK](sdk-dotnet-v2.md)

0 commit comments

Comments
 (0)