You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cosmos-db/managed-identity-based-authentication.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ In this article, you'll set up a *robust, key rotation agnostic* solution to acc
16
16
17
17
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.
18
18
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 cleanup older temperature documents.
20
20
21
21
## Assign a system-assigned managed identity to a function app
22
22
@@ -49,19 +49,19 @@ In this step, you'll assign a role to the function app's system-assigned managed
49
49
50
50
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.
51
51
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:
53
53
54
54

55
55
56
-
1. Select the **+ Add**button, then**Add role assignment**.
56
+
1. Select **+ Add**>**Add role assignment**.
57
57
58
58
1. The **Add role assignment** panel opens to the right:
59
59
60
60

***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:
65
65
66
66

67
67
@@ -74,7 +74,7 @@ Now we have a function app that has a system-assigned managed identity with the
74
74
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.
75
75
76
76
> [!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 readonly 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.
78
78
79
79
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:
0 commit comments