Skip to content

Commit 9bcc762

Browse files
Merge pull request #215238 from seesharprun/cosmos-update-data-plane-rbac
Cosmos DB | Update data-plane RBAC article
2 parents 6efa76b + 95b92d3 commit 9bcc762

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/cosmos-db/managed-identity-based-authentication.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: seesharprun
55
ms.service: cosmos-db
66
ms.subservice: nosql
77
ms.topic: how-to
8-
ms.date: 06/01/2022
8+
ms.date: 10/20/2022
99
ms.author: sidandrews
1010
ms.reviewer: justipat
1111
ms.custom: devx-track-csharp, devx-track-azurecli, subject-rbac-steps, ignite-2022
@@ -120,10 +120,10 @@ In this step, you'll query the document endpoint for the API for NoSQL account.
120120
121121
## Grant access to your Azure Cosmos DB account
122122
123-
In this step, you'll assign a role to the function app's system-assigned managed identity. Azure Cosmos DB has multiple built-in roles that you can assign to the managed identity. For this solution, you'll use the [Azure Cosmos DB Built-in Data Reader](how-to-setup-rbac.md#built-in-role-definitions) role.
123+
In this step, you'll assign a role to the function app's system-assigned managed identity. Azure Cosmos DB has multiple built-in roles that you can assign to the managed identity for control-plane access. For data-plane access, you'll create a new custom role with acess to read metadata.
124124
125125
> [!TIP]
126-
> When you assign roles, assign only the needed access. If your service requires only reading data, then assign the **Cosmos DB Built-in Data Reader** role to the managed identity. For more information about the importance of least privilege access, see the [Lower exposure of privileged accounts](../security/fundamentals/identity-management-best-practices.md#lower-exposure-of-privileged-accounts) article.
126+
> For more information about the importance of least privilege access, see the [Lower exposure of privileged accounts](../security/fundamentals/identity-management-best-practices.md#lower-exposure-of-privileged-accounts) article.
127127
128128
1. Use ``az cosmosdb show`` with the **query** parameter set to ``id``. Store the result in a shell variable named ``scope``.
129129
@@ -196,7 +196,7 @@ In this step, you'll assign a role to the function app's system-assigned managed
196196
197197
## Programmatically access the Azure Cosmos DB keys
198198
199-
We now have a function app that has a system-assigned managed identity with the **Cosmos DB Built-in Data Reader** role. The following function app will query the Azure Cosmos DB account for a list of databases.
199+
We now have a function app that has a system-assigned managed identity with the custom role. The following function app will query the Azure Cosmos DB account for a list of databases.
200200
201201
1. Create a local function project with the ``--dotnet`` parameter in a folder named ``csmsfunc``. Change your shell's directory
202202

0 commit comments

Comments
 (0)