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
This Azure Resource Manager template will create an Azure Cosmos account for SQL API configured with two regions and options to select consistency level, automatic failover, and multi-master. To deploy this template, click on Deploy to Azure on the readme page, [Create Azure Cosmos account](https://github.com/Azure/azure-quickstart-templates/tree/master/101-cosmosdb-sql)
31
+
Please see [Create Azure Cosmos DB account with Azure Resource Manager templates](manage-sql-with-resource-manager.md)
32
32
33
33
## Add/remove regions from your database account
34
34
@@ -56,7 +56,7 @@ Please see [Add or remove regions with Azure CLI](manage-with-cli.md#add-or-remo
@@ -4,238 +4,49 @@ description: Use Azure Resource Manager templates to create and configure Azure
4
4
author: markjbrown
5
5
ms.service: cosmos-db
6
6
ms.topic: conceptual
7
-
ms.date: 04/27/2020
7
+
ms.date: 04/30/2020
8
8
ms.author: mjbrown
9
9
---
10
10
11
11
# Manage Azure Cosmos DB Cassandra API resources using Azure Resource Manager templates
12
12
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 Cassandra 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.
14
-
15
-
## Create Azure Cosmos account, keyspace and table <aid="create-resource"></a>
16
-
17
-
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.
18
-
19
-
> [!NOTE]
20
-
> Account names must be lowercase and 44 or fewer characters.
21
-
> To update RU/s, resubmit the template with updated throughput property values.
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**:
211
-
212
-
```azurecli-interactive
213
-
214
-
read -p 'Enter the Resource Group name: ' resourceGroupName
215
-
read -p 'Enter the location (i.e. westus2): ' location
216
-
read -p 'Enter the account name: ' accountName
217
-
read -p 'Enter the primary region (i.e. westus2): ' primaryRegion
218
-
read -p 'Enter the secondary region (i.e. eastus2): ' secondaryRegion
219
-
read -p 'Enter the keyspace name: ' keyspaceName
220
-
read -p 'Enter the table name: ' tableName
221
-
read -p 'Enter the throughput: ' throughput
222
-
223
-
az group create --name $resourceGroupName --location $location
224
-
az group deployment create --resource-group $resourceGroupName \
az cosmosdb show --resource-group $resourceGroupName --name accountName --output tsv
230
-
```
231
-
232
-
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.
13
+
In this article, you learn how to use Azure Resource Manager templates to help deploy and manage your Azure Cosmos DB accounts, keyspaces, and tables.
14
+
15
+
This article has examples for Cassandra 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.
16
+
17
+
> [!IMPORTANT]
18
+
>
19
+
> * Account names are limited to 44 characters, all lowercase.
20
+
> * To change the throughput values, redeploy the template with updated RU/s.
21
+
> * When you add or remove locations to an Azure Cosmos account, you can't simultaneously modify other properties. These operations must be done separately.
22
+
23
+
To create any of the Azure Cosmos DB resources below, copy the following example template into a new json file. You can optionally create a parameters json file to use when deploying multiple instances of the same resource with different names and values. There are many ways to deploy Azure Resource Manager templates including, [Azure portal](../azure-resource-manager/templates/deploy-portal.md), [Azure CLI](../azure-resource-manager/templates/deploy-cli.md), [Azure PowerShell](../azure-resource-manager/templates/deploy-powershell.md) and [GitHub](../azure-resource-manager/templates/deploy-to-azure-button.md).
24
+
25
+
<aid="create-autoscale"></a>
26
+
27
+
## Azure Cosmos account for Cassandra with autoscale throughput
28
+
29
+
This template creates an Azure Cosmos account in two regions with options for consistency and failover, with a keyspace and table configured for autoscale throughput. This template is also available for one-click deploy from Azure Quickstart Templates Gallery.
30
+
31
+
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-cosmosdb-cassandra-autosscale%2Fazuredeploy.json)
## Azure Cosmos account for Cassandra with manual throughput
38
+
39
+
This template creates an Azure Cosmos account in two regions with options for consistency and failover, with a keyspace and table configured for manual throughput. This template is also available for one-click deploy from Azure Quickstart Templates Gallery.
40
+
41
+
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-cosmosdb-cassandra%2Fazuredeploy.json)
0 commit comments