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/manage-mongodb-with-resource-manager.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Create Azure Cosmos DB resources using an Azure Resource Manager template. This
22
22
>
23
23
> Currently you can only create 3.2 version (that is, accounts using the endpoint in the format `*.documents.azure.com`) of Azure Cosmos DB's API for MongoDB accounts by using PowerShell, CLI, and Resource Manager templates. To create 3.6 version of accounts, use Azure portal instead.
> To create a container with large partition key, modify the previous template to include the `"version":2` property within the `partitionKey` object.
@@ -132,7 +132,7 @@ Copy the following example template and deploy it as described, either with [Pow
132
132
* Optionally, you can visit [Azure Quickstart Gallery](https://azure.microsoft.com/resources/templates/101-cosmosdb-sql-container-sprocs/) and deploy the template from the Azure portal.
133
133
* You can also download the template to your local computer or create a new template and specify the local path with the `--template-file` parameter.
Azure Cosmos DB uses JSON to move and store data. You can use the `JsonProperty` attribute to control how JSON serializes and deserializes objects. The `Item` class demonstrates the `JsonProperty` attribute. This code controls the format of the property name that goes into JSON. It also renames the .NET property `Completed`.
111
111
@@ -178,7 +178,7 @@ Once you complete these steps, close all the *cshtml* documents in Visual Studio
178
178
179
179
1. Replace the contents of *ItemController.cs* with the following code:
The **ValidateAntiForgeryToken** attribute is used here to help protect this application against cross-site request forgery attacks. Your views should work with this anti-forgery token as well. For more information and examples, see [Preventing Cross-Site Request Forgery (CSRF) Attacks in ASP.NET MVC Application][Preventing Cross-Site Request Forgery]. The source code provided on [GitHub][GitHub] has the full implementation in place.
184
184
@@ -198,11 +198,11 @@ First, we'll add a class that contains the logic to connect to and use Azure Cos
198
198
199
199
1. Replace the contents of *CosmosDBService.cs* with the following code:
`CreateDatabaseAsync` createsanewdatabasewithID `FamilyDatabase` ifitdoesn't already exist, that has the ID specified from the `databaseId` field.
161
161
@@ -276,7 +276,7 @@ A container can be created by using either the [**CreateContainerIfNotExistsAsyn
276
276
277
277
1. Copyandpastethe `CreateContainerAsync` methodbelowyour `CreateDatabaseAsync` method. `CreateContainerAsync` createsanewcontainerwiththeID `FamilyContainer` ifitdoesn't already exist, by using the ID specified from the `containerId` field partitioned by `LastName` property.
0 commit comments