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
Does Azure Cosmos DB for MongoDB RU support my data residency requirements?
20
+
Does Azure Cosmos DB for MongoDB (RU) support my data residency requirements?
21
21
answer: |
22
22
Yes, data residency is governed at the database account level, which is associated with one or more regions. Typically, you create a database account for each residency requirement. For example, if you have a requirement to store data in the US and EU, you would create two database accounts, one in the US and one in the EU.
23
23
- question: |
24
-
Does Azure Cosmos DB for MongoDB RU support documents larger than 2 MB?
24
+
Does Azure Cosmos DB for MongoDB (RU) support documents larger than 2 MB?
25
25
answer: |
26
26
Yes, documents as large as 16 MB are fully supported.
27
27
- question: |
28
-
Does Azure Cosmos DB for MongoDB RU support multi-field sort?
28
+
Does Azure Cosmos DB for MongoDB (RU) support multi-field sort?
29
29
answer: |
30
30
Yes, multi-field sort is supported. A compound index is required for the fields in the sort to ensure the operation is efficient and scalable.
31
31
- question: |
32
-
Does Azure Cosmos DB for MongoDB RU scale linearly?
32
+
Does Azure Cosmos DB for MongoDB (RU) scale linearly?
33
33
answer: |
34
34
In many cases, Azure Cosmos DB's costs scale better than linear. For example, if you read a 1-KB document, this operation equates to one Request Unit (RU). But if you read a 10-KB document, this larger operation still equates to roughly one RU. The [capacity calculator](https://cosmos.azure.com/capacitycalculator/) can help you estimate your throughput needs.
35
35
- question: |
36
-
How can I encrypt Azure Cosmos DB for MongoDB RU data and manage access at the field level?
36
+
How can I encrypt Azure Cosmos DB for MongoDB (RU) data and manage access at the field level?
37
37
answer: |
38
-
Azure Cosmos DB for MongoDB RU supports Field Level Encryption.
38
+
Azure Cosmos DB for MongoDB (RU) supports Field Level Encryption.
39
39
- question: |
40
-
How do I pay for Azure Cosmos DB for MongoDB RU Request Units (RUs)?
40
+
How do I pay for Azure Cosmos DB for MongoDB (RU) Request Units (RUs)?
41
41
answer: |
42
-
Azure Cosmos DB for MongoDB RU offers three capacity modes: provisioned throughput, autoscale, and serverless. Autoscale instantaneously scales to meet your needs, and serverless only charges for the throughput you use.
42
+
Azure Cosmos DB for MongoDB (RU) offers three capacity modes: provisioned throughput, autoscale, and serverless. Autoscale instantaneously scales to meet your needs, and serverless only charges for the throughput you use.
43
43
- question: |
44
-
Which features are supported in Azure Cosmos DB for MongoDB RU?
44
+
Which features are supported in Azure Cosmos DB for MongoDB (RU)?
45
45
answer: |
46
-
Azure Cosmos DB for MongoDB RU supports a rich set of MongoDB features backed by Azure Cosmos DB's limitless scale architecture. These features include: Aggregation pipelines, Change streams, Indexes, Geospatial queries, and more. For more information, see [feature support matrix](feature-support-42.md).
46
+
Azure Cosmos DB for MongoDB (RU) supports a rich set of MongoDB features backed by Azure Cosmos DB's limitless scale architecture. These features include: Aggregation pipelines, Change streams, Indexes, Geospatial queries, and more. For more information, see [feature support matrix](feature-support-42.md).
47
47
- question: |
48
-
Does Azure Cosmos DB for MongoDB RU run on-premises?
48
+
Does Azure Cosmos DB for MongoDB (RU) run on-premises?
49
49
answer: |
50
-
Azure Cosmos DB for MongoDB RU is a cloud-native multitenant service and isn't available on-premises. Azure Cosmos DB offers an [emulator for local development and testing](../emulator.md).
50
+
Azure Cosmos DB for MongoDB (RU) is a cloud-native multitenant service and isn't available on-premises. Azure Cosmos DB offers an [emulator for local development and testing](../emulator.md).
51
51
- question: |
52
-
How do I connect to my Azure Cosmos DB for MongoDB RU database?
52
+
How do I connect to my Azure Cosmos DB for MongoDB (RU) database?
53
53
answer: |
54
-
The quickest way to connect to an Azure Cosmos DB for MongoDB RU database is to use the **Quick Start** feature within the resource's page in the [Azure portal](https://portal.azure.com). The Quick Start includes code snippets preconfigured to connect to your database.
54
+
The quickest way to connect to an Azure Cosmos DB for MongoDB (RU) database is to use the **Quick Start** feature within the resource's page in the [Azure portal](https://portal.azure.com). The Quick Start includes code snippets preconfigured to connect to your database.
55
55
56
56
Azure Cosmos DB enforces strict security requirements and standards. Azure Cosmos DB accounts require authentication and secure communication via transport layer security (TLS/SSL). In any examples you build, use TLS/SSL version 1.2.
57
57
58
-
For more information, see [Connect to your API for MongoDB RU database](connect-account.md).
58
+
For more information, see [Connect to your API for MongoDB (RU) database](connect-account.md).
59
59
- question: |
60
-
What do the error codes mean while using Azure Cosmos DB for MongoDB RU?
60
+
What do the error codes mean while using Azure Cosmos DB for MongoDB (RU)?
61
61
answer: |
62
-
Along with the common MongoDB error codes, Azure Cosmos DB for MongoDB RU has its own specific error codes. For more information, see [API for MongoDB RU troubleshooting guide](error-codes-solutions.md).
62
+
Along with the common MongoDB error codes, Azure Cosmos DB for MongoDB (RU) has its own specific error codes. For more information, see [API for MongoDB (RU) troubleshooting guide](error-codes-solutions.md).
63
63
- question: |
64
-
Are non-Microsoft drivers for MongoDB supported for use with Azure Cosmos DB for MongoDB RU?
64
+
Are non-Microsoft drivers for MongoDB supported for use with Azure Cosmos DB for MongoDB (RU)?
65
65
answer: |
66
-
Yes, you can use non-Microsoft MongoDB Open Database Connectivity (ODBC) drivers with Azure Cosmos DB for MongoDB RU.
66
+
Yes, you can use non-Microsoft MongoDB Open Database Connectivity (ODBC) drivers with Azure Cosmos DB for MongoDB (RU).
67
67
additionalContent: |
68
68
## Related content
69
69
70
70
- [Frequently asked questions about Azure Cosmos DB for MongoDB vCore](vcore/faq.yml)
71
71
72
-
- [Get started with Azure Cosmos DB for MongoDB RU and Node.js](quickstart-nodejs.md)
73
-
- [Get started with Azure Cosmos DB for MongoDB RU and Python](quickstart-python.md)
74
-
- [Get started with Azure Cosmos DB for MongoDB RU and Java](quickstart-java.md)
75
-
- [Get started with Azure Cosmos DB for MongoDB RU and .NET](quickstart-dotnet.md)
76
-
- [Get started with Azure Cosmos DB for MongoDB RU and Go](quickstart-go.md)
72
+
- [Get started with Azure Cosmos DB for MongoDB (RU) and Node.js](quickstart-nodejs.md)
73
+
- [Get started with Azure Cosmos DB for MongoDB (RU) and Python](quickstart-python.md)
74
+
- [Get started with Azure Cosmos DB for MongoDB (RU) and Java](quickstart-java.md)
75
+
- [Get started with Azure Cosmos DB for MongoDB (RU) and .NET](quickstart-dotnet.md)
76
+
- [Get started with Azure Cosmos DB for MongoDB (RU) and Go](quickstart-go.md)
@@ -69,7 +69,7 @@ The following snippets are all taken from the `todo.go` file.
69
69
70
70
### Connecting the Go app to Azure Cosmos DB
71
71
72
-
[`clientOptions`](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo/options?tab=doc#ClientOptions) encapsulates the connection string for Azure Cosmos DB, which is passed in using an environment variable (details in the upcoming section). The connection is initialized using [`mongo.NewClient`](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo?tab=doc#NewClient) to which the `clientOptions` instance is passed. [`Ping` function](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo?tab=doc#Client.Ping) is invoked to confirm successful connectivity (itis a fail-fast strategy)
72
+
[`clientOptions`](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo/options?tab=doc#ClientOptions) encapsulates the connection string for Azure Cosmos DB, which is passed in using an environment variable (details in the upcoming section). The connection is initialized using [`mongo.NewClient`](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo?tab=doc#NewClient) to which the `clientOptions` instance is passed. [`Ping` function](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo?tab=doc#Client.Ping) is invoked to confirm successful connectivity (it'is a fail-fast strategy).
We pass in a `Todo` struct that contains the description and the status (which is initially set to `pending`)
112
+
We pass in a `Todo` struct that contains the description and the status (which is initially set to `pending`):
113
113
114
114
```go
115
115
type Todo struct {
@@ -120,7 +120,7 @@ type Todo struct {
120
120
```
121
121
### List `todo` items
122
122
123
-
We can list TODOs based on criteria. A [`bson.D`](https://pkg.go.dev/go.mongodb.org/[email protected]/bson?tab=doc#D) is created to encapsulate the filter criteria
123
+
We can list TODOs based on criteria. A [`bson.D`](https://pkg.go.dev/go.mongodb.org/[email protected]/bson?tab=doc#D) is created to encapsulate the filter criteria:
124
124
125
125
```go
126
126
func list(status string) {
@@ -153,7 +153,7 @@ func list(status string) {
153
153
}
154
154
```
155
155
156
-
Finally, the information is rendered in tabular format
156
+
Finally, the information is rendered in tabular format:
157
157
158
158
```go
159
159
todoTable := [][]string{}
@@ -174,7 +174,7 @@ Finally, the information is rendered in tabular format
174
174
175
175
### Update a `todo` item
176
176
177
-
A `todo` can be updated based on its `_id`. A [`bson.D`](https://pkg.go.dev/go.mongodb.org/[email protected]/bson?tab=doc#D) filter is created based on the `_id` and another one is created for the updated information, which is a new status (`completed` or `pending`) in this case. Finally, the [`UpdateOne`](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo?tab=doc#Collection.UpdateOne) function is invoked with the filter and the updated document
177
+
A `todo` can be updated based on its `_id`. A [`bson.D`](https://pkg.go.dev/go.mongodb.org/[email protected]/bson?tab=doc#D) filter is created based on the `_id` and another one is created forthe updated information, which is a new status (`completed` or `pending`)in this case. Finally, the [`UpdateOne`](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo?tab=doc#Collection.UpdateOne) functionis invoked with the filter and the updated document:
A `todo` is deleted based on its `_id` and itis encapsulated in the form of a [`bson.D`](https://pkg.go.dev/go.mongodb.org/[email protected]/bson?tab=doc#D) instance. [`DeleteOne`](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo?tab=doc#Collection.DeleteOne) is invoked to delete the document.
197
+
A `todo` is deleted based on its `_id` and it'is encapsulated in the form of a [`bson.D`](https://pkg.go.dev/go.mongodb.org/[email protected]/bson?tab=doc#D) instance. [`DeleteOne`](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo?tab=doc#Collection.DeleteOne) is invoked to delete the document.
198
198
199
199
```go
200
200
func delete(todoid string) {
@@ -231,27 +231,27 @@ To confirm that the application was built properly.
231
231
232
232
### Sign in to Azure
233
233
234
-
If you choose to install and use the CLI locally, this topic requires that you are running the Azure CLI version 2.0 or later. Run `az --version` to find the version. If you need to install or upgrade, see [Install Azure CLI].
234
+
If you choose to install and use the CLI locally, this topic requires that you're running the Azure CLI version 2.0 or later. Run `az --version` to find the version. If you need to install or upgrade, see [Install Azure CLI].
235
235
236
-
If you are using an installed Azure CLI, sign in to your Azure subscription with the [az login](/cli/azure/reference-index#az-login) command and follow the on-screen directions. You can skip this step if you're using the Azure Cloud Shell.
236
+
If you're using an installed Azure CLI, sign in to your Azure subscription with the [az login](/cli/azure/reference-index#az-login) command and follow the on-screen directions. You can skip this step if you're using the Azure Cloud Shell.
237
237
238
238
```azurecli
239
239
az login
240
240
```
241
241
242
242
### Add the Azure Cosmos DB module
243
243
244
-
If you are using an installed Azure CLI, check to see if the `cosmosdb` component is already installed by running the `az` command. If `cosmosdb` is in the list of base commands, proceed to the next command. You can skip this step if you're using the Azure Cloud Shell.
244
+
If you're using an installed Azure CLI, check to see if the `cosmosdb` component is already installed by running the `az` command. If `cosmosdb` is in the list of base commands, proceed to the next command. You can skip this step if you're using the Azure Cloud Shell.
245
245
246
-
If `cosmosdb` is not in the list of base commands, reinstall [Azure CLI](/cli/azure/install-azure-cli).
246
+
If `cosmosdb`isn't in the list of base commands, reinstall [Azure CLI](/cli/azure/install-azure-cli).
247
247
248
248
### Create a resource group
249
249
250
-
Create a [resource group](../../azure-resource-manager/management/overview.md) with the [az group create](/cli/azure/group#az-group-create). An Azure resource group is a logical container into which Azure resources like web apps, databases and storage accounts are deployed and managed.
250
+
Create a [resource group](../../azure-resource-manager/management/overview.md) with the [az group create](/cli/azure/group#az-group-create). An Azure resource group is a logical container into which Azure resources like web apps, databases, and storage accounts are deployed and managed.
251
251
252
252
The following example creates a resource group in the West Europe region. Choose a unique name for the resource group.
253
253
254
-
If you are using Azure Cloud Shell, select **Try It**, follow the onscreen prompts to login, then copy the command into the command prompt.
254
+
If you're using Azure Cloud Shell, select**Try It**, follow the onscreen prompts to log in, then copy the command into the command prompt.
255
255
256
256
```azurecli-interactive
257
257
az group create --name myResourceGroup --location "West Europe"
@@ -323,7 +323,7 @@ The Azure CLI outputs information similar to the following example.
323
323
## Configure the application
324
324
325
325
<a name="devconfig"></a>
326
-
### Export the connection string, MongoDB database and collection names as environment variables.
326
+
### Export the connection string, MongoDB database, and collection names as environment variables.
0 commit comments