Skip to content

Commit 6e0b070

Browse files
authored
Merge pull request #95340 from TheovanKraay/update-manage-mongo-table-gremlin-arm
update remaining arm changes for apis
2 parents 7c30433 + 6fe7125 commit 6e0b070

6 files changed

+56
-183
lines changed

articles/cosmos-db/manage-cassandra-with-resource-manager.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,27 @@ description: Use Azure Resource Manager templates to create and configure Azure
44
author: TheovanKraay
55
ms.service: cosmos-db
66
ms.topic: conceptual
7-
ms.date: 11/07/2019
7+
ms.date: 11/12/2019
88
ms.author: thvankra
99
---
1010

11-
# Manage Azure Cosmos DB Cassandra API resources using Azure Resource Manager Templates
11+
# Manage Azure Cosmos DB Cassandra API resources using Azure Resource Manager templates
1212

13-
This article describes how to perform different operations to automate management of your Azure Cosmos DB accounts, databases and containers using Azure Resource Manager templates. This article has examples for SQL API accounts only, to find examples for other API type accounts see: use Resource Manager templates with Azure Cosmos DB's API for [SQL](manage-sql-with-resource-manager.md), [Gremlin](manage-gremlin-with-resource-manager.md), [MongoDB](manage-mongodb-with-resource-manager.md), [Table](manage-table-with-resource-manager.md) articles.
13+
This article describes how to perform different operations to automate management of your Azure Cosmos DB accounts, databases and containers using Azure Resource Manager templates. This article has examples for SQL API accounts only, to find examples for other API type accounts see: use Azure Resource Manager templates with Azure Cosmos DB's API for [SQL](manage-sql-with-resource-manager.md), [Gremlin](manage-gremlin-with-resource-manager.md), [MongoDB](manage-mongodb-with-resource-manager.md), [Table](manage-table-with-resource-manager.md) articles.
1414

1515
## Create Azure Cosmos account, keyspace and table <a id="create-resource"></a>
1616

1717
Create Azure Cosmos DB resources using an Azure Resource Manager template. This template will create an Azure Cosmos account for Cassandra API with two tables that share 400 RU/s throughput at the keyspace-level. Copy the template and deploy as shown below or visit [Azure Quickstart Gallery](https://azure.microsoft.com/resources/templates/101-cosmosdb-cassandra/) and deploy from the Azure portal. 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.
1818

1919
> [!NOTE]
20-
> Account names must be lower case and < 44 characters.
20+
> Account names must be lowercase and 44 or fewer characters.
2121
> To update RU/s, resubmit the template with updated throughput property values.
2222
2323
[!code-json[create-cosmos-Cassandra](~/quickstart-templates/101-cosmosdb-cassandra/azuredeploy.json)]
2424

25-
## Deploy with Azure CLI
25+
## Deploy with the Azure CLI
2626

27-
To deploy the Resource Manager template using Azure CLI, **Copy** the script and select **Try it** to open the Azure Cloud shell. To paste the script, right-click the shell, and then select **Paste**:
27+
To deploy the Azure Resource Manager template using the Azure CLI, **Copy** the script and select **Try it** to open Azure Cloud Shell. To paste the script, right-click the shell, and then select **Paste**:
2828

2929
```azurecli-interactive
3030
@@ -46,10 +46,10 @@ az group deployment create --resource-group $resourceGroupName \
4646
az cosmosdb show --resource-group $resourceGroupName --name accountName --output tsv
4747
```
4848

49-
The `az cosmosdb show` command shows the newly created Azure Cosmos account after it has been provisioned. If you choose to use a locally installed version of Azure CLI instead of using CloudShell, see [Azure Command-Line Interface (CLI)](/cli/azure/) article.
49+
The `az cosmosdb show` command shows the newly created Azure Cosmos account after it has been provisioned. If you choose to use a locally installed version of the Azure CLI instead of using Cloud Shell, see the [Azure CLI](/cli/azure/) article.
5050

5151

52-
## Next Steps
52+
## Next steps
5353

5454
Here are some additional resources:
5555

articles/cosmos-db/manage-gremlin-with-resource-manager.md

Lines changed: 11 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,30 @@
11
---
22
title: Azure Resource Manager templates for Azure Cosmos DB Gremlin API
33
description: Use Azure Resource Manager templates to create and configure Azure Cosmos DB Gremlin API.
4-
author: markjbrown
4+
author: TheovanKraay
55
ms.service: cosmos-db
66
ms.topic: conceptual
7-
ms.date: 08/05/2019
8-
ms.author: mjbrown
7+
ms.date: 11/12/2019
8+
ms.author: thvankra
99
---
1010

11-
# Manage Azure Cosmos DB Gremlin API resources using Azure Resource Manager Templates
11+
# Manage Azure Cosmos DB Gremlin API resources using Azure Resource Manager templates
1212

13-
This article describes how to perform different operations to automate management of your Azure Cosmos DB accounts, databases and containers using Azure Resource Manager templates. This article has examples for Gremlin API accounts only, to find examples for other API type accounts see: use Resource Manager templates with Azure Cosmos DB's API for [Cassandra](manage-cassandra-with-resource-manager.md), [SQL](manage-sql-with-resource-manager.md), [MongoDB](manage-mongodb-with-resource-manager.md), [Table](manage-table-with-resource-manager.md) articles.
13+
This article describes how to perform different operations to automate management of your Azure Cosmos DB accounts, databases and containers using Azure Resource Manager templates. This article has examples for Gremlin API accounts only, to find examples for other API type accounts see: use Azure Resource Manager templates with Azure Cosmos DB's API for [Cassandra](manage-cassandra-with-resource-manager.md), [SQL](manage-sql-with-resource-manager.md), [MongoDB](manage-mongodb-with-resource-manager.md), [Table](manage-table-with-resource-manager.md) articles.
1414

1515
## Create Azure Cosmos DB API for MongoDB account, database and collection <a id="create-resource"></a>
1616

1717
Create Azure Cosmos DB resources using an Azure Resource Manager template. This template will create an Azure Cosmos account for Gremlin API with two graphs that share 400 RU/s throughput at the database level. Copy the template and deploy as shown below or visit [Azure Quickstart Gallery](https://azure.microsoft.com/resources/templates/101-cosmosdb-gremlin/) and deploy from the Azure portal. 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.
1818

1919
> [!NOTE]
20-
> Account names must be lower case and < 31 characters.
20+
> Account names must be lowercase and 44 or fewer characters.
21+
> To update RU/s, resubmit the template with updated throughput property values.
2122
2223
[!code-json[create-cosmos-gremlin](~/quickstart-templates/101-cosmosdb-gremlin/azuredeploy.json)]
2324

24-
## Deploy with Azure CLI
25+
## Deploy with the Azure CLI
2526

26-
To deploy the Resource Manager template using Azure CLI, **Copy** the script and select **Try it** to open the Azure Cloud shell. To paste the script, right-click the shell, and then select **Paste**:
27+
To deploy the Azure Resource Manager template using the Azure CLI, **Copy** the script and select **Try it** to open Azure Cloud Shell. To paste the script, right-click the shell, and then select **Paste**:
2728

2829
```azurecli-interactive
2930
@@ -45,52 +46,9 @@ az group deployment create --resource-group $resourceGroupName \
4546
az cosmosdb show --resource-group $resourceGroupName --name accountName --output tsv
4647
```
4748

48-
The `az cosmosdb show` command shows the newly created Azure Cosmos account after it has been provisioned. If you choose to use a locally installed version of Azure CLI instead of using CloudShell, see [Azure Command-Line Interface (CLI)](/cli/azure/) article.
49+
The `az cosmosdb show` command shows the newly created Azure Cosmos account after it has been provisioned. If you choose to use a locally installed version of the Azure CLI instead of using Cloud Shell, see the [Azure CLI](/cli/azure/) article.
4950

50-
## Update throughput (RU/s) on a database <a id="database-ru-update"></a>
51-
52-
The following template will update the throughput of a database. Copy the template and deploy as shown below or visit [Azure Quickstart Gallery](https://azure.microsoft.com/resources/templates/101-cosmosdb-gremlin-database-ru-update/) and deploy from the Azure portal. 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.
53-
54-
[!code-json[cosmosdb-gremlin-database-ru-update](~/quickstart-templates/101-cosmosdb-gremlin-database-ru-update/azuredeploy.json)]
55-
56-
### Deploy database template via Azure CLI
57-
58-
To deploy the Resource Manager template using Azure CLI, select **Try it** to open the Azure Cloud shell. To paste the script, right-click the shell, and then select **Paste**:
59-
60-
```azurecli-interactive
61-
read -p 'Enter the Resource Group name: ' resourceGroupName
62-
read -p 'Enter the account name: ' accountName
63-
read -p 'Enter the database name: ' databaseName
64-
read -p 'Enter the new throughput: ' throughput
65-
66-
az group deployment create --resource-group $resourceGroupName \
67-
--template-uri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/101-cosmosdb-gremlin-database-ru-update/azuredeploy.json \
68-
--parameters accountName=$accountName databaseName=$databaseName throughput=$throughput
69-
```
70-
71-
## Update throughput (RU/s) on a graph <a id="graph-ru-update"></a>
72-
73-
The following template will update the throughput of a graph. Copy the template and deploy as shown below or visit [Azure Quickstart Gallery](https://azure.microsoft.com/resources/templates/101-cosmosdb-gremlin-graph-ru-update/) and deploy from the Azure portal. 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.
74-
75-
[!code-json[cosmosdb-gremlin-graph-ru-update](~/quickstart-templates/101-cosmosdb-gremlin-graph-ru-update/azuredeploy.json)]
76-
77-
### Deploy graph template via Azure CLI
78-
79-
To deploy the Resource Manager template using Azure CLI, select **Try it** to open the Azure Cloud shell. To paste the script, right-click the shell, and then select **Paste**:
80-
81-
```azurecli-interactive
82-
read -p 'Enter the Resource Group name: ' resourceGroupName
83-
read -p 'Enter the account name: ' accountName
84-
read -p 'Enter the database name: ' databaseName
85-
read -p 'Enter the graph name: ' graphName
86-
read -p 'Enter the new throughput: ' throughput
87-
88-
az group deployment create --resource-group $resourceGroupName \
89-
--template-uri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/101-cosmosdb-gremlin-graph-ru-update/azuredeploy.json \
90-
--parameters accountName=$accountName databaseName=$databaseName graphName=$graphName throughput=$throughput
91-
```
92-
93-
## Next Steps
51+
## Next steps
9452

9553
Here are some additional resources:
9654

articles/cosmos-db/manage-mongodb-with-resource-manager.md

Lines changed: 11 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,30 @@
11
---
22
title: Azure Resource Manager templates for Azure Cosmos DB API for MongoDB
33
description: Use Azure Resource Manager templates to create and configure Azure Cosmos DB API for MongoDB.
4-
author: markjbrown
4+
author: TheovanKraay
55
ms.service: cosmos-db
66
ms.topic: conceptual
7-
ms.date: 08/05/2019
8-
ms.author: mjbrown
7+
ms.date: 11/12/2019
8+
ms.author: thvankra
99
---
1010

11-
# Manage Azure Cosmos DB MongoDB API resources using Azure Resource Manager Templates
11+
# Manage Azure Cosmos DB MongoDB API resources using Azure Resource Manager templates
1212

13-
This article describes how to perform different operations to automate management of your Azure Cosmos DB accounts, databases and containers using Azure Resource Manager templates. This article has examples for Azure Cosmos DB's API for MongoDB only, to find examples for other API type accounts see: use Resource Manager templates with Azure Cosmos DB's API for [Cassandra](manage-cassandra-with-resource-manager.md), [Gremlin](manage-gremlin-with-resource-manager.md), [SQL](manage-sql-with-resource-manager.md), [Table](manage-table-with-resource-manager.md) articles.
13+
This article describes how to perform different operations to automate management of your Azure Cosmos DB accounts, databases and containers using Azure Resource Manager templates. This article has examples for Azure Cosmos DB's API for MongoDB only, to find examples for other API type accounts see: use Azure Resource Manager templates with Azure Cosmos DB's API for [Cassandra](manage-cassandra-with-resource-manager.md), [Gremlin](manage-gremlin-with-resource-manager.md), [SQL](manage-sql-with-resource-manager.md), [Table](manage-table-with-resource-manager.md) articles.
1414

1515
## Create Azure Cosmos DB API for MongoDB account, database and collection <a id="create-resource"></a>
1616

1717
Create Azure Cosmos DB resources using an Azure Resource Manager template. This template will create an Azure Cosmos account for MongoDB API with two collections that share 400 RU/s throughput at the database level. Copy the template and deploy as shown below or visit [Azure Quickstart Gallery](https://azure.microsoft.com/resources/templates/101-cosmosdb-mongodb/) and deploy from the Azure portal. 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.
1818

1919
> [!NOTE]
20-
> Account names must be lower case and < 31 characters.
20+
> Account names must be lowercase and 44 or fewer characters.
21+
> To update RU/s, resubmit the template with updated throughput property values.
2122
2223
[!code-json[create-cosmos-mongo](~/quickstart-templates/101-cosmosdb-mongodb/azuredeploy.json)]
2324

24-
### Deploy via Azure CLI
25+
### Deploy via the Azure CLI
2526

26-
To deploy the Resource Manager template using Azure CLI, **Copy** the script and select **Try it** to open the Azure Cloud shell. To paste the script, right-click the shell, and then select **Paste**:
27+
To deploy the Azure Resource Manager template using the Azure CLI, **Copy** the script and select **Try it** to open Azure Cloud Shell. To paste the script, right-click the shell, and then select **Paste**:
2728

2829
```azurecli-interactive
2930
@@ -45,52 +46,9 @@ az group deployment create --resource-group $resourceGroupName \
4546
az cosmosdb show --resource-group $resourceGroupName --name accountName --output tsv
4647
```
4748

48-
The `az cosmosdb show` command shows the newly created Azure Cosmos account after it has been provisioned. If you choose to use a locally installed version of Azure CLI instead of using CloudShell, see [Azure Command-Line Interface (CLI)](/cli/azure/) article.
49+
The `az cosmosdb show` command shows the newly created Azure Cosmos account after it has been provisioned. If you choose to use a locally installed version of the Azure CLI instead of using Cloud Shell, see the [Azure CLI](/cli/azure/) article.
4950

50-
## Update throughput (RU/s) on a database <a id="database-ru-update"></a>
51-
52-
The following template will update the throughput of a database. Copy the template and deploy as shown below or visit [Azure Quickstart Gallery](https://azure.microsoft.com/resources/templates/101-cosmosdb-mongodb-database-ru-update/) and deploy from the Azure portal. 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.
53-
54-
[!code-json[cosmosdb-mongodb-database-ru-update](~/quickstart-templates/101-cosmosdb-mongodb-database-ru-update/azuredeploy.json)]
55-
56-
### Deploy database template via Azure CLI
57-
58-
To deploy the Resource Manager template using Azure CLI, select **Try it** to open the Azure Cloud shell. To paste the script, right-click the shell, and then select **Paste**:
59-
60-
```azurecli-interactive
61-
read -p 'Enter the Resource Group name: ' resourceGroupName
62-
read -p 'Enter the account name: ' accountName
63-
read -p 'Enter the database name: ' databaseName
64-
read -p 'Enter the new throughput: ' throughput
65-
66-
az group deployment create --resource-group $resourceGroupName \
67-
--template-uri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/101-cosmosdb-mongodb-database-ru-update/azuredeploy.json \
68-
--parameters accountName=$accountName databaseName=$databaseName throughput=$throughput
69-
```
70-
71-
## Update throughput (RU/s) on a collection <a id="collection-ru-update"></a>
72-
73-
The following template will update the throughput of a collection. Copy the template and deploy as shown below or visit [Azure Quickstart Gallery](https://azure.microsoft.com/resources/templates/101-cosmosdb-mongodb-collection-ru-update/) and deploy from the Azure portal. 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.
74-
75-
[!code-json[cosmosdb-mongodb-collection-ru-update](~/quickstart-templates/101-cosmosdb-mongodb-collection-ru-update/azuredeploy.json)]
76-
77-
### Deploy collection template via Azure CLI
78-
79-
To deploy the Resource Manager template using Azure CLI, select **Try it** to open the Azure Cloud shell. To paste the script, right-click the shell, and then select **Paste**:
80-
81-
```azurecli-interactive
82-
read -p 'Enter the Resource Group name: ' resourceGroupName
83-
read -p 'Enter the account name: ' accountName
84-
read -p 'Enter the database name: ' databaseName
85-
read -p 'Enter the collection name: ' collectionName
86-
read -p 'Enter the new throughput: ' throughput
87-
88-
az group deployment create --resource-group $resourceGroupName \
89-
--template-uri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/101-cosmosdb-mongodb-collection-ru-update/azuredeploy.json \
90-
--parameters accountName=$accountName databaseName=$databaseName collectionName=$collectionName throughput=$throughput
91-
```
92-
93-
## Next Steps
51+
## Next steps
9452

9553
Here are some additional resources:
9654

0 commit comments

Comments
 (0)