Skip to content

Commit

Permalink
update api-version 2020-04-01
Browse files Browse the repository at this point in the history
  • Loading branch information
markjbrown committed May 15, 2020
1 parent a27de0a commit abe3243
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion 101-cosmosdb-cassandra-autoscale/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ Below are the parameters which can be user configured in the parameters file or
- **Table Name:** Enter the table name for the account.
- **Throughput Policy:** Select Manual or Autoscale throughput policy.
- **Manual Provisioned Throughput:** Enter the RU/s for the container when Throughput Policy is Manual (default 400).
- **Max Autoscale Throughput:** Enter the maximum RU/s for the container when Throughput Policy is Autoscale (default 4000).
- **Autoscale Max Throughput:** Enter the maximum RU/s for the container when Throughput Policy is Autoscale (default 4000).

[![Deploy To Azure](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/1-CONTRIBUTION-GUIDE/images/deploytoazure.svg?sanitize=true)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-cosmosdb-cassandra-autoscale%2Fazuredeploy.json) [![Visualize](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/1-CONTRIBUTION-GUIDE/images/visualizebutton.svg?sanitize=true)](http://armviz.io/#/?load=https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-cosmosdb-cassandra-autoscale%2Fazuredeploy.json)
22 changes: 11 additions & 11 deletions 101-cosmosdb-cassandra-autoscale/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@
"minValue": 400,
"maxValue": 1000000,
"metadata": {
"description": "Throughput value when using Provisioned Throughput Policy for the Cassandra table"
"description": "Throughput value when using Manaual Throughput Policy for the Cassandra table"
}
},
"maxAutoscaleThroughput": {
"autoscaleMaxThroughput": {
"type": "int",
"defaultValue": 4000,
"minValue": 4000,
Expand Down Expand Up @@ -122,13 +122,13 @@
"defaultConsistencyLevel": "Strong"
}
},
"locations":
[
"locations":
[
{
"locationName": "[parameters('primaryRegion')]",
"failoverPriority": 0,
"isZoneRedundant": false
},
},
{
"locationName": "[parameters('secondaryRegion')]",
"failoverPriority": 1,
Expand All @@ -137,11 +137,11 @@
],
"throughputPolicy": {
"Manual": {
"Throughput": "[parameters('manualProvisionedThroughput')]"
"throughput": "[parameters('manualProvisionedThroughput')]"
},
"Autoscale": {
"ProvisionedThroughputSettings": "[concat('{\"maxThroughput\":\"', parameters('maxAutoscaleThroughput'), '\"}')]"
}
"autoscaleSettings": { "maxThroughput": "[parameters('autoscaleMaxThroughput')]" }
}
},
"throughputPolicyToUse": "[if(equals(parameters('throughputPolicy'), 'Manual'), variables('throughputPolicy').Manual, variables('throughputPolicy').Autoscale)]"
},
Expand All @@ -150,7 +150,7 @@
{
"type": "Microsoft.DocumentDB/databaseAccounts",
"name": "[variables('accountName')]",
"apiVersion": "2020-03-01",
"apiVersion": "2020-04-01",
"location": "[parameters('location')]",
"kind": "GlobalDocumentDB",
"properties": {
Expand All @@ -164,7 +164,7 @@
{
"type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces",
"name": "[concat(variables('accountName'), '/', parameters('keyspaceName'))]",
"apiVersion": "2020-03-01",
"apiVersion": "2020-04-01",
"dependsOn": [ "[resourceId('Microsoft.DocumentDB/databaseAccounts/', variables('accountName'))]" ],
"properties":{
"resource":{
Expand All @@ -175,7 +175,7 @@
{
"type": "Microsoft.DocumentDb/databaseAccounts/cassandraKeyspaces/tables",
"name": "[concat(variables('accountName'), '/', parameters('keyspaceName'), '/', parameters('tableName'))]",
"apiVersion": "2020-03-01",
"apiVersion": "2020-04-01",
"dependsOn": [ "[resourceId('Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces', variables('accountName'), parameters('keyspaceName'))]" ],
"properties":
{
Expand Down
2 changes: 1 addition & 1 deletion 101-cosmosdb-cassandra-autoscale/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "This template creates an Azure Cosmos DB account for Cassandra API in two regions with a keyspace and table with autoscale throughput.",
"summary": "This template creates an Azure Cosmos DB account for Cassandra API in two regions with a keyspace and table with autoscale throughput.",
"githubUsername": "markjbrown",
"dateUpdated": "2020-04-29",
"dateUpdated": "2020-05-18",
"environments": [
"AzureCloud",
"AzureUSGovernment"
Expand Down

0 comments on commit abe3243

Please sign in to comment.