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/how-to-manage-consistency.md
+29-15Lines changed: 29 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,13 @@ This article explains how to manage consistency levels in Azure Cosmos DB. You l
18
18
19
19
The [default consistency level](consistency-levels.md) is the consistency level that clients use by default.
20
20
21
-
### CLI
21
+
# [Azure portal](#tab/portal
22
+
23
+
To view or modify the default consistency level, sign in to the Azure portal. Find your Azure Cosmos account, and open the **Default consistency** pane. Select the level of consistency you want as the new default, and then select **Save**. The Azure portal also provides a visualization of different consistency levels with music notes.
24
+
25
+

26
+
27
+
# [CLI](#tab/cli)
22
28
23
29
Create a Cosmos account with Session consistency, then update the default consistency.
To view or modify the default consistency level, sign in to the Azure portal. Find your Azure Cosmos account, and open the **Default consistency** pane. Select the level of consistency you want as the new default, and then select **Save**. The Azure portal also provides a visualization of different consistency levels with music notes.
50
-
51
-

53
+
---
52
54
53
55
## Override the default consistency level
54
56
@@ -57,7 +59,9 @@ Clients can override the default consistency level that is set by the service. C
57
59
> [!TIP]
58
60
> Consistency can only be **relaxed** at the request level. To move from weaker to stronger consistency, update the default consistency for the Cosmos account.
@@ -132,7 +140,9 @@ One of the consistency levels in Azure Cosmos DB is *Session* consistency. This
132
140
133
141
To manage session tokens manually, get the session token from the response and set them per request. If you don't need to manage session tokens manually, you don't need to use these samples. The SDK keeps track of session tokens automatically. If you don't set the session token manually, by default, the SDK uses the most recent session token.
0 commit comments