Skip to content

Commit 8a77cd1

Browse files
authored
Update managed-identity-based-authentication.md
1 parent dca48fa commit 8a77cd1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ In this article, you'll set up a *robust, key rotation agnostic* solution to acc
1616

1717
You'll learn how to create a function app that can access Azure Cosmos DB data without needing to copy any Azure Cosmos DB keys. The function app will wake up every minute and record the current temperature of an aquarium fish tank. To learn how to set up a timer-triggered function app, see the [Create a function in Azure that is triggered by a timer](../azure-functions/functions-create-scheduled-function.md) article.
1818

19-
To simplify the scenario, a [Time To Live](./time-to-live.md) setting is already configured to clean-up older temperature documents.
19+
To simplify the scenario, a [Time To Live](./time-to-live.md) setting is already configured to clean up older temperature documents.
2020

2121
## Assign a system-assigned managed identity to a function app
2222

@@ -49,19 +49,19 @@ In this step, you'll assign a role to the function app's system-assigned managed
4949
5050
In this scenario, the function app will read the temperature of the aquarium, then write back that data to a container in Azure Cosmos DB. Because the function app must write the data, you'll need to assign the **DocumentDB Account Contributor** role.
5151

52-
1. Sign in to the Azure portal and go to your Azure Cosmos DB account. Open the **Access control (IAM)** pane, and then the **Role assignments** tab:
52+
1. Sign in to the Azure portal and go to your Azure Cosmos DB account. Open the **Access control (IAM)** pane and then the **Role assignments** tab:
5353

5454
![Screenshot showing the Access control pane and the Role assignments tab.](./media/managed-identity-based-authentication/cosmos-db-iam-tab.png)
5555

56-
1. Select the **+ Add** button, then **Add role assignment**.
56+
1. Select **+ Add** > **Add role assignment**.
5757

5858
1. The **Add role assignment** panel opens to the right:
5959

6060
![Screenshot showing the Add role assignment pane.](./media/managed-identity-based-authentication/cosmos-db-iam-tab-add-role-pane.png)
6161

6262
* **Role**: Select **DocumentDB Account Contributor**
63-
* **Assign access to**: Under the **Select system-assigned managed identity** subsection, select **Function App**.
64-
* **Select**: The pane will be populated with all the function apps in your subscription that have a **Managed System Identity**. In this case select the **SummaryService** function app:
63+
* **Assign access to**: Under the **Select system-assigned managed identity** subsection, select **Function App**.
64+
* **Select**: The pane will be populated with all the function apps in your subscription that have a **Managed System Identity**. In this case, select the **SummaryService** function app:
6565

6666
![Screenshot showing the Add role assignment pane populated with examples.](./media/managed-identity-based-authentication/cosmos-db-iam-tab-add-role-pane-filled.png)
6767

@@ -74,7 +74,7 @@ Now we have a function app that has a system-assigned managed identity with the
7474
This sample uses the [List Keys API](https://docs.microsoft.com/rest/api/cosmos-db-resource-provider/DatabaseAccounts/ListKeys) to access your Azure Cosmos DB account keys.
7575

7676
> [!IMPORTANT]
77-
> If you want to [assign the **Cosmos DB Account Reader**](#grant-access-to-your-azure-cosmos-account) role, you'll need to use the [List Read Only Keys API](https://docs.microsoft.com/rest/api/cosmos-db-resource-provider/DatabaseAccounts/ListReadOnlyKeys). This will populate just the read only keys.
77+
> If you want to [assign the Cosmos DB Account Reader](#grant-access-to-your-azure-cosmos-account) role, you'll need to use the [List Read Only Keys API](https://docs.microsoft.com/rest/api/cosmos-db-resource-provider/DatabaseAccounts/ListReadOnlyKeys). This will populate just the read-only keys.
7878
7979
The List Keys API returns the `DatabaseAccountListKeysResult` object. This type isn't defined in the C# libraries. The following code shows the implementation of this class:
8080

0 commit comments

Comments
 (0)