Skip to content

Commit

Permalink
small clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
markjbrown committed May 15, 2020
1 parent a4edfaa commit ff0efbb
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions 101-cosmosdb-cassandra-autoscale/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@
"defaultConsistencyLevel": {
"type": "string",
"defaultValue": "Session",
"allowedValues": [ "Eventual", "ConsistentPrefix", "Session", "BoundedStaleness", "Strong" ],
"allowedValues": [
"Eventual",
"ConsistentPrefix",
"Session",
"BoundedStaleness",
"Strong"
],
"metadata": {
"description": "The default consistency level of the Cosmos DB account."
}
Expand All @@ -57,7 +63,10 @@
"automaticFailover": {
"type": "bool",
"defaultValue": true,
"allowedValues": [ true, false ],
"allowedValues": [
true,
false
],
"metadata": {
"description": "Enable automatic failover for regions"
}
Expand All @@ -77,7 +86,10 @@
"throughputPolicy":{
"type": "string",
"defaultValue": "Autoscale",
"allowedValues": [ "Manual", "Autoscale" ],
"allowedValues": [
"Manual",
"Autoscale"
],
"metadata": {
"description": "The throughput policy for the Cassandra table"
}
Expand Down Expand Up @@ -122,8 +134,7 @@
"defaultConsistencyLevel": "Strong"
}
},
"locations":
[
"locations": [
{
"locationName": "[parameters('primaryRegion')]",
"failoverPriority": 0,
Expand All @@ -145,8 +156,7 @@
},
"throughputPolicyToUse": "[if(equals(parameters('throughputPolicy'), 'Manual'), variables('throughputPolicy').Manual, variables('throughputPolicy').Autoscale)]"
},
"resources":
[
"resources": [
{
"type": "Microsoft.DocumentDB/databaseAccounts",
"name": "[variables('accountName')]",
Expand All @@ -165,7 +175,9 @@
"type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces",
"name": "[concat(variables('accountName'), '/', parameters('keyspaceName'))]",
"apiVersion": "2020-04-01",
"dependsOn": [ "[resourceId('Microsoft.DocumentDB/databaseAccounts/', variables('accountName'))]" ],
"dependsOn": [
"[resourceId('Microsoft.DocumentDB/databaseAccounts/', variables('accountName'))]"
],
"properties":{
"resource":{
"id": "[parameters('keyspaceName')]"
Expand All @@ -176,9 +188,10 @@
"type": "Microsoft.DocumentDb/databaseAccounts/cassandraKeyspaces/tables",
"name": "[concat(variables('accountName'), '/', parameters('keyspaceName'), '/', parameters('tableName'))]",
"apiVersion": "2020-04-01",
"dependsOn": [ "[resourceId('Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces', variables('accountName'), parameters('keyspaceName'))]" ],
"properties":
{
"dependsOn": [
"[resourceId('Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces', variables('accountName'), parameters('keyspaceName'))]"
],
"properties": {
"resource":{
"id": "[parameters('tableName')]",
"schema": {
Expand Down

0 comments on commit ff0efbb

Please sign in to comment.